fake home

This commit is contained in:
caandt 2024-11-13 04:15:36 -06:00
parent dc66fb7f38
commit 81227fc6f1
2 changed files with 15 additions and 2 deletions

View file

@ -13,7 +13,7 @@
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/firefox \
--set HOME "${config.home.homeDirectory}/.local/share"
--set HOME "${config.home.homeDirectory}/.local/home"
'';
})
alacritty

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
config,
pkgs,
...
}: {
xdg.mimeApps.enable = true;
xdg.mimeApps.defaultApplications = let
image = "nsxiv-rifle.desktop";
@ -29,4 +33,13 @@
extraPortals = [pkgs.libsForQt5.xdg-desktop-portal-kde];
config.common.default = "kde";
};
home.file = let
mkln = x: config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/${x}";
in {
".local/home/.cache".source = mkln ".cache";
".local/home/.config".source = mkln ".config";
".local/home/.local".source = mkln ".local";
".local/home/Desktop".source = mkln "Desktop";
".local/home/Downloads".source = mkln "Downloads";
};
}