From ed196164d01234ce957cc09a60f1f50b4685f3a5 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 25 May 2025 17:04:23 -0700 Subject: [PATCH] feat: add home-manager state version --- hosts/mairley/default.nix | 12 +++++++++--- hosts/marleycentre/default.nix | 8 +++++++- hosts/marleynet/default.nix | 8 +++++++- hosts/nyx/default.nix | 11 ++++++++++- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/hosts/mairley/default.nix b/hosts/mairley/default.nix index 3a996c8..74b258a 100644 --- a/hosts/mairley/default.nix +++ b/hosts/mairley/default.nix @@ -1,4 +1,6 @@ -{config, ...}: { +{config, ...}: let + inherit (config.marleyos.my) name; +in { networking = { computerName = "mairley"; hostName = "mairley"; @@ -10,8 +12,8 @@ }; users = { - knownUsers = ["marley"]; - users."marley" = { + knownUsers = [name]; + users."${name}" = { # This is required for some reason. uid = 501; @@ -19,5 +21,9 @@ }; }; + home-manager.users."${name}" = { + home.stateVersion = "24.05"; + }; + system.stateVersion = 5; } diff --git a/hosts/marleycentre/default.nix b/hosts/marleycentre/default.nix index dfd81d5..90c60fc 100644 --- a/hosts/marleycentre/default.nix +++ b/hosts/marleycentre/default.nix @@ -1,4 +1,6 @@ -{ +{config, ...}: let + inherit (config.marleyos.my) name; +in { imports = [./hardware-configuration.nix]; networking.hostName = "marleycentre"; @@ -25,5 +27,9 @@ allowedUDPPorts = [6881]; }; + home-manager.users."${name}" = { + home.stateVersion = "24.05"; + }; + system.stateVersion = "24.05"; } diff --git a/hosts/marleynet/default.nix b/hosts/marleynet/default.nix index 137a803..cc4b4a9 100644 --- a/hosts/marleynet/default.nix +++ b/hosts/marleynet/default.nix @@ -1,4 +1,6 @@ -{ +{config, ...}: let + inherit (config.marleyos.my) name; +in { imports = [./hardware-configuration.nix]; networking.hostName = "marleynet"; @@ -23,5 +25,9 @@ services.openssh.ports = [222]; + home-manager.users."${name}" = { + home.stateVersion = "24.05"; + }; + system.stateVersion = "24.05"; } diff --git a/hosts/nyx/default.nix b/hosts/nyx/default.nix index 8c55f6a..8cb6ac4 100644 --- a/hosts/nyx/default.nix +++ b/hosts/nyx/default.nix @@ -1,5 +1,10 @@ -{marleylib, ...}: let +{ + marleylib, + config, + ... +}: let inherit (marleylib.module) enabled; + inherit (config.marleyos.my) name; in { imports = [./hardware-configuration.nix ./mounts.nix ./autorandr.nix]; @@ -17,5 +22,9 @@ in { mounts.babeshare = enabled; }; + home-manager.users."${name}" = { + home.stateVersion = "24.05"; + }; + system.stateVersion = "24.05"; }