feat(desktop): visually cleanup boot sequence
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
fdea25896e
commit
dc1b120c50
2 changed files with 12 additions and 3 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
|
@ -1,4 +1,8 @@
|
||||||
{config, ...}: let
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
cfg = config.roles.desktop;
|
cfg = config.roles.desktop;
|
||||||
|
|
||||||
hyprland =
|
hyprland =
|
||||||
|
@ -10,6 +14,11 @@
|
||||||
.windowManager
|
.windowManager
|
||||||
.hyprland
|
.hyprland
|
||||||
.finalPackage;
|
.finalPackage;
|
||||||
|
|
||||||
|
cmd = toString (pkgs.writeShellScript "hyprland-wrapper" ''
|
||||||
|
trap 'systemctl --user stop hyprland-session.target; sleep 1' EXIT
|
||||||
|
exec Hyprland >/dev/null
|
||||||
|
'');
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./astal.nix
|
./astal.nix
|
||||||
|
@ -23,12 +32,12 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "Hyprland";
|
command = cmd;
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
|
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = "Hyprland";
|
command = cmd;
|
||||||
user = cfg.user;
|
user = cfg.user;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue