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"
"dialout" # Necessary for serial port interactions
];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [ pubkeys.ny ];
};
};

View file

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

View file

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

View file

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

View file

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

View file

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