From 236f965779fb3e7ec3f2e41f262a498ec7122ae6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 27 Jan 2025 22:38:04 -0500 Subject: add kaworu system (desktop) --- hosts/kaworu.nix | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 hosts/kaworu.nix (limited to 'hosts/kaworu.nix') diff --git a/hosts/kaworu.nix b/hosts/kaworu.nix new file mode 100644 index 0000000..0f666fb --- /dev/null +++ b/hosts/kaworu.nix @@ -0,0 +1,71 @@ +# Kaworu +# System configuration for my desktop + +{ + inputs, + options, + ... +}: + +inputs.nixpkgs.lib.nixosSystem rec { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + options + ../nix + { + # options + hostName = "kaworu"; + monitors = [{ + name = "HDMI-A-1"; + scale = 1.0; + }]; + + # hardware + hardware.graphics.enable = true; + hardware.bluetooth.enable = true; + + # bootloader + boot.loader.systemd-boot.enable = true; + boot.loader.efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot/efi"; + }; + + # kernel modules + boot.initrd.availableKernelModules = [ + "xhci_pci" + "ahci" + "usb_storage" + "usbhid" + "sd_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + # firmware + hardware.enableRedistributableFirmware = true; + hardware.cpu.amd.updateMicrocode = true; + + # luks device + boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/89257280-202b-4565-b832-89f160d5e4e2"; + + # root + fileSystems."/" = { + device = "/dev/disk/by-uuid/4906f0dd-b036-40fc-9a3f-0d031dbc2513"; + fsType = "btrfs"; + }; + + # boot + fileSystems."/boot/efi" = { + device = "/dev/disk/by-uuid/099A-D668"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + # swap + swapDevices = [ ]; + } + ]; +} -- cgit v1.2.3-freya