Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
15
flake/den/templates/default/modules/aspects/eg/autologin.nix
Normal file
15
flake/den/templates/default/modules/aspects/eg/autologin.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
# autologin is context-aware, parametric aspect.
|
||||
# it applies only if the context has at least { user }
|
||||
# meaning that has access to user data
|
||||
eg.autologin =
|
||||
{ user, ... }:
|
||||
{
|
||||
nixos =
|
||||
{ config, lib, ... }:
|
||||
lib.mkIf config.services.displayManager.enable {
|
||||
services.displayManager.autoLogin.enable = true;
|
||||
services.displayManager.autoLogin.user = user.userName;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue