just came out of git hell and seemingly fixed machine-id, i think this is it?

This commit is contained in:
Xory 2025-10-27 13:06:50 +02:00
parent c77266c716
commit 20dee8e307
2 changed files with 22 additions and 4 deletions

16
flake.lock generated
View file

@ -20,6 +20,21 @@
"type": "github" "type": "github"
} }
}, },
"impermanence": {
"locked": {
"lastModified": 1737831083,
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=",
"owner": "nix-community",
"repo": "impermanence",
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "impermanence",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1761114652, "lastModified": 1761114652,
@ -39,6 +54,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View file

@ -44,6 +44,7 @@
fileSystems."/persist" = { fileSystems."/persist" = {
device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39";
fsType = "ext4"; fsType = "ext4";
neededForBoot = true;
}; };
environment.persistence."/persist" = { environment.persistence."/persist" = {
@ -54,13 +55,14 @@
"/var/lib/bluetooth" "/var/lib/bluetooth"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
"/var/lib/nixos" "/var/lib/nixos"
"/home"
];
files = [
"/etc/machine-id"
]; ];
}; };
environment.etc."machine-id" = {
source = "/persist/etc/machine-id";
mode = "0444";
};
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
programs.zsh.enable = true; # home-manager already installs this but nixos complains w/o it programs.zsh.enable = true; # home-manager already installs this but nixos complains w/o it
users.users.xory = { users.users.xory = {