aboutsummaryrefslogtreecommitdiff
path: root/machines/nixos-test
diff options
context:
space:
mode:
Diffstat (limited to 'machines/nixos-test')
-rw-r--r--machines/nixos-test/default.nix16
-rw-r--r--machines/nixos-test/hardware-configuration.nix9
2 files changed, 25 insertions, 0 deletions
diff --git a/machines/nixos-test/default.nix b/machines/nixos-test/default.nix
new file mode 100644
index 0000000..6a83e9a
--- /dev/null
+++ b/machines/nixos-test/default.nix
@@ -0,0 +1,16 @@
+{ config, lib, pkgs, ... }:
+
+{
+ imports = [
+ ./hardware-configuration.nix
+ ];
+
+ boot.cleanTmpDir = true;
+ zramSwap.enable = true;
+ networking.hostName = "default";
+ networking.domain = "";
+ services.openssh.enable = true;
+ users.users.root.openssh.authorizedKeys.keys = [
+ ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO2eIUtbt7RM75ThjKfUjm24QkzkzCSj7hs+GLaaxMeH cardno:12_767_512''
+ ];
+}
diff --git a/machines/nixos-test/hardware-configuration.nix b/machines/nixos-test/hardware-configuration.nix
new file mode 100644
index 0000000..850f51f
--- /dev/null
+++ b/machines/nixos-test/hardware-configuration.nix
@@ -0,0 +1,9 @@
+{ modulesPath, ... }:
+{
+ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+ boot.loader.grub.device = "/dev/sda";
+ boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
+ boot.initrd.kernelModules = [ "nvme" ];
+ fileSystems."/" = { device = "/dev/sda2"; fsType = "ext4"; };
+
+}