nixos-config/modules/sddm.nix

32 lines
572 B
Nix
Raw Normal View History

2021-04-22 14:22:55 +02:00
{ config, lib, pkgs, ... }:
let
2022-01-11 16:08:21 +01:00
inherit (lib)
mkEnableOption
mkIf
;
2021-04-22 14:22:55 +02:00
cfg = config.my.displayManager.sddm;
in
{
2022-01-11 16:08:21 +01:00
options.my.displayManager.sddm.enable = mkEnableOption "SDDM setup";
2021-04-22 14:22:55 +02:00
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2021-04-22 14:22:55 +02:00
services.xserver.displayManager.sddm = {
enable = true;
theme = "sugar-candy";
};
2022-01-11 16:08:21 +01:00
environment.systemPackages = builtins.attrValues {
inherit (pkgs.packages)
sddm-sugar-candy
;
2021-04-22 14:22:55 +02:00
2022-01-11 16:08:21 +01:00
inherit (pkgs.libsForQt5.qt5)
qtgraphicaleffects
qtquickcontrols2
qtsvg
;
};
2021-04-22 14:22:55 +02:00
};
}