diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-09 01:15:18 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-18 15:22:22 +0200 |
commit | 6795b5bd64c240cd989b2db12eb5c4652e48aecd (patch) | |
tree | b1fed97244faeab8d58defcc28c9b388db06a50d /hosts/luna | |
parent | River: Change exit to Mod+Ctrl+Shift E (diff) | |
download | nixos-config-6795b5bd64c240cd989b2db12eb5c4652e48aecd.tar.gz nixos-config-6795b5bd64c240cd989b2db12eb5c4652e48aecd.tar.bz2 nixos-config-6795b5bd64c240cd989b2db12eb5c4652e48aecd.zip |
Implement host-hardware separation
Diffstat (limited to 'hosts/luna')
-rw-r--r-- | hosts/luna/default.nix | 2 | ||||
-rw-r--r-- | hosts/luna/hardware/chromebook/default.nix | 4 | ||||
-rw-r--r-- | hosts/luna/hardware/chromebook/disks.nix (renamed from hosts/luna/disks.nix) | 11 | ||||
-rw-r--r-- | hosts/luna/hardware/chromebook/hardware.nix (renamed from hosts/luna/hardware.nix) | 0 |
4 files changed, 15 insertions, 2 deletions
diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix index f70c975..9fbe164 100644 --- a/hosts/luna/default.nix +++ b/hosts/luna/default.nix @@ -1,8 +1,6 @@ { config, pkgs, lib, secrets, hostname, inputs, user, ... }: { imports = [ - ./hardware.nix - ../../modules/power-save ../../modules/bluetooth ]; diff --git a/hosts/luna/hardware/chromebook/default.nix b/hosts/luna/hardware/chromebook/default.nix new file mode 100644 index 0000000..b0125ee --- /dev/null +++ b/hosts/luna/hardware/chromebook/default.nix @@ -0,0 +1,4 @@ +{ ... }: +{ + imports = [ ./hardware.nix ]; +} diff --git a/hosts/luna/disks.nix b/hosts/luna/hardware/chromebook/disks.nix index bb12ec9..ad0e014 100644 --- a/hosts/luna/disks.nix +++ b/hosts/luna/hardware/chromebook/disks.nix @@ -56,6 +56,17 @@ in { config = { + environment.persistence."/persist" = { + directories = [ + "/var/log" + "/var/lib" + ]; + files = [ + "/etc/machine-id" + "/etc/nix/id_rsa" + ]; + }; + fileSystems."/" = { device = "none"; fsType = "tmpfs"; diff --git a/hosts/luna/hardware.nix b/hosts/luna/hardware/chromebook/hardware.nix index 85b7227..85b7227 100644 --- a/hosts/luna/hardware.nix +++ b/hosts/luna/hardware/chromebook/hardware.nix |