Refactor: Initial step

- Added library for common functions
- Moved machines/ to hosts/
- Automise adding new hosts to the flake
This commit is contained in:
caem 2024-07-25 21:24:28 +02:00
parent 95b9318585
commit 1ea937f884
Signed by: caem
GPG key ID: 69A830D03203405F
7 changed files with 54 additions and 5 deletions

View file

@ -0,0 +1,22 @@
{ ... }:
{
environment.persistence."/nix/persist" = {
hideMounts = true;
directories = [
"/var/log"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
{
directory = "/var/lib/colord";
user = "colord";
group = "colord";
mode = "u=rwx,g=rx,o=";
}
];
files = [
"/etc/machine-id"
];
};
}