diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-12-20 22:29:55 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-12-20 22:29:55 +0100 |
| commit | 95644485ac1402a8dc84c520a3ded7b29720f950 (patch) | |
| tree | c124a795dba03106cadff1645c532f6251898f86 /hardware-configuration.nix | |
| parent | 51df83cffaa45130f94bf5ab78b6b14fbb37ec4d (diff) | |
| parent | 9bde3c4624eb916bafcf9a18792edb42e3a25a17 (diff) | |
Merge branch 'master' into searx-engine-alternativeto
Diffstat (limited to 'hardware-configuration.nix')
| -rw-r--r-- | hardware-configuration.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..1b79e6f --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,27 @@ +{ pkgs, lib, modulesPath, ... }: + +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + + boot.initrd.availableKernelModules = + [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/2b302948-5608-41c6-b54c-1c0e39ff6a58"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."root".device = + "/dev/disk/by-uuid/eaec758b-ba22-42ab-8992-e765cec9be55"; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/74d78eba-c29a-4724-8fb7-624e0a03faa5"; + fsType = "ext4"; + }; + + swapDevices = [{ device = "/swap"; }]; + +} |
