diff options
author | Franck Cuny <franck@fcuny.net> | 2023-03-18 11:58:35 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-04-03 17:53:02 -0700 |
commit | c5a78751f96587bf4a3704143ac81598ee6c3e5b (patch) | |
tree | daf41e9b05ade02118eaa08aabf9bac771e12c71 /hosts/aptos | |
parent | flake: fix URL for sendsms (diff) | |
download | world-c5a78751f96587bf4a3704143ac81598ee6c3e5b.tar.gz |
hosts/carmel: reconfigure the host as a router
I'm not using it as a desktop, and the current router is getting old and will likely fail in the near future. It's also a debian machine configured manually, so let's reconfigure carmel as our new router. There are three NICs in the host: 2 are 10Gb and one is 1Gb. The 1Gb will be used as the upstream interface, and one of the 10Gb will be for the LAN. There are 2 VLANs to configure: one for IoT devices and one for guest.
Diffstat (limited to 'hosts/aptos')
-rw-r--r-- | hosts/aptos/hardware.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hosts/aptos/hardware.nix b/hosts/aptos/hardware.nix index 0569203..990ab60 100644 --- a/hosts/aptos/hardware.nix +++ b/hosts/aptos/hardware.nix @@ -17,6 +17,7 @@ options = [ "subvol=nixos" ]; }; + boot.initrd.luks.devices."system".allowDiscards = true; boot.initrd.luks.devices."system".device = "/dev/disk/by-uuid/c83a8db7-4215-4864-8a46-b8ca839d8c05"; @@ -46,5 +47,7 @@ my.hardware.intel.enable = true; my.hardware.bluetooth.enable = true; + my.systems.btrfs.enable = true; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; } |