Add SSH configuration, move more things to xdg dirs

This commit is contained in:
Bun 2025-05-16 02:45:17 -04:00
parent 48ce4411be
commit 517b0a5981
14 changed files with 67 additions and 35 deletions

View file

@ -8,7 +8,8 @@
uris = [ "qemu:///system" ];
};
};
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories = with lib; with config.home; with config.xdg;
[ "games/${removePrefix "${homeDirectory}/" stateHome}/dconf" ];
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories =
with lib; with config.home; with config.xdg;
[ "state/${removePrefix "${homeDirectory}/" configHome}/dconf" ];
};
}

View file

@ -11,6 +11,7 @@
./nix
./nixgl
./qt
./user
./xdg
];
}

View file

@ -0,0 +1,7 @@
{ config, ... }:
{
home = {
username = "bun";
homeDirectory = "/home/${config.home.username}";
};
}

View file

@ -13,6 +13,7 @@
extraConfig = {
XDG_GAMES_DIR = "${homeDirectory}/Games";
XDG_KEEPERS_DIR = "${homeDirectory}/Keepers";
XDG_NETWORK_DIR = "${homeDirectory}/Network";
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${homeDirectory}" else "${homeDirectory}/.stow";
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";