nushell, helium + pwas, niri session management

This commit is contained in:
atagen 2026-03-03 00:26:21 +11:00
parent cb72b47661
commit 3b3bfb6b39
21 changed files with 816 additions and 464 deletions

View file

@ -3,6 +3,7 @@
inputs,
getFlakePkg',
lib,
pkgs,
config,
...
}:
@ -61,7 +62,15 @@ in
settings =
let
session = {
command = "niri-session";
command =
let
niri-session-direct = pkgs.writeShellScript "niri-session-direct" ''
systemctl --user import-environment
dbus-update-activation-environment --all
exec ${lib.getExe niri} --session
'';
in
"${niri-session-direct}";
user = "${mainUser}";
};
in
@ -78,13 +87,18 @@ in
services.niri-tag = {
enable = true;
prepopulate = 10;
strict = true;
scratchpads = {
# TODO FIXME these could use the getExe ?
"feishin" = 99;
"chrome-listen.lobotomise.me__-Default" = 99;
"Bitwarden" = 101;
};
};
services.niri-s76-bridge.enable = true;
# niri runs directly from greetd (session-1.scope), not as a user service
systemd.user.services.niri.wantedBy = lib.mkForce [ ];
systemd.user.services.niri.enable = lib.mkForce false;
}