feat(nvidia): add proper nvidia drivers
This commit is contained in:
parent
0bcf8a90ed
commit
083d67c1df
3 changed files with 64 additions and 2 deletions
20
scripts/hyprland-tty-launch.nix
Normal file
20
scripts/hyprland-tty-launch.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.services.hyprland-tty-launch.enable = lib.mkEnableOption "Enable launching Hyprland from TTY with UWSM";
|
||||
|
||||
config = lib.mkIf config.services.hyprland-tty-launch.enable {
|
||||
environment.etc."profile.d/hyprland-tty-launch.sh".text = ''
|
||||
#!/bin/$SHELL
|
||||
|
||||
# if uwsm check may-start && uwsm select; then
|
||||
# exec systemd-cat -t uwsm_start uwsm start default
|
||||
# fi
|
||||
|
||||
# OR (to bypass the compositor selection menu):
|
||||
if uwsm check may-start; then
|
||||
exec uwsm start hyprland.desktop
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue