diff options
Diffstat (limited to '')
-rw-r--r-- | modules/options.nix | 12 | ||||
-rw-r--r-- | options.nix | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/modules/options.nix b/modules/options.nix index 4c083ca..1b120be 100644 --- a/modules/options.nix +++ b/modules/options.nix @@ -191,8 +191,6 @@ with lib; let }; }; }; - - stateVersion = "25.05"; in { options = { # @@ -207,6 +205,10 @@ in { description = "System time zone"; default = "America/New_York"; }; + stateVersion = mkOption { + type = types.str; + description = "NixOS State Version"; + }; # # System modules @@ -397,8 +399,8 @@ in { nixpkgs.config.allowUnfree = true; # set state version - home-manager.users.${config.user}.home.stateVersion = stateVersion; - home-manager.users.root.home.stateVersion = stateVersion; - system.stateVersion = stateVersion; + home-manager.users.${config.user}.home.stateVersion = config.stateVersion; + home-manager.users.root.home.stateVersion = config.stateVersion; + system.stateVersion = config.stateVersion; }; } diff --git a/options.nix b/options.nix index a015b26..73b5193 100644 --- a/options.nix +++ b/options.nix @@ -35,4 +35,6 @@ "discord --enable-features=UseOzonePlatform --ozone-platform=wayland" "element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland" ]; + + stateVersion = "25.11"; } |