From 4abb25ea7d3876899e641a8a16281203bd164d53 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sat, 23 Sep 2023 15:41:49 -0400 Subject: initial config for all 3 systems --- systems/jontest/default.nix | 22 ++++++++++++++++++++++ systems/jontest/filesystem.nix | 11 +++++++++++ systems/jontest/hardware-configuration.nix | 7 +++++++ 3 files changed, 40 insertions(+) create mode 100644 systems/jontest/default.nix create mode 100644 systems/jontest/filesystem.nix create mode 100644 systems/jontest/hardware-configuration.nix (limited to 'systems/jontest') 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, ... }: + +{ +} -- cgit v1.2.1