mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
refactor: cleaned up nixos and home dirs
This commit is contained in:
parent
2000adb56a
commit
824a91d405
643 changed files with 323 additions and 195 deletions
181
home/default.nix
181
home/default.nix
|
@ -1,181 +0,0 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
collectDirs =
|
||||
path:
|
||||
let
|
||||
content = builtins.readDir path;
|
||||
subdirs = builtins.filter (name: content.${name} == "directory") (builtins.attrNames content);
|
||||
buildPath = name: path + "/${name}";
|
||||
|
||||
thisDirs = map buildPath subdirs;
|
||||
subDirs = builtins.concatMap collectDirs thisDirs;
|
||||
in
|
||||
[ path ] ++ subDirs;
|
||||
|
||||
directoryImport =
|
||||
path:
|
||||
builtins.listToAttrs (
|
||||
map (dir: {
|
||||
name = baseNameOf (toString dir);
|
||||
value = import dir;
|
||||
}) (collectDirs path)
|
||||
);
|
||||
|
||||
modules = directoryImport ./.;
|
||||
in
|
||||
{
|
||||
flake.homeModules =
|
||||
let
|
||||
inherit (config.machines.devices)
|
||||
bartholomew
|
||||
desktop
|
||||
fallaryn
|
||||
laptop
|
||||
server
|
||||
;
|
||||
inherit (config.people) user0 user1 user2;
|
||||
in
|
||||
{
|
||||
"${desktop.name}-${user0}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
brave
|
||||
emulators
|
||||
firefox
|
||||
tor
|
||||
code
|
||||
gaming
|
||||
media
|
||||
messaging
|
||||
sharing
|
||||
tools
|
||||
hyprland
|
||||
wayland
|
||||
theming
|
||||
;
|
||||
};
|
||||
};
|
||||
"${desktop.name}-${user1}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
brave
|
||||
ghostty
|
||||
zed
|
||||
gaming
|
||||
spotify
|
||||
docs
|
||||
mpv
|
||||
kolourPaint
|
||||
discord
|
||||
signal
|
||||
scrcpy
|
||||
bitwarden
|
||||
emote
|
||||
desktop
|
||||
;
|
||||
};
|
||||
};
|
||||
"${fallaryn.name}-${user2}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
brave
|
||||
firefoxNix
|
||||
braveNix
|
||||
code
|
||||
ghostty
|
||||
gaming
|
||||
spotify
|
||||
audioProduction
|
||||
wpsOffice
|
||||
obsidian
|
||||
okular
|
||||
images
|
||||
modeling
|
||||
obsStudio
|
||||
kdenlive
|
||||
videoPlaying
|
||||
discord
|
||||
signal
|
||||
tdesktop
|
||||
teams
|
||||
whatsApp
|
||||
zoom
|
||||
tools
|
||||
;
|
||||
};
|
||||
};
|
||||
"${laptop.name}-${user0}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
brave
|
||||
emulators
|
||||
firefox
|
||||
tor
|
||||
code
|
||||
gaming
|
||||
media
|
||||
messaging
|
||||
sharing
|
||||
tools
|
||||
;
|
||||
};
|
||||
};
|
||||
"${laptop.name}-${user1}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
brave
|
||||
ghostty
|
||||
zed
|
||||
gaming
|
||||
spotify
|
||||
docs
|
||||
mpv
|
||||
kolourPaint
|
||||
discord
|
||||
signal
|
||||
scrcpy
|
||||
bitwarden
|
||||
emote
|
||||
desktop
|
||||
;
|
||||
};
|
||||
};
|
||||
"${bartholomew.name}-${user1}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
catppuccin
|
||||
gtk
|
||||
brave
|
||||
ghostty
|
||||
zed
|
||||
gaming
|
||||
spotify
|
||||
docs
|
||||
mpv
|
||||
jellyfin
|
||||
kolourPaint
|
||||
discord
|
||||
signal
|
||||
scrcpy
|
||||
bitwarden
|
||||
emote
|
||||
desktop
|
||||
;
|
||||
};
|
||||
};
|
||||
"${server.name}-${user0}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
tooling
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue