nix: make tuigreet its own module

This commit is contained in:
Nico 2025-05-03 16:16:02 +10:00
parent 6de3d7a451
commit a84984db38
3 changed files with 18 additions and 14 deletions

View file

@ -11,20 +11,6 @@
jack.enable = true;
};
# Enable display manager w/autologin
services.greetd = {
enable = true;
settings = {
initial_session = {
command = "${pkgs.uwsm}/bin/uwsm start default";
user = "nico";
};
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'";
};
};
};
# Applications
programs.steam = {
# doesn't do anything if steam isn't enabled so safe here

View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
# Enable display manager w/autologin
services.greetd = {
enable = true;
settings = {
initial_session = {
command = if (config.programs.niri.enable == true) then "${pkgs.niri}/bin/niri-session" else if (config.programs.hyprland.enable == true) then "${pkgs.hyprland}/bin/Hyprland" else "${pkgs.zsh}/bin/zsh";
user = "nico";
};
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'";
};
};
};
}