diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 6a6bc59..c4a3e29 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -8,7 +8,6 @@ }: { imports = [ ./locale.nix - ./gui.nix ./packages.nix ./services.nix ./users.nix diff --git a/hosts/thor/configuration.nix b/hosts/thor/configuration.nix index fa27722..15e08c0 100644 --- a/hosts/thor/configuration.nix +++ b/hosts/thor/configuration.nix @@ -21,6 +21,7 @@ # You can also split up your configuration and import pieces of it here: # ./users.nix ../common + ./gui.nix # Import your generated (nixos-generate-config) hardware configuration ./hardware-configuration.nix diff --git a/hosts/common/gui.nix b/hosts/thor/gui.nix similarity index 100% rename from hosts/common/gui.nix rename to hosts/thor/gui.nix diff --git a/hosts/zion/configuration.nix b/hosts/zion/configuration.nix index d2a1c5d..c30fb7f 100644 --- a/hosts/zion/configuration.nix +++ b/hosts/zion/configuration.nix @@ -21,6 +21,7 @@ # You can also split up your configuration and import pieces of it here: # ./users.nix ../common + ./gui.nix # nvidia drivers ./nvidia.nix diff --git a/hosts/zion/gui.nix b/hosts/zion/gui.nix new file mode 100644 index 0000000..30429f2 --- /dev/null +++ b/hosts/zion/gui.nix @@ -0,0 +1,51 @@ +{ + inputs, + outputs, + lib, + config, + pkgs, + ... +}: { + # X Server settings + services.xserver = { + enable = true; + layout = "pl"; + xkbVariant = ""; + + displayManager = { + lightdm = { + enable = false; + }; + startx = { + enable = true; + }; + }; + + windowManager = { + dwm = { + enable = true; + }; + }; + + desktopManager = { + xfce = { + enable = false; + }; + }; + + xrandrHeads = [ + { + output = "HDMI-0"; + } + { + output = "DP-2"; + primary = true; + rate = "74.92"; + } + { + output = "DP-0"; + rate = "74.92"; + } + ]; + }; +}