feat: sddm module

This commit is contained in:
Artur Manuel 2024-10-16 17:01:46 +01:00
commit 2c70c86c8e
7 changed files with 172 additions and 69 deletions

View file

@ -1,5 +1,6 @@
{...}: {
imports = [
./fish.nix
./sddm.nix
];
}

25
computers/shared/sddm.nix Normal file
View file

@ -0,0 +1,25 @@
{
config,
pkgs,
lib,
...
}: let
cfg = config.alqueva.sddm;
in {
options.alqueva.sddm = {
enable = lib.mkEnableOption "sddm";
};
config = lib.mkIf cfg.enable {
services.displayManager.sddm = {
wayland = {
enable = true;
compositor = "kwin";
};
enable = true;
theme = "where_is_my_sddm_theme";
};
environment.systemPackages = [
pkgs.i-found-my-sddm-theme
];
};
}