From 3d77342df069aae082b23c3d9528c669c424489c Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 14 Dec 2025 18:55:19 +0100 Subject: [PATCH] Added SDDM --- hosts/nixos/configuration.nix | 32 ++++++++++++++++++++++++-------- modules/nixos/locale.nix | 2 +- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix index 9dce8fc..b69ef47 100644 --- a/hosts/nixos/configuration.nix +++ b/hosts/nixos/configuration.nix @@ -21,6 +21,28 @@ # Enable Flakes nix.settings.experimental-features = [ "nix-command" "flakes" ]; + services = { + xserver = { + enable = true; + }; + displayManager = { + defaultSession = "hyprland"; + sddm = { + enable = true; + wayland.enable = false; + #enableHidpi = true; + package = pkgs.kdePackages.sddm; + theme = "sddm-astronaut-theme"; + #settings.Theme.CursorTheme = "Bibata-Modern-Classic"; + extraPackages = with pkgs; [ + kdePackages.qtmultimedia + kdePackages.qtsvg + kdePackages.qtvirtualkeyboard + ]; + }; + }; + }; + # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; @@ -52,14 +74,6 @@ # Hint Electron Apps to use Wayland environment.sessionVariables.NIXOS_OZONE_WL = "1"; - # Installs SDDM - services.displayManager = { - sddm = { - enable = true; - wayland.enable = true; - }; - defaultSession = "hyprland"; - }; # Allow unfree packages nixpkgs.config.allowUnfree = true; @@ -73,6 +87,8 @@ tree kitty neovim + # Theme SDDM + sddm-astronaut ]; # Some programs need SUID wrappers, can be configured further or are diff --git a/modules/nixos/locale.nix b/modules/nixos/locale.nix index 4183a8d..f4dc29c 100644 --- a/modules/nixos/locale.nix +++ b/modules/nixos/locale.nix @@ -21,7 +21,7 @@ # Keymap in X11 services.xserver.xkb = { layout = "fr"; - variant = "fr"; + #variant = "fr"; }; # Keymap in the console