nix: make tuigreet its own module
This commit is contained in:
parent
6de3d7a451
commit
a84984db38
3 changed files with 18 additions and 14 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
./modules/nix.nix
|
./modules/nix.nix
|
||||||
./modules/shell.nix
|
./modules/shell.nix
|
||||||
|
|
||||||
|
./modules/linux/tuigreet.nix
|
||||||
./modules/linux/desktop.nix
|
./modules/linux/desktop.nix
|
||||||
./modules/linux/ssh.nix
|
./modules/linux/ssh.nix
|
||||||
./modules/linux/opensnitch.nix
|
./modules/linux/opensnitch.nix
|
||||||
|
|
|
||||||
|
|
@ -11,20 +11,6 @@
|
||||||
jack.enable = true;
|
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
|
# Applications
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
# doesn't do anything if steam isn't enabled so safe here
|
# doesn't do anything if steam isn't enabled so safe here
|
||||||
|
|
|
||||||
17
modules/linux/tuigreet.nix
Normal file
17
modules/linux/tuigreet.nix
Normal 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~~'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue