feat(paperless): use nixpkgs and move from container to server

This commit is contained in:
Nydragon 2024-10-02 00:37:45 +02:00
parent 3d97f48340
commit 41e39ead55
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
8 changed files with 18 additions and 13 deletions

View file

@ -160,7 +160,6 @@
"libvirtd" "libvirtd"
"dialout" # Necessary for serial port interactions "dialout" # Necessary for serial port interactions
]; ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [ pubkeys.ny ]; openssh.authorizedKeys.keys = [ pubkeys.ny ];
}; };
}; };

View file

@ -9,9 +9,7 @@
imports = [ imports = [
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
./disk-config.nix ./disk-config.nix
../../modules/nix ../../modules
../../modules/users/ny.nix
./test.nix
]; ];
age.secrets.navidrome.file = ../../secrets/navidrome.age; age.secrets.navidrome.file = ../../secrets/navidrome.age;
@ -21,10 +19,13 @@
efiInstallAsRemovable = true; efiInstallAsRemovable = true;
}; };
# modules.container.paperless-ngx = { modules.server.paperless = {
#enable = true; enable = true;
#openPort = true; openPort = true;
#}; settings = {
PAPERLESS_URL = "https://paperless.ccnlc.eu";
};
};
modules.server.navidrome = { modules.server.navidrome = {
enable = true; enable = true;
@ -56,6 +57,7 @@
#useRoutingFeatures = "both"; #useRoutingFeatures = "both";
}; };
}; };
environment.systemPackages = map lib.lowPrio [ environment.systemPackages = map lib.lowPrio [
pkgs.curl pkgs.curl
]; ];

View file

@ -4,8 +4,6 @@ let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
in in
{ {
imports = [ ./paperless-ngx ];
options.modules.container = { options.modules.container = {
enable = mkEnableOption "container support"; enable = mkEnableOption "container support";
}; };

View file

@ -2,7 +2,7 @@
imports = [ imports = [
./media.nix ./media.nix
./system.nix ./system.nix
./navidrome.nix
./container ./container
./server
]; ];
} }

View file

@ -0,0 +1,6 @@
{
imports = [
./paperless-ngx
./navidrome.nix
];
}

View file

@ -8,10 +8,10 @@
let let
inherit (lib) mkIf mkOption mkEnableOption; inherit (lib) mkIf mkOption mkEnableOption;
inherit (lib.types) port bool; inherit (lib.types) port bool;
cfg = config.modules.container.paperless; cfg = config.modules.server.paperless;
in in
{ {
options.modules.container.paperless = { options.modules.server.paperless = {
enable = mkEnableOption "paperless"; enable = mkEnableOption "paperless";
port = mkOption { port = mkOption {
default = 8000; default = 8000;