From 906416a7a124aa77b6b86fe4f6951b85ee2ca36f Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 21 Oct 2023 16:24:58 +0000 Subject: sys/hoshi.nix: init --- sys/default.nix | 1 + sys/hoshi.nix | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 sys/hoshi.nix (limited to 'sys') diff --git a/sys/default.nix b/sys/default.nix index b0e647ca29a0..204165ca1e69 100644 --- a/sys/default.nix +++ b/sys/default.nix @@ -6,5 +6,6 @@ in { atuin = buildSystem ./atuin.nix; + hoshi = buildSystem ./hoshi.nix; mbp = buildSystem ./mbp.nix; } diff --git a/sys/hoshi.nix b/sys/hoshi.nix new file mode 100644 index 000000000000..e35eb53585a7 --- /dev/null +++ b/sys/hoshi.nix @@ -0,0 +1,63 @@ +{ pkgs, ... }: + +{ + imports = [ + ../modules/nixos-hardware/common/cpu/amd + ../modules/nixos-hardware/common/pc/ssd + ../modules/workstation/audio + ../modules/workstation/hardware/bluetooth + ../modules/workstation/physical + ]; + + hardware.enableRedistributableFirmware = true; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + boot.initrd.availableKernelModules = + [ "amdgpu" "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + + boot.kernelModules = [ "kvm-amd" ]; + + boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/3b86ddac-b0c6-41a5-a562-6a38271e3e0f"; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/b1e9177d-897a-4721-9e9a-b85566a40dea"; + fsType = "btrfs"; + options = [ "compress=zstd,subvol=@.qyliss" ]; + }; + + fileSystems."/home" = { + device = "/dev/disk/by-uuid/b1e9177d-897a-4721-9e9a-b85566a40dea"; + fsType = "btrfs"; + options = [ "compress=zstd,subvol=@home" ]; + }; + + fileSystems."/nix" = { + device = "/dev/disk/by-uuid/b1e9177d-897a-4721-9e9a-b85566a40dea"; + fsType = "btrfs"; + options = [ "compress=zstd,subvol=@nix" ]; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/A6C9-8FC2"; + fsType = "vfat"; + }; + + networking.hostName = "hoshi"; + + # Not enough memory for 24 core builds of webkitgtk. + nix.settings.cores = 12; + + programs.sway.extraConfig = '' + output HDMI-A-1 pos 0 0 scale 2 + output DP-1 scale 2 + ''; + + system.stateVersion = "23.05"; + + users.users.qyliss.password = "helloworld"; + + hardware.opengl.enable = true; + hardware.opengl.extraPackages = with pkgs; [ libGL ]; +} -- cgit 1.4.1