1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: start i3-session with i3 to satisfy graphical-session.target

This commit is contained in:
oddlama 2023-10-16 16:54:59 +02:00
parent a6c643d8b1
commit 143f04fb03
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -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 = {