diff options
-rw-r--r-- | hosts/omar/configuration.nix | 22 | ||||
-rw-r--r-- | hosts/omar/desktop-environment/default.nix | 34 |
2 files changed, 35 insertions, 21 deletions
diff --git a/hosts/omar/configuration.nix b/hosts/omar/configuration.nix index a25322b..039316c 100644 --- a/hosts/omar/configuration.nix +++ b/hosts/omar/configuration.nix @@ -15,6 +15,7 @@ ../../shared/nixos/persist-ssh-host-keys ./wireless-networking + ./desktop-environment ]; boot.loader.grub = { @@ -53,27 +54,6 @@ home.stateVersion = "24.11"; }; - # Enable the X11 windowing system. - # services.xserver.enable = true; - - # Configure keymap in X11 - # services.xserver.xkb.layout = "us"; - # services.xserver.xkb.options = "eurosign:e,caps:escape"; - - # Enable CUPS to print documents. - # services.printing.enable = true; - - # Enable sound. - # hardware.pulseaudio.enable = true; - # OR - # services.pipewire = { - # enable = true; - # pulse.enable = true; - # }; - - # Enable touchpad support (enabled default in most desktopManager). - # services.libinput.enable = true; - # Enable the OpenSSH daemon. services.openssh.enable = true; diff --git a/hosts/omar/desktop-environment/default.nix b/hosts/omar/desktop-environment/default.nix new file mode 100644 index 0000000..78961b6 --- /dev/null +++ b/hosts/omar/desktop-environment/default.nix @@ -0,0 +1,34 @@ +# This module configures a desktop environment specific to this host. + +{pkgs, ...}: + +{ + # Enable the X11 windowing system. + services.xserver.enable = true; + + services.xserver.windowManager.dwm.enable = true; + + environment.systemPackages = with pkgs; [ + st + dmenu + ]; + + # Configure keymap in X11 + services.xserver.xkb.layout = "dk"; + services.xserver.xkb.options = "caps:escape"; + console.useXkbConfig = true; + + # Enable CUPS to print documents. + # services.printing.enable = true; + + # Enable sound. + # hardware.pulseaudio.enable = true; + # OR + # services.pipewire = { + # enable = true; + # pulse.enable = true; + # }; + + # Enable touchpad support (enabled default in most desktopManager). + services.libinput.enable = true; +} |