2021-11-17 10:57:56 +07:00
|
|
|
{ lib }:
|
|
|
|
|
let
|
|
|
|
|
getName = path: lib.removeSuffix ".nix" ( # Strip extension
|
|
|
|
|
lib.last ( # Gets the last part (filename)
|
|
|
|
|
lib.splitString "/" ( # Splits the path into components
|
|
|
|
|
builtins.toString path # Converts the path into a string
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
mkAttrsFromPaths = paths: builtins.listToAttrs (
|
|
|
|
|
builtins.map (path: {
|
|
|
|
|
name = getName path;
|
|
|
|
|
value = path;
|
|
|
|
|
}) paths
|
|
|
|
|
);
|
|
|
|
|
in {
|
2022-02-13 21:06:56 +07:00
|
|
|
services = mkAttrsFromPaths [
|
2022-08-09 22:03:15 +07:00
|
|
|
./services/jellyfin.nix
|
2022-02-13 21:06:56 +07:00
|
|
|
./services/nginx.nix
|
|
|
|
|
./services/postgres.nix
|
2022-08-10 15:51:38 +07:00
|
|
|
./services/sonarr.nix
|
2022-02-13 21:06:56 +07:00
|
|
|
./services/synapse.nix
|
2022-02-23 21:18:15 +07:00
|
|
|
./services/tmptsync.nix
|
2022-02-24 13:07:46 +07:00
|
|
|
./services/unbound.nix
|
2022-02-27 13:06:17 +07:00
|
|
|
./services/vaultwarden.nix
|
2022-02-13 21:06:56 +07:00
|
|
|
];
|
2021-11-17 10:57:56 +07:00
|
|
|
system = mkAttrsFromPaths [
|
2025-01-03 18:39:05 +11:00
|
|
|
./system/aagl.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./system/audio.nix
|
|
|
|
|
./system/base.nix
|
2024-01-17 15:37:48 +07:00
|
|
|
./system/bluetooth.nix
|
2023-08-24 20:18:35 +07:00
|
|
|
./system/ccache.nix
|
2023-09-26 20:42:01 +07:00
|
|
|
./system/corectrl.nix
|
|
|
|
|
./system/flatpak.nix
|
2025-03-23 00:29:58 +11:00
|
|
|
./system/greetd.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./system/gui.nix
|
2022-02-02 00:27:17 +07:00
|
|
|
./system/home-manager.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./system/input.nix
|
|
|
|
|
./system/kernel.nix
|
|
|
|
|
./system/nix.nix
|
2022-11-27 14:30:59 +07:00
|
|
|
./system/nix-stable.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./system/packages.nix
|
2023-09-26 20:42:01 +07:00
|
|
|
./system/printing.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./system/security.nix
|
|
|
|
|
./system/snapper.nix
|
|
|
|
|
./system/transmission.nix
|
2023-09-26 20:42:01 +07:00
|
|
|
./system/virtualisation.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./system/wireguard.nix
|
|
|
|
|
];
|
|
|
|
|
user = mkAttrsFromPaths [
|
2025-01-24 12:57:53 +11:00
|
|
|
./user/catppuccin.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./user/direnv.nix
|
|
|
|
|
./user/dunst.nix
|
2022-03-22 23:50:53 +07:00
|
|
|
./user/eww.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./user/git.nix
|
|
|
|
|
./user/gpg.nix
|
2025-03-17 15:52:18 +11:00
|
|
|
./user/hypridle.nix
|
2025-03-17 15:16:11 +11:00
|
|
|
./user/hyprlock.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./user/kitty.nix
|
|
|
|
|
./user/mpv.nix
|
|
|
|
|
./user/neovim.nix
|
2022-02-02 11:00:43 +07:00
|
|
|
./user/neovim-minimal.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./user/npm.nix
|
2023-09-13 21:41:36 +07:00
|
|
|
./user/obs.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./user/rofi.nix
|
|
|
|
|
./user/sessionVariables.nix
|
2023-01-23 22:18:27 +07:00
|
|
|
./user/spicetify.nix
|
2021-11-17 10:57:56 +07:00
|
|
|
./user/theming.nix
|
|
|
|
|
./user/xdg.nix
|
|
|
|
|
./user/zsh.nix
|
|
|
|
|
];
|
|
|
|
|
}
|