a bunch of code cleanup

This commit is contained in:
Gerg-L 2023-04-22 01:57:28 -04:00
parent 977d1ad6d2
commit 016a347d5e
19 changed files with 92 additions and 100 deletions

View file

@ -3,12 +3,11 @@ _: {
lib,
options,
...
}:
with lib; let
}: let
cfg = config.localModules.DM.autoLogin;
in {
options.localModules.DM.autoLogin = mkEnableOption "";
config = mkIf cfg {
options.localModules.DM.autoLogin = lib.mkEnableOption "";
config = lib.mkIf cfg {
services.xserver.displayManager = {
autoLogin = {
enable = true;

View file

@ -4,14 +4,13 @@ _: {
options,
self,
...
}:
with lib; let
}: let
cfg = config.localModules.DM.lightdm;
in {
options.localModules.DM.lightdm = {
enable = mkEnableOption "";
enable = lib.mkEnableOption "";
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
services.xserver = {
displayManager = {
lightdm = {

View file

@ -2,10 +2,9 @@ _: {
options,
lib,
...
}:
with lib; {
options.localModules.DM.loginUser = mkOption {
type = types.nullOr types.str;
}: {
options.localModules.DM.loginUser = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
};
}