mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 14:24:38 -05:00
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
|
|
# Kim
|
||
|
|
# System configuration for my desktop
|
||
|
|
|
||
|
|
{ inputs, globals, overlays, ... }:
|
||
|
|
|
||
|
|
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?
|
||
|
|
}
|
||
|
|
];
|
||
|
|
}
|