Add support for the system76 launch keyboard configurator.
This commit is contained in:
24
nix/configuration/roles/sway/graphical_session_target.nix
Normal file
24
nix/configuration/roles/sway/graphical_session_target.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
start_sway_session = pkgs.writeTextFile {
|
||||
name = "start_sway_session.conf";
|
||||
text = ''
|
||||
# Trigger graphical-session.target through sway-session.target so systemd user units can depend on it.
|
||||
exec systemctl --user start sway-session.target
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
me.swayIncludes = lib.mkAfter [
|
||||
start_sway_session
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user