Compare commits
4 commits
e08a6f7d23
...
b66032bd1f
Author | SHA1 | Date | |
---|---|---|---|
b66032bd1f | |||
41ab35d139 | |||
82184592ea | |||
dc6b9b09e0 |
6 changed files with 65 additions and 20 deletions
36
flake.lock
36
flake.lock
|
@ -255,11 +255,11 @@
|
|||
"rust-overlay": "rust-overlay"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1706459685,
|
||||
"narHash": "sha256-/OaxGhNJrBZcOBGKvEC7KFDShtMJOIpny5+N9G/qRkE=",
|
||||
"lastModified": 1706565513,
|
||||
"narHash": "sha256-eiiHgBdpluVFjjWaunP1GFEDYnCLq54CeCD7h1JP7jY=",
|
||||
"owner": "helix-editor",
|
||||
"repo": "helix",
|
||||
"rev": "87a720c3a13ccc7245f5b0befc008db5bd039032",
|
||||
"rev": "cf4492174d0ee27bd3c73a5fa57fe3a26aa064be",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -275,11 +275,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1706435589,
|
||||
"narHash": "sha256-yhEYJxMv5BkfmUuNe4QELKo+V5eq1pwhtVs6kEziHfE=",
|
||||
"lastModified": 1706473109,
|
||||
"narHash": "sha256-iyuAvpKTsq2u23Cr07RcV5XlfKExrG8gRpF75hf1uVc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "4d54c29bce71f8c261513e0662cc573d30f3e33e",
|
||||
"rev": "d634c3abafa454551f2083b054cd95c3f287be61",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -297,11 +297,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1706485369,
|
||||
"narHash": "sha256-FHojTmzX3SrAC+VXu+xdmTPwZtlSQ8KzRfq89c7DrN0=",
|
||||
"lastModified": 1706571425,
|
||||
"narHash": "sha256-VwVUPb5vuy4GGUx1XMhDMaKk9n8Gs5xUTG9CItoHL04=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "4b4bd90b1450cbfc01d9ac429363cc7cecd6be8b",
|
||||
"rev": "3ff59e7e1d859daa503b88ef125d087bc100abfe",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -403,11 +403,11 @@
|
|||
"nixpkgs": "nixpkgs_5"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1706482802,
|
||||
"narHash": "sha256-KXwKTfqFkoPpV8QqaVlpmO8w8rD/jHZL2315RL5QQ8w=",
|
||||
"lastModified": 1706619656,
|
||||
"narHash": "sha256-ulXRgLT7MCt6GtsUPMsrUiIlFBc9dy4edFcSOBQAF9Q=",
|
||||
"owner": "fufexan",
|
||||
"repo": "nix-gaming",
|
||||
"rev": "8f354ef64cd18898b8980ecf7fe90118808b514b",
|
||||
"rev": "a6c2611520ad922726af3e15fcd6a4b940e86ec7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -568,11 +568,11 @@
|
|||
},
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1706191920,
|
||||
"narHash": "sha256-eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE=",
|
||||
"lastModified": 1706371002,
|
||||
"narHash": "sha256-dwuorKimqSYgyu8Cw6ncKhyQjUDOyuXoxDTVmAXq88s=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ae5c332cbb5827f6b1f02572496b141021de335f",
|
||||
"rev": "c002c6aa977ad22c60398daaa9be52f2203d0006",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -600,11 +600,11 @@
|
|||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1706501155,
|
||||
"narHash": "sha256-n2pnpxxa5AQUJa3IS/yBsx61/REswCOX6zrRxOD/MaU=",
|
||||
"lastModified": 1706619148,
|
||||
"narHash": "sha256-hxvNVo8OjUS8yaVy3LHX44hNxxkhBcuViYhhcHD7Umo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "3b667f154e01d9c01298be604804f4f9f63c9795",
|
||||
"rev": "0d59dcdfdbaf840996b4240295cf93342590e316",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -37,5 +37,17 @@
|
|||
protected-mode = "no";
|
||||
};
|
||||
};
|
||||
paperless-ngx = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 6382;
|
||||
bind = null;
|
||||
databases = 16;
|
||||
logLevel = "debug";
|
||||
requirePass = "paperless-ngx";
|
||||
settings = {
|
||||
protected-mode = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
fsType = "nfs";
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/paperless-ngx/media" = {
|
||||
device = "192.168.1.199:/mnt/Sutoreji/paperless-ngx/paperless-media ";
|
||||
fsType = "nfs";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/bd7ccb73-6f85-4b3d-b37f-5cff58a6ab59";}
|
||||
];
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
./homepage.nix
|
||||
./searxng.nix
|
||||
./anki-sync-server.nix
|
||||
./paperless.nix
|
||||
];
|
||||
}
|
||||
|
|
26
hosts/yuki/services/paperless.nix
Normal file
26
hosts/yuki/services/paperless.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
sops.secrets.paperless-pwd = {
|
||||
owner = "paperless";
|
||||
group = "paperless";
|
||||
};
|
||||
services.paperless = let
|
||||
dataDir = "/var/lib/paperless-ngx";
|
||||
in {
|
||||
package = pkgs.paperless-ngx;
|
||||
enable = true;
|
||||
address = "100.108.113.89";
|
||||
port = 28981;
|
||||
passwordFile = config.sops.secrets.paperless-pwd.path;
|
||||
dataDir = "${dataDir}";
|
||||
mediaDir = "${dataDir}/media";
|
||||
consumptionDir = "${dataDir}/consume";
|
||||
settings = {
|
||||
PAPERLESS_ADMIN_USER = "notoh";
|
||||
PAPERLESS_REDIS = "redis://:paperless-ngx@100.94.214.100:6382";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -12,6 +12,7 @@ woodpecker-server: ENC[AES256_GCM,data:rI6Su65xSXGwy+wI9koVi1oL4RCSr5VEf8txJohza
|
|||
woodpecker-agent-secret: ENC[AES256_GCM,data:DQoIOciEqDcaUYTTYFeIocmUUFB+ASstMA0ver4QiM/1n8G3udFL0OR6QRO1wx3bAlPCD4rrfiw1vYgAFj8xFg==,iv:X4goTnTQof1+OHj8nq6VAyCe+M7p2hLa4nDvm/hXw7U=,tag:3KbuBYTqU2hD3GB3r1siZw==,type:str]
|
||||
miniflux: ENC[AES256_GCM,data:H5YA60nFQkUVBhLrNjQY7E5hhBPjjQEqQ6PJB5ZNj1KNKtUSWt+rzFt+Hce5JrNmmj7aZjmj9upuzPjRFdva/T9ZyRHm,iv:Ju6bElSOsj62L+5ANKEmE866sCy9IOP5V9P020tl9bU=,tag:ntDj4d+2fGOE443tPZj80Q==,type:str]
|
||||
anki-pwd: ENC[AES256_GCM,data:g3HNzilSVAsRkqOPdQHr0MZZkwOKz4gdDDBvhRZbD1w=,iv:49UNCpA6WLPKp2Y85Vpdgk/Eu47NyLGxXWDl5Qmkn8Y=,tag:n7hEcd908mkQbOr73qlYSw==,type:str]
|
||||
paperless-pwd: ENC[AES256_GCM,data:Ylb5Bojq0YFsVWbKkeMQXLXuyoUDdKWkY7OcFcrzdlNa,iv:bpgJx46branHQTJUOoYfIOsguLrjjxoYFk069YMkyAE=,tag:d0kdILLVFT3fR2gw52qGEA==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
|
@ -27,8 +28,8 @@ sops:
|
|||
YWNQcURKMSs2U0pOa3E0cTdCZ3RnalkKGayA7DBUQS+kn+6OYVBc6oTunF0qeZdt
|
||||
5b9DLHgh0HRWFm09XGSOog8K315d93Wzblw1My1/dXeEQX/ryinqUQ==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2024-01-27T23:22:53Z"
|
||||
mac: ENC[AES256_GCM,data:LQEJrgIJayXj5JEdMGj8B9MajPAbgnMXjr6N39XrYhZh9BRcqWWE0aay85+Mmk9V+qBMueZrcJMH467fG85CzNUebHv6hLkO4AescAAs+Tpkb31BH1APKt2rA8I4aRyPP8XNTwOV2aFQSYZ1fxuJtHUcKgKQSio/O6z4dZ+Q5ho=,iv:tcG3P+nCxZR3ovJDDB2hX9A79kV6vS9usfkxSHpj1lA=,tag:S3kzEzpsIkUeKtpnh5qvqw==,type:str]
|
||||
lastmodified: "2024-01-30T21:41:03Z"
|
||||
mac: ENC[AES256_GCM,data:eScXGN71s1QzjsMFLO0i1vJ1NqUjVCdRQ17KKc2SZ7gWWFiZMoUON6O0grZds1S0K2Or0mesBz2hblMHQKtYLvIZe0DZx9qh93aFBLCbKleJZNOdGlpjsxRgla2Cu3EpG5JX5FtHhaZmIRIewgf3DR09QYgrOBB3009sxkQUNHs=,iv:Mmb4O0FZNXm78KeMn5Gg4TeFBnaA8UKosTENLgsh9Iw=,tag:TJqRjn2IK0HNey5W7/hKpQ==,type:str]
|
||||
pgp: []
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.8.1
|
||||
|
|
Loading…
Reference in a new issue