From c3ca6e711ed57b1de511da82effaabead0f5a63f Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 7 Jul 2025 23:16:53 -0400 Subject: update state version --- modules/options.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules') 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; }; } -- cgit v1.2.3-freya