From 265f2d11bbea1c1baff223376c0467f142eb81eb Mon Sep 17 00:00:00 2001 From: Jurn Wubben Date: Wed, 9 Jul 2025 20:08:03 +0200 Subject: [PATCH] Added desktop device. Still need to generate hardware-config --- hosts/default.nix | 1 + hosts/desktop/default.nix | 38 ++++++++++++++++++++++++ hosts/desktop/hardware-configuration.nix | 9 ++++++ 3 files changed, 48 insertions(+) create mode 100644 hosts/desktop/default.nix create mode 100644 hosts/desktop/hardware-configuration.nix diff --git a/hosts/default.nix b/hosts/default.nix index 79d99d1..da47fd1 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -20,6 +20,7 @@ in { "laptop" "lapserv" "minimal" + "desktop" ]; in { # Systems diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix new file mode 100644 index 0000000..5430af8 --- /dev/null +++ b/hosts/desktop/default.nix @@ -0,0 +1,38 @@ +{ + imports = [ + ./hardware-configuration.nix + ]; + + niksos = { + hardware = { + bluetooth = true; + printer = true; + }; + + neovim = true; + desktop = { + games = true; + enable = true; + hyprland = false; #TODO: flip both, just trying if it works. + kde = true; + }; + }; + home-manager.users.jsw.wayland.windowManager.hyprland.settings = { + monitor = [ + "DP-3,2560x1440@165,0x0,1,vrr,1" + "HDMI-A-1,1920x1080,2560x540,1" + ]; + workspace = [ + "workspace = 1, monitor:DP-3" + "workspace = 2, monitor:DP-3" + "workspace = 3, monitor:DP-3" + "workspace = 4, monitor:HDMI-A-1" + "workspace = 5, monitor:HDMI-A-1" + "workspace = 6, monitor:DP-3" + "workspace = 7, monitor:DP-3" + "workspace = 8, monitor:DP-3" + "workspace = 9, monitor:DP-3" + "workspace = 0, monitor:HDMI-A-1" + ]; + }; +} diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix new file mode 100644 index 0000000..797b845 --- /dev/null +++ b/hosts/desktop/hardware-configuration.nix @@ -0,0 +1,9 @@ +# To be generated... +{ + nixpkgs.hostPlatform = "x86_64-linux"; + + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "ext4"; + }; +}