32 lines
421 B
Nix
32 lines
421 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
desktop.shell = {
|
|
swww.enable = lib.mkEnableOption "enable swww";
|
|
};
|
|
};
|
|
|
|
config =
|
|
|
|
{
|
|
environment.systemPackages =
|
|
with pkgs;
|
|
[ ]
|
|
++ (
|
|
if config.desktop.shell.swww.enable then
|
|
[
|
|
waypaper
|
|
swww
|
|
]
|
|
else
|
|
[ ]
|
|
);
|
|
};
|
|
}
|