From 9cc1ae1d48b23ec8211d3875e61ce5d1ea5e9f6c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 9 Jan 2024 11:50:12 +0530 Subject: hosts: mox -> fscusat --- flake.nix | 2 +- hosts/fscusat/configuration.nix | 11 +++++++++++ hosts/fscusat/hardware-configuration.nix | 25 +++++++++++++++++++++++++ hosts/fscusat/modules/network.nix | 18 ++++++++++++++++++ hosts/mox/configuration.nix | 11 ----------- hosts/mox/hardware-configuration.nix | 25 ------------------------- hosts/mox/modules/network.nix | 18 ------------------ 7 files changed, 55 insertions(+), 55 deletions(-) create mode 100644 hosts/fscusat/configuration.nix create mode 100644 hosts/fscusat/hardware-configuration.nix create mode 100644 hosts/fscusat/modules/network.nix delete mode 100644 hosts/mox/configuration.nix delete mode 100644 hosts/mox/hardware-configuration.nix delete mode 100644 hosts/mox/modules/network.nix diff --git a/flake.nix b/flake.nix index df4d99a..555c318 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,6 @@ ); in { - nixosConfigurations = makeX86 [ "cez" "kay" "mox" ]; + nixosConfigurations = makeX86 [ "cez" "kay" "fscusat" ]; }; } diff --git a/hosts/fscusat/configuration.nix b/hosts/fscusat/configuration.nix new file mode 100644 index 0000000..456cd89 --- /dev/null +++ b/hosts/fscusat/configuration.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + imports = [ + ./hardware-configuration.nix + ./modules/network.nix + ../../common.nix + ]; + + services.openssh.ports = [ 22 465 ]; +} diff --git a/hosts/fscusat/hardware-configuration.nix b/hosts/fscusat/hardware-configuration.nix new file mode 100644 index 0000000..3913e1e --- /dev/null +++ b/hosts/fscusat/hardware-configuration.nix @@ -0,0 +1,25 @@ +{ modulesPath, ... }: + +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + + boot.initrd.availableKernelModules = [ + "ata_piix" + "uhci_hcd" + "virtio_pci" + "virtio_scsi" + "sd_mod" + "sr_mod" + ]; + + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/547074b4-4d61-4968-a94f-4f97e1fa2c3c"; + fsType = "ext4"; + }; + "/boot" = { + device = "/dev/disk/by-uuid/C634-FE6A"; + fsType = "vfat"; + }; + }; +} diff --git a/hosts/fscusat/modules/network.nix b/hosts/fscusat/modules/network.nix new file mode 100644 index 0000000..53367f8 --- /dev/null +++ b/hosts/fscusat/modules/network.nix @@ -0,0 +1,18 @@ +{ ... }: + +let + wan = "ens18"; +in +{ + networking = { + interfaces.${wan}.ipv4.addresses = [{ + address = "10.0.8.101"; + prefixLength = 16; + }]; + defaultGateway = { + address = "10.0.0.1"; + interface = wan; + }; + nameservers = [ "10.0.0.2" "10.0.0.3" ]; + }; +} diff --git a/hosts/mox/configuration.nix b/hosts/mox/configuration.nix deleted file mode 100644 index 456cd89..0000000 --- a/hosts/mox/configuration.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ ... }: - -{ - imports = [ - ./hardware-configuration.nix - ./modules/network.nix - ../../common.nix - ]; - - services.openssh.ports = [ 22 465 ]; -} diff --git a/hosts/mox/hardware-configuration.nix b/hosts/mox/hardware-configuration.nix deleted file mode 100644 index 3913e1e..0000000 --- a/hosts/mox/hardware-configuration.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ modulesPath, ... }: - -{ - imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; - - boot.initrd.availableKernelModules = [ - "ata_piix" - "uhci_hcd" - "virtio_pci" - "virtio_scsi" - "sd_mod" - "sr_mod" - ]; - - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/547074b4-4d61-4968-a94f-4f97e1fa2c3c"; - fsType = "ext4"; - }; - "/boot" = { - device = "/dev/disk/by-uuid/C634-FE6A"; - fsType = "vfat"; - }; - }; -} diff --git a/hosts/mox/modules/network.nix b/hosts/mox/modules/network.nix deleted file mode 100644 index 53367f8..0000000 --- a/hosts/mox/modules/network.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ ... }: - -let - wan = "ens18"; -in -{ - networking = { - interfaces.${wan}.ipv4.addresses = [{ - address = "10.0.8.101"; - prefixLength = 16; - }]; - defaultGateway = { - address = "10.0.0.1"; - interface = wan; - }; - nameservers = [ "10.0.0.2" "10.0.0.3" ]; - }; -} -- cgit v1.2.3