Sway: Difference between revisions
imported>Fadenb →Polkit: Add warning that path information is outdated |
imported>Artturin add pathsToLink |
||
Line 105: | Line 105: | ||
=== Polkit === | === Polkit === | ||
nix generated sway config | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
normal sway config | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
environment.systemPackages = with pkgs; [ polkit_gnome ]; | |||
environment.pathsToLink = [ "/libexec" ]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# NixOS | # NixOS | ||
exec /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1 | exec /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1 | ||
# Home Manager | # Home Manager | pathsToLink is not needed | ||
exec ~/.nix-profile/libexec/polkit-gnome-authentication-agent-1 | exec ~/.nix-profile/libexec/polkit-gnome-authentication-agent-1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Theming === | === Theming === |