mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 12:07:29 +01:00
Compare commits
2 Commits
157c54ae65
...
110b410fbd
Author | SHA1 | Date | |
---|---|---|---|
110b410fbd | |||
8c880f3c7b |
22
flake.lock
generated
22
flake.lock
generated
@ -207,11 +207,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728193676,
|
"lastModified": 1731386116,
|
||||||
"narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=",
|
"narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6",
|
"rev": "689fed12a013f56d4c4d3f612489634267d86529",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -269,22 +269,6 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"unstable": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1728241625,
|
|
||||||
"narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "c31898adf5a8ed202ce5bea9f347b1c6871f32d1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# ./exports.nix
|
# ./exports.nix
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
|
|
||||||
|
./services/archivebox.nix
|
||||||
./services/calibre.nix
|
./services/calibre.nix
|
||||||
./services/ersatztv.nix
|
./services/ersatztv.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin.nix
|
||||||
|
35
hosts/challenger/services/archivebox.nix
Normal file
35
hosts/challenger/services/archivebox.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
host = "127.0.1.2";
|
||||||
|
port = "5009";
|
||||||
|
uid = 911;
|
||||||
|
gid = 911;
|
||||||
|
in {
|
||||||
|
users.users.archivebox = {
|
||||||
|
inherit uid;
|
||||||
|
group = "archivebox";
|
||||||
|
isSystemUser = true;
|
||||||
|
useDefaultShell = true;
|
||||||
|
description = "ArchiveBox web archiving tool";
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.archivebox = {
|
||||||
|
inherit gid;
|
||||||
|
};
|
||||||
|
|
||||||
|
# ArchiveBox - Open source self-hosted web archiving.
|
||||||
|
virtualisation.oci-containers.containers.archivebox = {
|
||||||
|
image = "archivebox/archivebox:0.8.5rc50";
|
||||||
|
ports = [ "${host}:${port}:8000" ];
|
||||||
|
volumes = [
|
||||||
|
"/tank/archivebox:/data"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."archivebox.home.feal.no" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${host}:${port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -5,7 +5,7 @@ let
|
|||||||
in {
|
in {
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud29;
|
package = pkgs.nextcloud30;
|
||||||
inherit hostName;
|
inherit hostName;
|
||||||
home = "/tank/nextcloud";
|
home = "/tank/nextcloud";
|
||||||
https = true;
|
https = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user