about summary refs log tree commit diff
path: root/sys
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-10-21 16:24:58 +0000
committerAlyssa Ross <hi@alyssa.is>2023-10-22 19:39:33 +0000
commit906416a7a124aa77b6b86fe4f6951b85ee2ca36f (patch)
tree4bc5fbb35e4df8cc4e5a694c94e3b4abff758e95 /sys
parent403acf82248d3cdbc0beda0c5c373c1b46b9b636 (diff)
downloadnixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.tar
nixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.tar.gz
nixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.tar.bz2
nixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.tar.lz
nixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.tar.xz
nixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.tar.zst
nixlib-906416a7a124aa77b6b86fe4f6951b85ee2ca36f.zip
sys/hoshi.nix: init
Diffstat (limited to 'sys')
-rw-r--r--sys/default.nix1
-rw-r--r--sys/hoshi.nix63
2 files changed, 64 insertions, 0 deletions
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 ];
+}