mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
25 lines
663 B
Nix
25 lines
663 B
Nix
{ lib, config, pkgs, ... }:
|
|
{
|
|
options.swarselmodules.login = lib.mkEnableOption "login config";
|
|
config = lib.mkIf config.swarselmodules.login {
|
|
services.greetd = {
|
|
enable = true;
|
|
settings = {
|
|
# initial_session.command = "sway";
|
|
initial_session.command = "uwsm start -- sway-uwsm.desktop";
|
|
# --cmd sway
|
|
default_session.command = ''
|
|
${pkgs.tuigreet}/bin/tuigreet \
|
|
--time \
|
|
--asterisks \
|
|
--user-menu \
|
|
--cmd "uwsm start -- sway-uwsm.desktop"
|
|
'';
|
|
};
|
|
};
|
|
|
|
# environment.etc."greetd/environments".text = ''
|
|
# sway
|
|
# '';
|
|
};
|
|
}
|