Move stateVersion variables into per-machine config files
This commit is contained in:
parent
b4f6e267a1
commit
42e865c066
|
@ -1,4 +1,8 @@
|
|||
{ ... }:
|
||||
{ username, ... }:
|
||||
{
|
||||
imports = [ ./laptop.nix ];
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
imports = [ ./laptop.nix ];
|
||||
home-manager.users.${username} = {
|
||||
imports = [ ./home/work.nix ];
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
boot.initrd = {
|
||||
secrets = {
|
||||
|
@ -13,6 +14,7 @@
|
|||
keyFile = "/crypto_keyfile.bin";
|
||||
};
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
environment = {
|
||||
etc."ppp/options".text = ''
|
||||
ipcp-accept-remote
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
imports = [ ./desktop.nix ];
|
||||
home-manager.users.${username} = {
|
||||
imports = [ ./home/work.nix ];
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
boot = {
|
||||
loader.efi.efiSysMountPoint = "/boot/efi";
|
||||
|
@ -16,6 +17,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
environment = {
|
||||
etc."ppp/options".text = ''
|
||||
ipcp-accept-remote
|
||||
|
|
|
@ -8,22 +8,25 @@
|
|||
imports = [ ./desktop.nix ];
|
||||
environment.sessionVariables.MANGOHUD = 1;
|
||||
home-manager.users.${username} = {
|
||||
home.packages = with pkgs; [
|
||||
krita
|
||||
kdenlive
|
||||
helvum
|
||||
prusa-slicer
|
||||
blender
|
||||
freecad
|
||||
openscad
|
||||
kicad-small
|
||||
mangohud
|
||||
wineWowPackages.waylandFull
|
||||
winetricks
|
||||
lutris
|
||||
cartridges
|
||||
prismlauncher
|
||||
];
|
||||
home = {
|
||||
stateVersion = "23.05";
|
||||
packages = with pkgs; [
|
||||
krita
|
||||
kdenlive
|
||||
helvum
|
||||
prusa-slicer
|
||||
blender
|
||||
freecad
|
||||
openscad
|
||||
kicad-small
|
||||
mangohud
|
||||
wineWowPackages.waylandFull
|
||||
winetricks
|
||||
lutris
|
||||
cartridges
|
||||
prismlauncher
|
||||
];
|
||||
};
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
|
@ -69,6 +72,7 @@
|
|||
};
|
||||
steam-hardware.enable = true;
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
programs = {
|
||||
gamemode.enable = true;
|
||||
steam = {
|
||||
|
|
|
@ -80,22 +80,19 @@
|
|||
})
|
||||
];
|
||||
};
|
||||
system = {
|
||||
stateVersion = "23.05";
|
||||
autoUpgrade = {
|
||||
enable = true;
|
||||
persistent = true;
|
||||
allowReboot = false;
|
||||
flake = "git+${config.nix.registry.my-nixos.to.url}";
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "5min";
|
||||
flags = [
|
||||
"--accept-flake-config"
|
||||
"--option"
|
||||
"extra-binary-caches"
|
||||
"https://nix.xenia.me.uk"
|
||||
];
|
||||
};
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
persistent = true;
|
||||
allowReboot = false;
|
||||
flake = "git+${config.nix.registry.my-nixos.to.url}";
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "5min";
|
||||
flags = [
|
||||
"--accept-flake-config"
|
||||
"--option"
|
||||
"extra-binary-caches"
|
||||
"https://nix.xenia.me.uk"
|
||||
];
|
||||
};
|
||||
systemd.services = lib.mkIf config.system.autoUpgrade.enable {
|
||||
nixos-upgrade.serviceConfig = {
|
||||
|
@ -152,7 +149,6 @@
|
|||
imports = [ ./home/default.nix ];
|
||||
home = {
|
||||
inherit username;
|
||||
stateVersion = "23.05";
|
||||
homeDirectory = "/home/${username}";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue