add spectacle config, add spotify, fix cinny video playback with gstreamer
refactor some stuff to look nicer and have more structure too
This commit is contained in:
parent
56a64c1e0e
commit
dc99f3d24d
15 changed files with 283 additions and 145 deletions
|
@ -35,7 +35,7 @@ let
|
|||
engines = {
|
||||
"SearXNG" = {
|
||||
urls = [ { template = "https://search.monapona.dev/search?q={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://search.monapona.dev/static/themes/simple/img/favicon.png";
|
||||
icon = "https://search.monapona.dev/static/themes/simple/img/favicon.png";
|
||||
definedAliases = [ "@s" ];
|
||||
};
|
||||
|
||||
|
@ -47,7 +47,7 @@ let
|
|||
|
||||
"NixOS Wiki" = {
|
||||
urls = [ { template = "https://wiki.nixos.org/index.php?search={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://wiki.nixos.org/favicon.ico";
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@nw" ];
|
||||
};
|
||||
|
|
25
modules/home/apps/spotify/default.nix
Normal file
25
modules/home/apps/spotify/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.apps.spotify;
|
||||
in
|
||||
{
|
||||
options.${namespace}.apps.spotify = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable spotify.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
librespot
|
||||
spotify-qt
|
||||
];
|
||||
};
|
||||
|
||||
}
|
24
modules/home/desktop/spectacle/default.nix
Normal file
24
modules/home/desktop/spectacle/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.desktop.spectacle;
|
||||
in
|
||||
{
|
||||
options.${namespace}.desktop.spectacle = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable spectacle config.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
spectacle.shortcuts.captureRectangularRegion = "Meta+Shift+S";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
osConfig ? { },
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.stateVersion = lib.mkDefault (osConfig.system.stateVersion or "24.11");
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue