From dbef5f1bc5dc686cfe700ee2e7d15bb66e79cd4b Mon Sep 17 00:00:00 2001 From: arunoruto Date: Sun, 27 Oct 2024 00:06:15 +0200 Subject: [PATCH] Test a VPN setup --- hosts/aizen/configuration.nix | 3 +++ hosts/aizen/default.nix | 8 ++++++++ hosts/aizen/hardware-configuration.nix | 10 ++++++++++ 3 files changed, 21 insertions(+) create mode 100644 hosts/aizen/configuration.nix create mode 100644 hosts/aizen/default.nix create mode 100644 hosts/aizen/hardware-configuration.nix diff --git a/hosts/aizen/configuration.nix b/hosts/aizen/configuration.nix new file mode 100644 index 0000000..d661517 --- /dev/null +++ b/hosts/aizen/configuration.nix @@ -0,0 +1,3 @@ +{ + tinypc.enable = true; +} diff --git a/hosts/aizen/default.nix b/hosts/aizen/default.nix new file mode 100644 index 0000000..3fba3c4 --- /dev/null +++ b/hosts/aizen/default.nix @@ -0,0 +1,8 @@ +{ + imports = [ + ./configuration.nix + ./hardware-configuration.nix + + ../../modules/nixos + ]; +} diff --git a/hosts/aizen/hardware-configuration.nix b/hosts/aizen/hardware-configuration.nix new file mode 100644 index 0000000..4d50301 --- /dev/null +++ b/hosts/aizen/hardware-configuration.nix @@ -0,0 +1,10 @@ +{modulesPath, ...}: { + imports = [(modulesPath + "/profiles/qemu-guest.nix")]; + boot.loader.grub.device = "/dev/vda"; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; + boot.initrd.kernelModules = ["nvme"]; + fileSystems."/" = { + device = "/dev/vda1"; + fsType = "ext4"; + }; +}