mv sddm to module

This commit is contained in:
smayzy 2025-07-09 14:04:35 +02:00
parent 100306baed
commit 33cc5b43b8
7 changed files with 25 additions and 6 deletions

View File

@ -36,9 +36,6 @@
}
'';
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
environment.systemPackages = with pkgs; [
obsidian
libsForQt5.kdenlive

View File

@ -25,9 +25,6 @@
networking.hostName = "laptop1";
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
environment.systemPackages = with pkgs; [
obsidian
libsForQt5.kdenlive

View File

@ -14,6 +14,7 @@
./de
./office
./comm
./displaymanager
];
# Timzone and locales (same for all machines so I put it here)

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./sddm.nix
];
}

View File

@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.sddm.enable = mkOption {
type = types.bool;
default = false;
description = "sddm";
};
config = mkIf config.smayzy.sddm.enable {
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
};
}

View File

@ -22,6 +22,7 @@ in
office.enable = true;
element.enable = true;
webcord.enable = true;
sddm.enable = true;
};
};
}

View File

@ -22,6 +22,7 @@ in
office.enable= true;
webcord.enable = true;
element.enable = true;
sddm.enable = true;
};
services.logind.lidSwitch = "ignore";
};