2025-01-20 22:35:40 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.nmasur.profiles.linux-base;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
options.nmasur.profiles.linux-base.enable = lib.mkEnableOption "Base Linux home-manager config";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
|
|
|
# Allow Nix to manage the default applications list
|
2025-01-29 21:12:48 -05:00
|
|
|
mimeApps.enable = lib.mkDefault true;
|
2025-01-20 22:35:40 -05:00
|
|
|
|
|
|
|
# Set directories for application defaults
|
|
|
|
userDirs = {
|
2025-01-29 21:12:48 -05:00
|
|
|
enable = lib.mkDefault true;
|
|
|
|
createDirectories = lib.mkDefault true;
|
|
|
|
documents = lib.mkDefault "$HOME/documents";
|
|
|
|
download = lib.mkDefault config.userDirs.download;
|
|
|
|
music = lib.mkDefault "$HOME/media/music";
|
|
|
|
pictures = lib.mkDefault "$HOME/media/images";
|
|
|
|
videos = lib.mkDefault "$HOME/media/videos";
|
|
|
|
desktop = lib.mkDefault "$HOME/other/desktop";
|
|
|
|
publicShare = lib.mkDefault "$HOME/other/public";
|
|
|
|
templates = lib.mkDefault "$HOME/other/templates";
|
2025-01-20 22:35:40 -05:00
|
|
|
extraConfig = {
|
2025-01-29 21:12:48 -05:00
|
|
|
XDG_DEV_DIR = lib.mkDefault "$HOME/dev";
|
2025-01-20 22:35:40 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fish.shellAliases = {
|
|
|
|
# Move files to XDG trash on the commandline
|
2025-01-29 21:12:48 -05:00
|
|
|
trash = lib.mkDefault "${pkgs.trash-cli}/bin/trash-put";
|
2025-01-20 22:35:40 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|