2021-05-30 19:10:28 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
./session-variables.nix
|
|
|
|
];
|
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
home-manager.users."${psCfg.user.name}" = {
|
2021-05-30 19:10:28 +00:00
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
# Home Manager needs a bit of information about you and the
|
|
|
|
# paths it should manage.
|
|
|
|
home.username = psCfg.user.name;
|
|
|
|
home.homeDirectory = "/home/${psCfg.user.name}";
|
2023-09-12 20:07:05 +00:00
|
|
|
home.stateVersion = "22.11";
|
2021-05-30 19:10:28 +00:00
|
|
|
|
|
|
|
programs.dircolors.enable = true;
|
|
|
|
|
|
|
|
xdg.enable = true;
|
|
|
|
xdg.mime.enable = true;
|
|
|
|
xdg.mimeApps = import ./mimeapps.nix;
|
2024-09-04 23:22:56 +00:00
|
|
|
xdg.userDirs.enable = true;
|
2021-05-30 19:10:28 +00:00
|
|
|
|
|
|
|
# Allow unfree packages only on a user basis, not on a system-wide basis
|
|
|
|
xdg.configFile."nixpkgs/config.nix".text = " { allowUnfree = true; } ";
|
|
|
|
};
|
|
|
|
}
|