summaryrefslogtreecommitdiff
path: root/hosts/kaworu.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-01-27 22:38:04 -0500
committerFreya Murphy <freya@freyacat.org>2025-01-27 22:39:52 -0500
commit236f965779fb3e7ec3f2e41f262a498ec7122ae6 (patch)
tree36e5334345f7bc0d85e18ba6bf413526fa148961 /hosts/kaworu.nix
parentscreenshot and office apps (diff)
downloaddotfiles-nix-236f965779fb3e7ec3f2e41f262a498ec7122ae6.tar.gz
dotfiles-nix-236f965779fb3e7ec3f2e41f262a498ec7122ae6.tar.bz2
dotfiles-nix-236f965779fb3e7ec3f2e41f262a498ec7122ae6.zip
add kaworu system (desktop)
Diffstat (limited to 'hosts/kaworu.nix')
-rw-r--r--hosts/kaworu.nix71
1 files changed, 71 insertions, 0 deletions
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 = [ ];
+ }
+ ];
+}