diff options
| author | Mel <mel@rnrd.eu> | 2025-08-28 15:31:46 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-08-28 17:43:32 +0200 |
| commit | 3f55de2ca5208b6fe5997766135e00cdff44a4d6 (patch) | |
| tree | ac7b4e488e2b127a21f0d4d9d4de8a0ad56cdbb1 /machines/serpentine/hardware.nix | |
| parent | 2589535363eea964fc18c51313afdeabff525b65 (diff) | |
| download | minerals-3f55de2ca5208b6fe5997766135e00cdff44a4d6.tar.zst minerals-3f55de2ca5208b6fe5997766135e00cdff44a4d6.zip | |
Add serpentine dev-server configuration
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/serpentine/hardware.nix')
| -rw-r--r-- | machines/serpentine/hardware.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/machines/serpentine/hardware.nix b/machines/serpentine/hardware.nix new file mode 100644 index 0000000..80b22ba --- /dev/null +++ b/machines/serpentine/hardware.nix @@ -0,0 +1,37 @@ +# 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, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "sd_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/6f4738f1-ccb0-4976-8d83-177fd6eafa28"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/0656-5677"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens2.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} |
