diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-29 15:38:40 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-29 15:38:40 +0530 |
commit | 7f080be877a5b6146d2b186f178e9ec986cb1b34 (patch) | |
tree | cd62ad11149f8354a3f99f0354838ccee9cb6fe8 | |
parent | 384246a055759959649cb6ea7a56371d6d5c6ef6 (diff) |
hosts/lia: reborn
-rw-r--r-- | nixos/lia/hardware-configuration.nix | 26 | ||||
-rw-r--r-- | nixos/lia/modules/network/default.nix | 2 | ||||
-rw-r--r-- | nixos/lia/modules/network/router.nix | 4 |
3 files changed, 16 insertions, 16 deletions
diff --git a/nixos/lia/hardware-configuration.nix b/nixos/lia/hardware-configuration.nix index 6f4c6a4..8417070 100644 --- a/nixos/lia/hardware-configuration.nix +++ b/nixos/lia/hardware-configuration.nix @@ -4,26 +4,26 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { - loader.grub = { - enable = true; - device = "/dev/sda"; - }; + loader.systemd-boot.enable = true; + kernelModules = [ "kvm-amd" ]; - kernelModules = [ "kvm-intel" ]; initrd.availableKernelModules = [ - "uhci_hcd" - "ehci_pci" - "ata_piix" - "hpsa" + "xhci_pci" + "ahci" "usb_storage" "usbhid" "sd_mod" - "sr_mod" ]; }; - fileSystems."/" = { - device = "/dev/disk/by-uuid/99fc38a8-9003-4ae2-98f4-e08afd9b4114"; - fsType = "ext4"; + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/9ad3550b-8c9a-4541-8fac-7af185599446"; + fsType = "ext4"; + }; + "/boot" = { + device = "/dev/disk/by-uuid/6111-05EC"; + fsType = "vfat"; + }; }; } diff --git a/nixos/lia/modules/network/default.nix b/nixos/lia/modules/network/default.nix index 927b2b5..c8d9059 100644 --- a/nixos/lia/modules/network/default.nix +++ b/nixos/lia/modules/network/default.nix @@ -1,5 +1,5 @@ { ... }: let - wan = "enp4s0f2"; + wan = "enp9s0"; in { imports = [ diff --git a/nixos/lia/modules/network/router.nix b/nixos/lia/modules/network/router.nix index a6aef80..b8cac8c 100644 --- a/nixos/lia/modules/network/router.nix +++ b/nixos/lia/modules/network/router.nix @@ -1,6 +1,6 @@ { ... }: let - wanInterface = "enp4s0f2"; - lanInterfaces = [ "enp4s0f1" "enp4s0f3" ]; + wanInterface = "enp9s0"; + lanInterfaces = [ "enp1s0f0" "enp1s0f1" ]; prefix = 24; subnet = "192.168.1.0"; |