dotfiles/home-manager/default.nix

123 lines
2.1 KiB
Nix
Raw Normal View History

2024-10-06 15:25:05 -05:00
let
folderModules = [
"bat"
"firefox"
"obs-studio"
"qbittorrent"
"steam"
];
fileModules = [
"bottom"
"brave"
"direnv"
"freetube"
"git"
"helix"
"home-manager"
"lazygit"
"mpv"
"nextcloud"
"nushell"
"starship"
"vscode"
"wezterm"
"yazi"
"zellij"
"zoxide"
];
miscModules = [
"android"
"commandLine"
"desktop"
"entertainment"
"internet"
"productionArt"
"productionAudio"
"productionVideo"
"productionWriting"
"tracking"
"virtualization"
];
modulesPath = ./modules;
importFolder = name: {"${name}" = import (modulesPath + "/${name}");};
importFile = name: {"${name}" = import (modulesPath + "/${name}.nix");};
importMisc = name: {"misc-${name}" = import (modulesPath + "/misc/${name}.nix");};
modules =
builtins.foldl' (a: b: a // b) {} (map importFolder folderModules)
// builtins.foldl' (a: b: a // b) {} (map importFile fileModules)
// builtins.foldl' (a: b: a // b) {} (map importMisc miscModules);
2024-10-06 15:25:05 -05:00
in {
flake.homeModules = {
desktop = {
imports = with modules; [
brave
firefox
2024-10-06 15:25:05 -05:00
misc-android
misc-desktop
misc-internet
qbittorrent
vscode
2024-10-06 15:25:05 -05:00
];
};
2024-10-06 15:25:05 -05:00
entertainment = {
imports = with modules; [
2024-10-06 15:25:05 -05:00
freetube
misc-entertainment
2024-10-06 15:25:05 -05:00
mpv
2024-10-11 15:20:01 -05:00
steam
2024-10-06 15:25:05 -05:00
];
};
2024-10-06 15:25:05 -05:00
productionArt = {
imports = with modules; [
2024-10-06 15:25:05 -05:00
misc-productionArt
];
};
2024-10-06 15:25:05 -05:00
productionAudio = {
imports = with modules; [
2024-10-06 15:25:05 -05:00
misc-productionAudio
];
};
2024-10-06 15:25:05 -05:00
productionVideo = {
imports = with modules; [
2024-10-06 15:25:05 -05:00
misc-productionVideo
obs-studio
];
};
2024-10-06 15:25:05 -05:00
productionWriting = {
imports = with modules; [
2024-10-06 15:25:05 -05:00
misc-productionWriting
];
};
shared = {
imports = with modules; [
bat
bottom
direnv
git
helix
home-manager
lazygit
misc-commandLine
misc-virtualization
nushell
starship
wezterm
yazi
zellij
zoxide
2024-10-06 15:25:05 -05:00
];
};
};
}