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/carmel/hardware.nix | |
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/carmel/hardware.nix')
-rw-r--r-- | hosts/carmel/hardware.nix | 41 |
1 files changed, 13 insertions, 28 deletions
diff --git a/hosts/carmel/hardware.nix b/hosts/carmel/hardware.nix index aa86049..94ece14 100644 --- a/hosts/carmel/hardware.nix +++ b/hosts/carmel/hardware.nix @@ -11,36 +11,21 @@ boot.initrd.kernelModules = [ ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/7d4e07d8-1104-4ab8-8ead-8ca28da2d344"; - fsType = "btrfs"; - options = [ "subvol=nixos" ]; - }; + fileSystems."/" = + { + device = "/dev/disk/by-uuid/88b61fbd-a74e-4458-bf2e-65721bb06497"; + fsType = "ext4"; + }; - boot.initrd.luks.devices."system".device = - "/dev/disk/by-uuid/dd1b3673-ece0-49f8-bf71-8cc4e1a06634"; + fileSystems."/boot/efi" = + { + device = "/dev/disk/by-uuid/779F-4030"; + fsType = "vfat"; + }; - fileSystems."/home" = { - device = "/dev/disk/by-uuid/7d4e07d8-1104-4ab8-8ead-8ca28da2d344"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - - fileSystems."/.snapshots" = { - device = "/dev/disk/by-uuid/7d4e07d8-1104-4ab8-8ead-8ca28da2d344"; - fsType = "btrfs"; - options = [ "subvol=snapshots" ]; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/7430-1C58"; - fsType = "vfat"; - }; - - swapDevices = - [{ device = "/dev/disk/by-uuid/ebcb04f3-4227-4ec3-af52-bd775ef38027"; }]; + swapDevices = [ ]; my.hardware.amd.enable = true; - # high-resolution display - hardware.video.hidpi.enable = lib.mkDefault true; + + powerManagement.cpuFreqGovernor = "schedutil"; } |