|
|
@ -1,31 +1,44 @@ |
|
|
|
# TODO: currently non compliant to XDG in default config are: |
|
|
|
# * mozilla (in progress upstream hopefully) |
|
|
|
# * nix old folders, yuuuuup, i should make a PR |
|
|
|
# * dbus: ~/.dbus in root |
|
|
|
# https://github.com/google/mozc/issues/474 |
|
|
|
# ^ mozc wise |
|
|
|
|
|
|
|
|
|
|
|
# TODO: dbus esd_auth gets removed each time you start a new shell, should be done |
|
|
|
# upon user login along with swaystart |
|
|
|
# * steam: done BUT need to start through startsteam, might want to modify |
|
|
|
# that(ie modify desktop file) |
|
|
|
|
|
|
|
{ config, pkgs, ... }: |
|
|
|
with pkgs; |
|
|
|
let |
|
|
|
{ config, pkgs, ... }: { |
|
|
|
# ssh devs don't want to make ssh XDG compliant? well let's roll our own |
|
|
|
# compliance! |
|
|
|
ssh-xdg = openssh.overrideAttrs (oldAttrs: rec { |
|
|
|
postPatch = oldAttrs.postPatch + '' |
|
|
|
sed -i 's/\.ssh/\.config\/ssh/' $(grep -Rl '"\.ssh"') |
|
|
|
''; |
|
|
|
}); |
|
|
|
in |
|
|
|
{ |
|
|
|
environment.systemPackages = with pkgs; [ |
|
|
|
ssh-xdg |
|
|
|
]; |
|
|
|
nixpkgs.config.packageOverrides = pkgs: { |
|
|
|
openssh = pkgs.openssh.overrideAttrs (oldAttrs: rec { |
|
|
|
postPatch = oldAttrs.postPatch + '' |
|
|
|
sed -i 's/\.ssh/\.config\/ssh/' $(grep -Rl '"\.ssh"') |
|
|
|
''; |
|
|
|
}); |
|
|
|
|
|
|
|
# https://github.com/google/mozc/issues/474 |
|
|
|
# hopefully temporary |
|
|
|
ibus-mozc = pkgs.ibus-mozc.overrideAttrs (oldAttrs: rec { |
|
|
|
postPatch = oldAttrs.postPatch + '' |
|
|
|
sed -i 's/\.mozc/\.config\/mozc/' $(grep -Rl '"\.mozc"') |
|
|
|
''; |
|
|
|
}); |
|
|
|
|
|
|
|
# rarely created on my setup, seems to be x11 related? either way here we go |
|
|
|
dbus = pkgs.dbus.overrideAttrs (oldAttrs: rec { |
|
|
|
postPatch = oldAttrs.postPatch + '' |
|
|
|
sed -i 's/\.dbus/\.config\/dbus/' $(grep -Rl '"\.dbus"') |
|
|
|
''; |
|
|
|
}); |
|
|
|
|
|
|
|
pulseaudio = pkgs.pulseaudio.overrideAttrs (oldAttrs: rec { |
|
|
|
postPatch = oldAttrs.postPatch + '' |
|
|
|
sed -i 's/\.esd_auth/\.config\/esd_auth/' $(grep -Rl '"\.esd_auth"') |
|
|
|
''; |
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
environment.variables = { |
|
|
|
XDG_CONFIG_HOME = "$HOME/.config"; |
|
|
|