summaryrefslogtreecommitdiff
path: root/modules/options.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/options.nix')
-rw-r--r--modules/options.nix12
1 files changed, 7 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;
};
}