feat(paperless): use nixpkgs and move from container to server
This commit is contained in:
parent
3d97f48340
commit
41e39ead55
8 changed files with 18 additions and 13 deletions
|
@ -160,7 +160,6 @@
|
|||
"libvirtd"
|
||||
"dialout" # Necessary for serial port interactions
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
openssh.authorizedKeys.keys = [ pubkeys.ny ];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
|
@ -4,8 +4,6 @@ let
|
|||
inherit (lib) mkIf mkEnableOption;
|
||||
in
|
||||
{
|
||||
imports = [ ./paperless-ngx ];
|
||||
|
||||
options.modules.container = {
|
||||
enable = mkEnableOption "container support";
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
imports = [
|
||||
./media.nix
|
||||
./system.nix
|
||||
./navidrome.nix
|
||||
./container
|
||||
./server
|
||||
];
|
||||
}
|
||||
|
|
6
options/server/default.nix
Normal file
6
options/server/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./paperless-ngx
|
||||
./navidrome.nix
|
||||
];
|
||||
}
|
|
@ -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;
|
Loading…
Add table
Reference in a new issue