small refactor
parent
9cb1c91bc8
commit
e259f57286
56
capibara.nix
56
capibara.nix
|
@ -58,36 +58,36 @@ in {
|
||||||
|
|
||||||
swapDevices = [{ device = "/swap/swapfile"; }];
|
swapDevices = [{ device = "/swap/swapfile"; }];
|
||||||
|
|
||||||
environment.persistence."/persist/system" = {
|
environment.persistence = {
|
||||||
directories = [
|
"/persist/system" = {
|
||||||
"/var/log"
|
directories = [
|
||||||
"/var/lib/bluetooth"
|
"/var/log"
|
||||||
"/var/lib/systemd/coredump"
|
"/var/lib/bluetooth"
|
||||||
"/var/lib/docker"
|
"/var/lib/systemd/coredump"
|
||||||
];
|
"/var/lib/docker"
|
||||||
files = [
|
];
|
||||||
"/etc/machine-id"
|
files = [
|
||||||
#"/etc/nix/id_rsa"
|
"/etc/machine-id"
|
||||||
"/etc/ssh/ssh_host_ed25519_key"
|
#"/etc/nix/id_rsa"
|
||||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
"/etc/ssh/ssh_host_ed25519_key"
|
||||||
"/etc/ssh/ssh_host_rsa_key"
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
"/etc/ssh/ssh_host_rsa_key"
|
||||||
"/etc/wireguard/wg0"
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||||
];
|
"/etc/wireguard/wg0"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"/persist/user" = {
|
||||||
|
directories = [
|
||||||
|
"/etc/NetworkManager/system-connections"
|
||||||
|
"/etc/nixos"
|
||||||
|
"/var/lib/libvirt"
|
||||||
|
];
|
||||||
|
files = [ "/etc/wireguard/wg0" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence."/persist/user" = {
|
environment.variables.NIXOS_CONFIG =
|
||||||
directories = [
|
"/home/rilla/configs/nix-config/capibara.nix";
|
||||||
"/etc/NetworkManager/system-connections"
|
|
||||||
"/etc/nixos"
|
|
||||||
"/var/lib/libvirt"
|
|
||||||
];
|
|
||||||
files = [
|
|
||||||
"/etc/wireguard/wg0"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.variables.NIXOS_CONFIG = "/home/rilla/configs/nix-config/capibara.nix";
|
|
||||||
|
|
||||||
networking.networkmanager.wifi.macAddress = "CC:AF:78:75:29:32";
|
networking.networkmanager.wifi.macAddress = "CC:AF:78:75:29:32";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue