nix-config/modules/greetd.nix
2023-06-17 02:43:26 -04:00

19 lines
421 B
Nix

{ pkgs, ... }:
let VARIABLES = import ../src/variables.nix; in {
services.greetd = {
enable = true;
restart = false;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
user = "greeter";
};
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
user = VARIABLES.username;
};
};
};
}