Files
nixos-config/nixos-configurations/server/hardware-configuration.nix

37 lines
1.3 KiB
Nix
Raw Normal View History

2023-07-24 12:21:57 +00:00
# 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, ... }:
{
2024-01-04 14:07:22 +01:00
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
2023-07-24 12:21:57 +00:00
2024-01-04 14:07:22 +01:00
boot.initrd.availableKernelModules =
[ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
2023-07-24 12:21:57 +00:00
boot.initrd.kernelModules = [ ];
2023-08-09 13:16:25 +00:00
boot.kernelModules = [ ];
2023-07-24 12:21:57 +00:00
boot.extraModulePackages = [ ];
2024-01-04 14:07:22 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/950d0289-1ae9-4c4b-8792-3f369e2d0f05";
fsType = "ext4";
};
2023-07-24 12:21:57 +00:00
2024-01-04 14:07:22 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/08B5-9946";
fsType = "vfat";
};
2023-07-24 12:21:57 +00:00
2023-08-04 08:12:40 +00:00
swapDevices =
2024-01-04 14:07:22 +01:00
[{ device = "/dev/disk/by-uuid/d3ecc375-0371-4391-ad48-b79168737ec7"; }];
2023-07-24 12:21:57 +00:00
# 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;
2023-08-09 13:16:25 +00:00
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
2023-07-24 12:21:57 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}