Moved DE config to the generic folder

This commit is contained in:
2025-05-24 08:14:29 +02:00
parent 80e8435f47
commit 5b5372182d
7 changed files with 93 additions and 82 deletions

19
modules/nix-config/de.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs, lib, currentSystemDe, ... }:
{
services.xserver.enable = true;
# Display managers
services.displayManager.sddm = lib.mkIf (currentSystemDe == "plasma") {
enable = true;
wayland.enable = true;
};
services.xserver.displayManager.gdm.enable = lib.mkIf (currentSystemDe == "gnome") true;
# Desktop environments
services.desktopManager.plasma6.enable = lib.mkIf (currentSystemDe == "plasma") true;
environment.plasma6.excludePackages = with pkgs.kdePackages; [
elisa
konsole
];
services.xserver.desktopManager.gnome.enable = lib.mkIf (currentSystemDe == "gnome") true;
}

View File

@@ -2,6 +2,9 @@
{
imports = [
./fonts.nix
./de.nix
./sound.nix
./keyboard.nix
];
time.timeZone = "Europe/Rome";
@@ -31,7 +34,7 @@
users.users.${currentSystemUser} = {
isNormalUser = true;
description = "Patrick Canal";
extraGroups = [ "networkmanager" "wheel" "docker" ];
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
};

View File

@@ -0,0 +1,8 @@
{ ... }:
{
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
}

View File

@@ -0,0 +1,13 @@
{ ... }:
{
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}