Adjust base and home packages
This commit is contained in:
parent
a90a9c3a8e
commit
218b7dc4ca
8 changed files with 156 additions and 103 deletions
|
|
@ -182,20 +182,27 @@
|
|||
'';
|
||||
};
|
||||
|
||||
system_state_version = lib.mkOption {
|
||||
state_version = lib.mkOption {
|
||||
default = "unstable";
|
||||
example = "24.05";
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
System state version
|
||||
System and home state version
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = {
|
||||
conf.kernel = lib.mkIf (
|
||||
config.mods.gaming.enable && config.mods.gaming.kernel
|
||||
) pkgs.linuxPackages_xanmod_latest;
|
||||
} // (lib.optionalAttrs (options ? system.stateVersion) { system.stateVersion = "unstable"; });
|
||||
config =
|
||||
{
|
||||
conf.kernel = lib.mkIf (
|
||||
config.mods.gaming.enable && config.mods.gaming.kernel
|
||||
) pkgs.linuxPackages_xanmod_latest;
|
||||
}
|
||||
// (lib.optionalAttrs (options ? system.stateVersion) {
|
||||
system.stateVersion = config.conf.state_version;
|
||||
})
|
||||
// (lib.optionalAttrs (options ? home.stateVersion) {
|
||||
home.stateVersion = config.conf.state_version;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue