summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-10-27 19:54:54 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2024-10-27 19:54:54 +0100
commit9975844cb95642c1e5ed428e085df841e23a4308 (patch)
tree7ff718d0a8149e1f9db7d335b88d86d066e046ff /hosts
parentd02babb482b3189bbafec3e1ed12aa6565b6e377 (diff)
flake: update
Diffstat (limited to 'hosts')
-rw-r--r--hosts/workstation/default.nix147
1 files changed, 75 insertions, 72 deletions
diff --git a/hosts/workstation/default.nix b/hosts/workstation/default.nix
index acae824..34d17b9 100644
--- a/hosts/workstation/default.nix
+++ b/hosts/workstation/default.nix
@@ -1,88 +1,91 @@
{ pkgs, nixpkgs, ... }:
{
- imports = [
- ./hardware.nix
- ../../modules/hyprland/monitor.nix
- ../../modules/usbauth/default.nix
- ];
+ imports = [
+ ./hardware.nix
+ ../../modules/hyprland/monitor.nix
+ ../../modules/usbauth/default.nix
+ ];
- nixpkgs.config.rocmSupport = true;
+ nixpkgs.config.rocmSupport = true;
- networking.hostName = "workstation";
+ networking.hostName = "workstation";
- boot.loader = {
- efi.canTouchEfiVariables = true;
- grub = {
- enable = true;
- device = "nodev";
- efiSupport = true;
- gfxmodeEfi = "1920x1080";
- };
- };
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ grub = {
+ enable = true;
+ device = "nodev";
+ efiSupport = true;
+ gfxmodeEfi = "1920x1080";
+ };
+ };
- hyprland.monitors = {
- default = {
- resolution = "preferred";
- position = "auto";
- scale = 1;
- };
+ hyprland.monitors = {
+ default = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ };
- DP-2 = {
- resolution = "preferred";
- position = "auto";
- scale = 1;
- bar.enable = true;
- };
+ DP-2 = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ bar.enable = true;
+ };
- DP-3 = {
- resolution = "preferred";
- position = "auto";
- scale = 1;
- transform = {
- rotation = 90;
- };
- };
+ DP-3 = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ transform = {
+ rotation = 90;
+ };
+ };
- HDMA-A-1 = {
- resolution = "preferred";
- position = "auto";
- scale = 1;
- };
- };
+ HDMA-A-1 = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ };
+ };
- webtray.instances = {
- element = {
- url = "https://chat.nathanreiner.xyz";
- autoStart = true;
- openInWindow = false;
- };
- syncthing-tray = {
- url = "http://localhost:8384";
- autoStart = true;
- openInWindow = false;
- };
- };
+ webtray.instances = {
+ element = {
+ url = "https://chat.nathanreiner.xyz";
+ autoStart = true;
+ openInWindow = false;
+ };
+ syncthing-tray = {
+ url = "http://localhost:8384";
+ autoStart = true;
+ openInWindow = false;
+ };
+ };
- usbauth = {
- enable = true;
- device = "root";
- uuid = "543f281c-4feb-4a5a-b51b-99114fa4b8a1";
- keyname = "n8";
- };
+ usbauth = {
+ enable = true;
+ device = "root";
+ uuid = "543f281c-4feb-4a5a-b51b-99114fa4b8a1";
+ keyname = "n8";
+ };
- hardware.opengl = {
- enable = true;
- driSupport = true;
- driSupport32Bit = true;
- extraPackages = with pkgs; [
- amdvlk
- rocmPackages.clr.icd
- ];
- };
+ hardware.opengl = {
+ enable = true;
+ driSupport = true;
+ driSupport32Bit = true;
+ extraPackages = with pkgs; [
+ amdvlk
+ rocmPackages.clr.icd
+ vulkan-loader
+ vulkan-validation-layers
+ vulkan-extension-layer
+ ];
+ };
- systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ];
+ systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ];
- environment.systemPackages = with pkgs; [ clinfo ];
+ environment.systemPackages = with pkgs; [ clinfo ];
- system.stateVersion = "24.05";
+ system.stateVersion = "24.05";
}