mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moving towards modules...
This commit is contained in:
parent
32bf78aa36
commit
f911f3f44d
18 changed files with 288 additions and 237 deletions
22
modules/DM/autoLogin.nix
Normal file
22
modules/DM/autoLogin.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
_: {
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
settings,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.localModules.autoLogin;
|
||||
in {
|
||||
options.localModules.autoLogin = {
|
||||
enable = mkEnableOption "";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.displayManager = {
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = settings.username;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
6
modules/DM/default.nix
Normal file
6
modules/DM/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
inputs: {
|
||||
imports = [
|
||||
(import ./lightDM.nix inputs)
|
||||
(import ./autoLogin.nix inputs)
|
||||
];
|
||||
}
|
||||
55
modules/DM/lightDM.nix
Normal file
55
modules/DM/lightDM.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
_: {
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
settings,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.localModules.lightdm;
|
||||
in {
|
||||
options.localModules.lightdm = {
|
||||
enable = mkEnableOption "";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
enable = true;
|
||||
background = self + /misc/recursion.png;
|
||||
extraConfig = "minimum-vt=1";
|
||||
greeters.mini = {
|
||||
enable = true;
|
||||
user = settings.username;
|
||||
extraConfig = ''
|
||||
[greeter]
|
||||
show-password-label = false
|
||||
password-label-text =
|
||||
invalid-password-text =
|
||||
show-input-cursor = false
|
||||
password-alignment = center
|
||||
password-input-width = 19
|
||||
show-image-on-all-monitors = true
|
||||
|
||||
|
||||
[greeter-theme]
|
||||
font = "OverpassMono Nerd Font"
|
||||
font-size = 1.1em
|
||||
text-color = "#7AA2F7"
|
||||
error-color = "#DB4B4B"
|
||||
background-color = "#000000"
|
||||
window-color = "#000000"
|
||||
border-color = "#000000"
|
||||
password-character = -1
|
||||
password-color = "#7AA2F7"
|
||||
password-background-color = "#24283B"
|
||||
password-border-color = "#000000"
|
||||
password-border-radius = 0.341125em
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue