diff options
Diffstat (limited to 'modules/login.nix')
| -rw-r--r-- | modules/login.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/login.nix b/modules/login.nix new file mode 100644 index 0000000..61e3060 --- /dev/null +++ b/modules/login.nix @@ -0,0 +1,46 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + greetd.tuigreet + greetd.greetd + ]; + + services.greetd = { + enable = true; + settings = { + default_session = { + command = "tuigreet --time --remember --cmd dwl"; + user = "greeter"; + }; + }; + }; + + services.logind.extraConfig = '' + HandlePowerKey=ignore + ''; + + systemd.services.greetd.serviceConfig = { + Type = "idle"; + StandardInput = "tty"; + StandardOutput = "tty"; + StandardError = "journal"; + TTYReset = true; + TTYVHangup = true; + TTYVTDisallocate = true; + }; + + security.polkit.enable = true; + + security.pam.services.swaylock.text = '' + auth include login + ''; + + services.xserver.libinput.enable = true; + + programs.gnupg.agent = { + enable = true; + }; + + programs.dconf.enable = true; +} |
