From e259f57286cc42d12d39014a20258e99b7aa46a3 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 19 Jan 2022 16:35:36 +0100 Subject: [PATCH] small refactor --- capibara.nix | 56 ++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/capibara.nix b/capibara.nix index cd4e3ed..799a998 100644 --- a/capibara.nix +++ b/capibara.nix @@ -58,36 +58,36 @@ in { swapDevices = [{ device = "/swap/swapfile"; }]; - environment.persistence."/persist/system" = { - directories = [ - "/var/log" - "/var/lib/bluetooth" - "/var/lib/systemd/coredump" - "/var/lib/docker" - ]; - files = [ - "/etc/machine-id" - #"/etc/nix/id_rsa" - "/etc/ssh/ssh_host_ed25519_key" - "/etc/ssh/ssh_host_ed25519_key.pub" - "/etc/ssh/ssh_host_rsa_key" - "/etc/ssh/ssh_host_rsa_key.pub" - "/etc/wireguard/wg0" - ]; + environment.persistence = { + "/persist/system" = { + directories = [ + "/var/log" + "/var/lib/bluetooth" + "/var/lib/systemd/coredump" + "/var/lib/docker" + ]; + files = [ + "/etc/machine-id" + #"/etc/nix/id_rsa" + "/etc/ssh/ssh_host_ed25519_key" + "/etc/ssh/ssh_host_ed25519_key.pub" + "/etc/ssh/ssh_host_rsa_key" + "/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" = { - directories = [ - "/etc/NetworkManager/system-connections" - "/etc/nixos" - "/var/lib/libvirt" - ]; - files = [ - "/etc/wireguard/wg0" - ]; - }; - - environment.variables.NIXOS_CONFIG = "/home/rilla/configs/nix-config/capibara.nix"; + environment.variables.NIXOS_CONFIG = + "/home/rilla/configs/nix-config/capibara.nix"; networking.networkmanager.wifi.macAddress = "CC:AF:78:75:29:32";