mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 16:15:33 -05:00
54 lines
1.4 KiB
Nix
54 lines
1.4 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 = "kim";
|
||
|
|
|
||
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||
|
|
boot.kernelModules = [ "kvm-amd" ];
|
||
|
|
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/ba4362a3-3a0b-4227-b460-a5a9302f5966";
|
||
|
|
fsType = "ext4";
|
||
|
|
};
|
||
|
|
|
||
|
|
fileSystems."/boot" =
|
||
|
|
{
|
||
|
|
device = "/dev/disk/by-uuid/DB88-8E65";
|
||
|
|
fsType = "vfat";
|
||
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
||
|
|
};
|
||
|
|
|
||
|
|
swapDevices = [ ];
|
||
|
|
|
||
|
|
networking.useDHCP = lib.mkDefault true;
|
||
|
|
|
||
|
|
# TODO: identityFile = "/home/${globals.user}/.ssh/id_ed2519";
|
||
|
|
# TODO: passwordHash = nixpkgs.lib.fileContents ../../password.sha512;
|
||
|
|
|
||
|
|
# Theming?
|
||
|
|
}
|
||
|
|
];
|
||
|
|
}
|