nixos/hosts/virt-nix/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-18 09:56:35 -04:00
# Kim
# System configuration for my desktop
2024-05-18 10:02:52 -04:00
{ inputs, globals, ... }:
2024-05-18 09:56:35 -04:00
with inputs;
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
globals
home-manager.nixosModules.home-manager
# ../../modules/common
# ../../modules/nixos
{
# something with overlays, I don't get those yet.
# Hardware
physical = true;
networking.hostName = "virt-nix";
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
services.xserver.videoDrivers = [ "amdgpu" ]; # TODO: I use wayland, do I need this?
hardware.enableRedistributableFirmware = true;
powerManagement.cpuFreqGovernor = "performance";
hardware.cpu.amd.updateMicrocode = true;
fileSystems."/" =
{
device = "/dev/disk/by-uuid/ba78bd44-dd31-4f55-88ce-ab83fbf3eb4e";
fsType = "ext4";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
# TODO: identityFile = "/home/${globals.user}/.ssh/id_ed2519";
# TODO: passwordHash = nixpkgs.lib.fileContents ../../password.sha512;
# Theming?
}
];
}