mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
cleaned up a whole bunch
This commit is contained in:
parent
2f04dc0e23
commit
a959cf3e97
17 changed files with 199 additions and 220 deletions
|
|
@ -2,11 +2,16 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.localModules.DM.autoLogin;
|
||||
in {
|
||||
options.localModules.DM.autoLogin = lib.mkEnableOption "";
|
||||
config = lib.mkIf cfg {
|
||||
}: {
|
||||
options.localModules.DM = {
|
||||
autoLogin = lib.mkEnableOption "";
|
||||
loginUser = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.localModules.DM.autoLogin {
|
||||
services.xserver.displayManager = {
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -4,13 +4,10 @@
|
|||
self,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.localModules.DM.lightdm;
|
||||
in {
|
||||
options.localModules.DM.lightdm = {
|
||||
enable = lib.mkEnableOption "";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
}: {
|
||||
options.localModules.DM.lightdm.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.localModules.DM.lightdm.enable {
|
||||
services.xserver = {
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{lib, ...}: {
|
||||
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