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"
|
"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 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./media.nix
|
./media.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
./navidrome.nix
|
|
||||||
./container
|
./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
|
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;
|
Loading…
Add table
Reference in a new issue