nixos-config/common/config/login.nix
2022-01-06 22:16:45 -05:00

26 lines
449 B
Nix

{ config, pkgs, username, ... }:
{
environment.systemPackages = with pkgs; [
# Greeter
greetd.gtkgreet
# Window manager used to display the greeter
cage
];
services.greetd.enable = true;
services.greetd.settings = {
default_session = {
command = "cage -s -- gtkgreet";
user = "greeter";
};
};
environment.etc = {
"greetd/environments".text = ''
sway
fish
bash
'';
};
}