diff --git a/modules/home/swayidle/default.nix b/modules/home/swayidle/default.nix index 6c2672c..761fd88 100644 --- a/modules/home/swayidle/default.nix +++ b/modules/home/swayidle/default.nix @@ -16,7 +16,7 @@ in { config = mkIf cfg.enable { services.swayidle = let - swayidle = lib.getExe config.programs.swaylock.package; + swaylock = lib.getExe config.programs.swaylock.package; hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl"; in { enable = true; @@ -24,7 +24,7 @@ in { timeouts = [ { timeout = 60 * 3; - command = swayidle; + command = "${swaylock} --grace 120"; } { timeout = 60 * 5; diff --git a/modules/nixos/podman/default.nix b/modules/nixos/podman/default.nix new file mode 100644 index 0000000..78a83a3 --- /dev/null +++ b/modules/nixos/podman/default.nix @@ -0,0 +1,25 @@ +{ + lib, + config, + ... +}: let + inherit (lib) mkIf mkOption types; + + cfg = config.sysc.podman; +in { + options.sysc.podman = { + enable = mkOption { + type = types.bool; + default = true; + description = "Whether to enable podman."; + }; + }; + + config = mkIf cfg.enable { + virtualisation.podman.enable = true; + + environment.persistence."/persist".directories = [ + "/var/lib/containers" + ]; + }; +} diff --git a/systems/dissension/default.nix b/systems/dissension/default.nix index ed4600a..0e85613 100644 --- a/systems/dissension/default.nix +++ b/systems/dissension/default.nix @@ -1,7 +1,6 @@ { sysc = { avahi.enable = true; - docker.enable = true; libvirtd.enable = true; }; diff --git a/systems/solaris/default.nix b/systems/solaris/default.nix index ed4600a..0e85613 100644 --- a/systems/solaris/default.nix +++ b/systems/solaris/default.nix @@ -1,7 +1,6 @@ { sysc = { avahi.enable = true; - docker.enable = true; libvirtd.enable = true; };