Evie Litherland-Smith
6bc0cbdc4f
Move sway to desktop/sway and move other packages under programs/sway up a level to programs/desktop, add niri config to desktop/niri and refactor common desktop imports into desktop/default.nix that also imports (for now at least) sway and niri modules Move wallpapers into programs/desktop since that's where they're needed anyway Add helper script to call swaybg with arguments
21 lines
388 B
Nix
21 lines
388 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [../swaylock/default.nix];
|
|
services.swayidle = let
|
|
swaylockfx =
|
|
pkgs.callPackage ../swaylock/swaylockfx.nix
|
|
{swaylock-effects = config.programs.swaylock.package;};
|
|
in {
|
|
enable = true;
|
|
timeouts = [
|
|
{
|
|
timeout = 60 * 15; # 15 minutes
|
|
command = "${swaylockfx}/bin/swaylockfx";
|
|
}
|
|
];
|
|
};
|
|
}
|