67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
user,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./emacs
|
|
./email
|
|
./impermanence.nix
|
|
./gui
|
|
./shell
|
|
./ssh
|
|
./wm
|
|
];
|
|
|
|
config = {
|
|
# setup fonts for other distros, run "fc-cache -f" to refresh fonts
|
|
fonts.fontconfig.enable = true;
|
|
|
|
home = {
|
|
stateVersion = "24.11";
|
|
username = user;
|
|
homeDirectory = "/home/${user}";
|
|
activation = { };
|
|
|
|
sessionVariables.EDITOR = lib.getExe pkgs.vim;
|
|
};
|
|
|
|
programs.home-manager.enable = true;
|
|
services.mpris-proxy.enable = true;
|
|
|
|
xdg = {
|
|
enable = true;
|
|
userDirs =
|
|
let
|
|
homeDir = config.home.homeDirectory;
|
|
in
|
|
{
|
|
enable = true;
|
|
download = "${homeDir}/downloads";
|
|
documents = "${homeDir}/documents";
|
|
music = "${homeDir}/music";
|
|
pictures = "${homeDir}/pictures";
|
|
videos = "${homeDir}/videos";
|
|
};
|
|
mimeApps.enable = true;
|
|
configFile."mimeapps.list".force = true;
|
|
};
|
|
|
|
systemd.user.sessionVariables = config.home.sessionVariables;
|
|
|
|
custom = {
|
|
persist = {
|
|
home.directories = [
|
|
"documents"
|
|
"downloads"
|
|
"pictures"
|
|
"code"
|
|
"projects"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|