nix-dotfiles/hmModules/automatic/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{ config, lib, ... }:
2024-04-14 05:40:02 -07:00
{
options = {
extraPkgs = lib.mkOption { default = []; };
nvidia.enable = lib.mkEnableOption "Enables nvidia requirements";
defaultApps = {
terminal = lib.mkOption { default = ""; };
browser = lib.mkOption { default = ""; };
};
2024-04-14 05:40:02 -07:00
};
config = {
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.sessionVariables = {
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
};
xdg = {
enable = true;
mimeApps.enable = true;
userDirs = let
home = config.home.homeDirectory;
in {
enable = true;
documents = "${home}/dox";
publicShare = "${home}/dox/public";
templates = "${home}/dox/templates";
music = "${home}/med/mus";
pictures = "${home}/med/pix";
videos = "${home}/med/vid";
desktop = "${home}/dwn";
download = "${home}/dwn";
};
};
home.homeDirectory = "/home/" + config.home.username;
home.packages = config.extraPkgs;
};
}