Compare commits

..

4 Commits

Author SHA1 Message Date
a4aa586b71 flake: update 2026-05-11 23:14:56 +02:00
422a166925 challenger/frigate: init 2026-05-06 20:33:58 +02:00
22b3907223 challenger/calibre: restore stable package 2026-05-06 20:33:58 +02:00
a578f30600 flake: update 2026-05-06 20:27:58 +02:00
6 changed files with 61 additions and 12 deletions

18
flake.lock generated
View File

@@ -56,11 +56,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1775425411, "lastModified": 1778401693,
"narHash": "sha256-KY6HsebJHEe5nHOWP7ur09mb0drGxYSzE3rQxy62rJo=", "narHash": "sha256-OVHdCqXXUF5UdGkH+FF2ZL06OLZjj2kvP2dIUmzVWoo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "0d02ec1d0a05f88ef9e74b516842900c41f0f2fe", "rev": "389b83002efc26f1145e89a6a8e6edc5a6435948",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -135,11 +135,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1777339890, "lastModified": 1778452785,
"narHash": "sha256-/8cNnAn4FMZgIEEWf9chqo2ffH6bu/vDoJR8mnaNjtM=", "narHash": "sha256-7zDRz1Jr69CiWDvJSjqIF2/X8wY+d8PACt4xIvesruE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fcf51609c44b7781822f4258feb16f15085ff47d", "rev": "9700a8ef2f85813ee04a956ab2747a22d0b67b95",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -178,11 +178,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1776877367, "lastModified": 1777954456,
"narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=", "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0726a0ecb6d4e08f6adced58726b95db924cef57", "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -15,6 +15,7 @@
# ./services/archivebox.nix # ./services/archivebox.nix
./services/audiobookshelf.nix ./services/audiobookshelf.nix
./services/calibre.nix ./services/calibre.nix
./services/frigate.nix
./services/jellyfin.nix ./services/jellyfin.nix
./services/komga.nix ./services/komga.nix
./services/nextcloud.nix ./services/nextcloud.nix

View File

@@ -26,7 +26,6 @@ in {
calibre-web = { calibre-web = {
enable = true; enable = true;
package = pkgs.unstable.calibre-web;
user = "calibre-server"; user = "calibre-server";
listen.ip = "127.0.0.1"; listen.ip = "127.0.0.1";
listen.port = 5010; listen.port = 5010;

View File

@@ -0,0 +1,49 @@
{ config, lib, pkgs, ... }:
{
fileSystems = {
"/var/lib/frigate" = {
device = "/tank/nvr/frigate";
depends = [ "/tank/nvr/frigate" ];
options = [ "bind" ];
};
};
services.frigate = {
enable = true;
hostname = "frigate.home.feal.no";
vaapiDriver = "nvidia";
checkConfig = false;
settings = {
# auth.reset_admin_password = true;
motion.enabled = true;
record.enabled = true;
# snapshots.enabled = true;
# detect = {
# enabled = true;
# fps = 5;
# };
cameras = {
driveway = {
ffmpeg.inputs = [
{
path = "rtsp://admin:placeholder@192.168.10.40/streaming/channels/101";
roles = [
"detect"
"record"
];
}
];
};
};
};
};
systemd.services.frigate.serviceConfig = {
# Allow GPU use
PrivateDevices = false;
# Allow cpuinfo
ProcSubset = "all";
};
}

View File

@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
domain = "komga.home.feal.no"; domain = "komga.home.feal.no";
port = 5001; port = 5004;
in { in {
services.komga = { services.komga = {
enable = true; enable = true;

View File

@@ -11,7 +11,7 @@
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
virtualHosts."cloud.feal.no".default = true; virtualHosts."jf.feal.no".default = true;
}; };
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];