29 lines
589 B
Nix
29 lines
589 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
|
||
|
];
|
||
|
};
|
||
|
}
|