feat: add noisepics to server
This commit is contained in:
parent
e91c4949d0
commit
bb1b8ca33f
4 changed files with 44 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
./modules/ntfy.nix
|
./modules/ntfy.nix
|
||||||
./modules/uptime-kuma.nix
|
./modules/uptime-kuma.nix
|
||||||
./modules/noisebell.nix
|
./modules/noisebell.nix
|
||||||
|
./modules/noisepics.nix
|
||||||
# mymx module is imported via flake input in flake.nix
|
# mymx module is imported via flake input in flake.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -295,6 +295,26 @@
|
||||||
"url": "https://git.extremist.software/jet/noisebell"
|
"url": "https://git.extremist.software/jet/noisebell"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"noisepics": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773877610,
|
||||||
|
"narHash": "sha256-95MYG1YSdry/YUbUeaMlfAhYE9j4WxNjO4iRJuFo4T0=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "acca19d3dd8249fe8648de22f3f0263fadf1db8a",
|
||||||
|
"revCount": 1,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.extremist.software/jet/noisepics"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.extremist.software/jet/noisepics"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pi-service": {
|
"pi-service": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
|
|
@ -341,6 +361,7 @@
|
||||||
"mymx": "mymx",
|
"mymx": "mymx",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"noisebell": "noisebell",
|
"noisebell": "noisebell",
|
||||||
|
"noisepics": "noisepics",
|
||||||
"website": "website"
|
"website": "website"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@
|
||||||
noisebell.url = "git+https://git.extremist.software/jet/noisebell";
|
noisebell.url = "git+https://git.extremist.software/jet/noisebell";
|
||||||
noisebell.inputs.nixpkgs.follows = "nixpkgs";
|
noisebell.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
noisepics.url = "git+https://git.extremist.software/jet/noisepics";
|
||||||
|
noisepics.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
@ -30,6 +33,7 @@
|
||||||
inputs.website.nixosModules.default
|
inputs.website.nixosModules.default
|
||||||
inputs.agenix.nixosModules.default
|
inputs.agenix.nixosModules.default
|
||||||
inputs.noisebell.nixosModules.default
|
inputs.noisebell.nixosModules.default
|
||||||
|
inputs.noisepics.nixosModules.default
|
||||||
|
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
|
||||||
18
modules/noisepics.nix
Normal file
18
modules/noisepics.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
age.secrets.noisepics-storagebox = {
|
||||||
|
file = "${inputs.noisepics}/secrets/noisepics-storagebox.age";
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.noisepics = {
|
||||||
|
enable = true;
|
||||||
|
domain = "noisepics.extremist.software";
|
||||||
|
storagebox = {
|
||||||
|
enable = true;
|
||||||
|
address = "u563838.your-storagebox.de";
|
||||||
|
credentialsFile = config.age.secrets.noisepics-storagebox.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue