Oops. thats a big commit
This commit is contained in:
parent
dfcb53a44e
commit
c5ed13b511
25 changed files with 393 additions and 303 deletions
28
modules/desktop/swww.nix
Normal file
28
modules/desktop/swww.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, config, inputs, system, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.swww;
|
||||
|
||||
img = ../../assets/wallpaper.png;
|
||||
in {
|
||||
options.modules.desktop.swww = {
|
||||
enable = mkEnableOption "Enable swww, a Solution to your Wayland Wallpaper Woes";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.swww;
|
||||
example = "pkgs.swww";
|
||||
};
|
||||
startScript = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.writeScript "swww-start" ''
|
||||
${cfg.package}/bin/swww-daemon &
|
||||
${lib.getExe cfg.package} img "${img}" --transition-type none
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
modules.desktop.execOnStart = [ "${cfg.startScript}" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue