feat: add home-manager state version

This commit is contained in:
punkfairie 2025-05-25 17:04:23 -07:00
parent a9f699c4e1
commit ed196164d0
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
4 changed files with 33 additions and 6 deletions

View file

@ -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;
}

View file

@ -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";
}

View file

@ -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";
}

View file

@ -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";
}