summaryrefslogtreecommitdiffstats
path: root/systems/jontest
diff options
context:
space:
mode:
Diffstat (limited to 'systems/jontest')
-rw-r--r--systems/jontest/default.nix22
-rw-r--r--systems/jontest/filesystem.nix11
-rw-r--r--systems/jontest/hardware-configuration.nix7
3 files changed, 40 insertions, 0 deletions
diff --git a/systems/jontest/default.nix b/systems/jontest/default.nix
new file mode 100644
index 0000000..b2a7f82
--- /dev/null
+++ b/systems/jontest/default.nix
@@ -0,0 +1,22 @@
+{ lib, modulesPath, pkgs, ... }:
+
+{
+ imports =
+ [ # Include the results of the hardware scan.
+ (modulesPath + "/profiles/qemu-guest.nix")
+ ./filesystem.nix
+ ];
+
+ boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ # Bootloader.
+ boot.loader.grub.enable = true;
+ boot.loader.grub.device = "/dev/vda";
+ boot.loader.grub.useOSProber = true;
+
+ services.qemuGuest.enable = true;
+ services.spice-vdagentd.enable = true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}
diff --git a/systems/jontest/filesystem.nix b/systems/jontest/filesystem.nix
new file mode 100644
index 0000000..e247a9d
--- /dev/null
+++ b/systems/jontest/filesystem.nix
@@ -0,0 +1,11 @@
+{ ... }:
+{
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/a6804a93-979a-4596-879d-8b2fe8332541";
+ fsType = "ext4";
+ };
+
+ swapDevices =
+ [ { device = "/dev/disk/by-uuid/e6e941fe-f3a4-4b5e-960c-74d65e1e6257"; }
+ ];
+}
diff --git a/systems/jontest/hardware-configuration.nix b/systems/jontest/hardware-configuration.nix
new file mode 100644
index 0000000..62427e0
--- /dev/null
+++ b/systems/jontest/hardware-configuration.nix
@@ -0,0 +1,7 @@
+# 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, ... }:
+
+{
+}