From b748d26d4f06fa9f0258018e7f7ce4ad79d14138 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Sun, 25 Aug 2024 19:54:01 +0200 Subject: [PATCH] Split home and system state version --- modules/conf.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/modules/conf.nix b/modules/conf.nix index 32872e5..65e7ded 100644 --- a/modules/conf.nix +++ b/modules/conf.nix @@ -182,12 +182,20 @@ ''; }; - state_version = lib.mkOption { + systemStateVersion = lib.mkOption { default = "unstable"; example = "24.05"; type = lib.types.str; description = '' - System and home state version + System state version + ''; + }; + homeStateVersion = lib.mkOption { + default = "24.05"; + example = "23.05"; + type = lib.types.str; + description = '' + Home state version ''; }; @@ -200,9 +208,9 @@ ) pkgs.linuxPackages_xanmod_latest; } // (lib.optionalAttrs (options ? system.stateVersion) { - system.stateVersion = config.conf.state_version; + system.stateVersion = config.conf.systemStateVersion; }) // (lib.optionalAttrs (options ? home.stateVersion) { - home.stateVersion = config.conf.state_version; + home.stateVersion = config.conf.homeStateVersion; }); }