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">
environment.systemPackages = with pkgs; [ polkit_gnome ];
${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1
</syntaxhighlight>
</syntaxhighlight>


nix generated sway config
normal sway config
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1
environment.systemPackages = with pkgs; [ polkit_gnome ];
environment.pathsToLink = [ "/libexec" ];
</syntaxhighlight>
</syntaxhighlight>


normal sway config
{{outdated|The NixOS path referenced below does not exist (even with polkit_gnome) in systemPackages as of 2020-12-20 / NixOS 20.09}}
<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 ===