forked from mirrors_public/oddlama_nix-config
fix: start i3-session with i3 to satisfy graphical-session.target
This commit is contained in:
parent
a6c643d8b1
commit
143f04fb03
1 changed files with 23 additions and 14 deletions
|
@ -188,22 +188,31 @@ in {
|
||||||
}
|
}
|
||||||
.${nixosConfig.node.name}
|
.${nixosConfig.node.name}
|
||||||
or [];
|
or [];
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = let
|
startup = let
|
||||||
configLayouts = (pkgs.formats.toml {}).generate "per-workspace-layouts.toml" {
|
configLayouts = (pkgs.formats.toml {}).generate "per-workspace-layouts.toml" {
|
||||||
force = true;
|
force = true;
|
||||||
layouts = {
|
layouts = {
|
||||||
"1" = "tabbed";
|
"1" = "tabbed";
|
||||||
"5" = "tabbed";
|
"5" = "tabbed";
|
||||||
"7" = "tabbed";
|
"7" = "tabbed";
|
||||||
"8" = "tabbed";
|
"8" = "tabbed";
|
||||||
"9" = "tabbed";
|
"9" = "tabbed";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
in [
|
||||||
in ''
|
{
|
||||||
exec_always --no-startup-id ${getExe i3-per-workspace-layout} --config ${configLayouts}
|
command = "${pkgs.systemd}/bin/systemctl --user import-environment DISPLAY; ${pkgs.systemd}/bin/systemctl --user start i3-session.target";
|
||||||
'';
|
always = false;
|
||||||
|
notification = false;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "${getExe i3-per-workspace-layout} --config ${configLayouts}";
|
||||||
|
always = false;
|
||||||
|
notification = false;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue