mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
a bunch of code cleanup
This commit is contained in:
parent
977d1ad6d2
commit
016a347d5e
19 changed files with 92 additions and 100 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue