nix/modules/stuff/sddm.nix
2024-10-16 11:40:24 +02:00

29 lines
No EOL
587 B
Nix

{ lib, pkgs, config, ...}: let
inherit (lib) mkIf mkEnableOption mkOption;
cfg = config.chuj.stuff.sddm;
in {
options.chuj.stuff.sddm = {
enable = mkEnableOption "sddm";
};
config = mkIf cfg.enable {
services.displayManager = {
# ah fuck this
defaultSession = "none+i3";
sddm = {
enable = true;
theme = "sddm-i3-theme";
settings = {
General = {
InputMethod = "";
};
};
};
};
environment.systemPackages = [
pkgs.sddm-i3-theme
pkgs.libsForQt5.sddm
];
};
}