packages/nixpak: move chromium directory around

This commit is contained in:
Max Headroom 2023-01-07 19:40:48 +01:00
parent 3c6eb2ec25
commit 6f41fee335
3 changed files with 13 additions and 6 deletions

View file

@ -25,7 +25,7 @@
xh xh
]; ];
www = [ www = [
ungoogled-chromium inputs.self.packages.x86_64-linux.ungoogled-chromium
]; ];
gui-apps = with inputs.self.packages.x86_64-linux; [ gui-apps = with inputs.self.packages.x86_64-linux; [
amberol amberol

View file

@ -21,10 +21,17 @@ mkNixPak {
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/chromium")) (sloth.mkdir (sloth.concat' sloth.appCacheDir "/chromium"))
(sloth.concat' sloth.xdgCacheHome "/chromium") (sloth.concat' sloth.xdgCacheHome "/chromium")
] ]
(sloth.concat [ [
sloth.xdgConfigHome # home-manager does some funny things
"/chromium" (sloth.concat [
]) sloth.xdgConfigHome
"/nixpak-ungoogled-chromium"
])
(sloth.concat [
sloth.xdgConfigHome
"/chromium"
])
]
(sloth.concat' sloth.homeDir "/Downloads") (sloth.concat' sloth.homeDir "/Downloads")
"/tmp/.X11-unix" "/tmp/.X11-unix"
(sloth.envOr "XAUTHORITY" "/no-xauth") (sloth.envOr "XAUTHORITY" "/no-xauth")

View file

@ -42,7 +42,7 @@ let
}; };
# chromium extensions # chromium extensions
programs.chromium = import ./home/chromium.nix pkgs.ungoogled-chromium inputs.nix-crx.packages.x86_64-linux; programs.chromium = import ./home/chromium.nix inputs.self.packages.x86_64-linux.ungoogled-chromium inputs.nix-crx.packages.x86_64-linux;
gtk.enable = true; gtk.enable = true;
gtk.theme.name = "Adwaita-dark"; gtk.theme.name = "Adwaita-dark";