diff --git a/rootfs-nixos/configuration.nix b/rootfs-nixos/configuration.nix index 1bf2b2d..bd5e98e 100644 --- a/rootfs-nixos/configuration.nix +++ b/rootfs-nixos/configuration.nix @@ -9,10 +9,27 @@ # { config, pkgs, lib, wayland-proxy-virtwl, ... }: -{ - ############################################################################# - # Boot Configuration - Systemd Stage 1 - ############################################################################# +let + cfg = config._qubesLite; +in { + options._qubesLite = { + disposable = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Whether this VM should auto-shutdown when idle."; + }; + + idleTimeout = lib.mkOption { + type = lib.types.int; + default = 60; + description = "Seconds to wait after last command before shutdown."; + }; + }; + + config = { + ############################################################################# + # Boot Configuration - Systemd Stage 1 + ############################################################################# boot.initrd.systemd.enable = true; @@ -361,6 +378,7 @@ # Disable services we don't need services.timesyncd.enable = false; - # System version - system.stateVersion = "25.11"; + # System version + system.stateVersion = "25.11"; + }; }