Joey Hafner 93e8426a43
Feature: Implement new modules for fighter.
- Fighter uses: system, git, sops, docker, networking, and iscsi modules; plus its own stacks module which we've updated to use the new design concept.
  - I can't figure out how to put all of the module code together (importing and defining the vars), so we're compromising.
2025-02-16 01:26:30 -08:00

28 lines
810 B
Nix

{ sys, stacks, ... }: let stack = "books"; in {
home-manager.users."${sys.username}".home.file = {
"${stack}" = {
enable = true;
recursive = true;
source = ./.;
target = "stacks/${stack}/";
};
"${stack}/.env" = {
enable = true;
text = ''
APPDATA=${stacks.appdata}/${stack}
EBOOKS_LIBRARY=${stacks.library.books}/ebooks
AUDIOBOOKS_LIBRARY=${stacks.library.books}/audiobooks
NZB_COMPLETED=${stacks.appdata}/torrenting/NZB
NZB_INCOMPLETE=${stacks.appdata}/torrenting/NZB_incomplete
LIBRARY_DIR=${stacks.library.books}/Calibre
'';
target = "stacks/${stack}/.env";
};
};
sops.secrets."${stack}" = {
sopsFile = ./books.secrets;
key = "";
mode = "0440";
owner = sys.username;
};
}