From 685dfcbb7fd95ec8c96c0680752105ba627c590c Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Sat, 3 Apr 2021 20:05:25 -0400 Subject: [PATCH] add mitty and nanachi --- mitty/configuration.nix | 22 ++++++++++++++++++ mitty/hardware-configuration.nix | 37 ++++++++++++++++++++++++++++++ nanachi/configuration.nix | 22 ++++++++++++++++++ nanachi/hardware-configuration.nix | 37 ++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 mitty/configuration.nix create mode 100644 mitty/hardware-configuration.nix create mode 100644 nanachi/configuration.nix create mode 100644 nanachi/hardware-configuration.nix diff --git a/mitty/configuration.nix b/mitty/configuration.nix new file mode 100644 index 0000000..be37c03 --- /dev/null +++ b/mitty/configuration.nix @@ -0,0 +1,22 @@ +{ config, pkgs, lib, ... }: + +{ + imports =[ + ./hardware-configuration.nix + ../common/common.nix + ../common/boot/bios.nix + ../common/boot/luks.nix + ../common/server/nginx.nix + ]; + + boot.loader.grub.device = "/dev/vda"; + networking.hostName = "mitty"; + boot.initrd.luks.devices.enc-pv.device = "/dev/disk/by-uuid/6dcf23ea-cb5e-4329-a88b-832209918c40"; + + networking.wireless.enable = false; + networking.useDHCP = false; + networking.interfaces.ens3.useDHCP = true; + + security.acme.acceptTerms = true; + security.acme.email = "letsencrypt+5@tar.ninja"; +} diff --git a/mitty/hardware-configuration.nix b/mitty/hardware-configuration.nix new file mode 100644 index 0000000..be190e9 --- /dev/null +++ b/mitty/hardware-configuration.nix @@ -0,0 +1,37 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/vg-root"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/home" = + { device = "/dev/mapper/vg-root"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/78f9b9a3-40f6-4c6c-a599-5d5067ffa214"; + fsType = "ext3"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/26252a81-8a98-45d0-8507-494ecb3901e7"; } + ]; + +} \ No newline at end of file diff --git a/nanachi/configuration.nix b/nanachi/configuration.nix new file mode 100644 index 0000000..0b6d76b --- /dev/null +++ b/nanachi/configuration.nix @@ -0,0 +1,22 @@ +{ config, pkgs, lib, ... }: + +{ + imports =[ + ./hardware-configuration.nix + ../common/common.nix + ../common/boot/bios.nix + ../common/boot/luks.nix + ../common/server/nginx.nix + ]; + + boot.loader.grub.device = "/dev/vda"; + networking.hostName = "nanachi"; + boot.initrd.luks.devices.enc-pv.device = "/dev/disk/by-uuid/e57ac752-bd99-421f-a3b9-0cfa9608a54e"; + + networking.wireless.enable = false; + networking.useDHCP = false; + networking.interfaces.ens3.useDHCP = true; + + security.acme.acceptTerms = true; + security.acme.email = "letsencrypt+5@tar.ninja"; +} diff --git a/nanachi/hardware-configuration.nix b/nanachi/hardware-configuration.nix new file mode 100644 index 0000000..d1ebf17 --- /dev/null +++ b/nanachi/hardware-configuration.nix @@ -0,0 +1,37 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/vg-root"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/home" = + { device = "/dev/mapper/vg-root"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/47b13d6a-0bbb-42a6-abd9-2b06f76d9718"; + fsType = "ext3"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/b7533a50-6dd2-4a64-953b-a8218e77d9fa"; } + ]; + +} \ No newline at end of file