diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2023-09-23 15:41:49 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2023-09-23 15:41:49 -0400 |
commit | 4abb25ea7d3876899e641a8a16281203bd164d53 (patch) | |
tree | 8b47a0381776df3eb441cd6f31b15341d99847da /systems/jontest | |
download | nix-config-4abb25ea7d3876899e641a8a16281203bd164d53.tar.gz nix-config-4abb25ea7d3876899e641a8a16281203bd164d53.tar.bz2 nix-config-4abb25ea7d3876899e641a8a16281203bd164d53.zip |
initial config for all 3 systems
Diffstat (limited to 'systems/jontest')
-rw-r--r-- | systems/jontest/default.nix | 22 | ||||
-rw-r--r-- | systems/jontest/filesystem.nix | 11 | ||||
-rw-r--r-- | systems/jontest/hardware-configuration.nix | 7 |
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, ... }: + +{ +} |