add watchstate syncer
Some checks failed
Lint / lint (push) Failing after 1m35s
Plex Update / update (push) Successful in 1m52s

This commit is contained in:
Vivian 2023-12-26 20:41:25 +01:00
parent ae5580febd
commit f3f4bb391b
5 changed files with 46 additions and 23 deletions

42
flake.lock generated
View file

@ -710,11 +710,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1703265279, "lastModified": 1703413401,
"narHash": "sha256-5jVtOwyMH1FzclxHrsFWzBdB+VyjUUSu1wyZhZlR6WU=", "narHash": "sha256-pc3SzlsRDe5KW3SqOntNH17Z+/czlln0j2Je2jjeBSg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "07c322a7cff03267fd881adae1afe63367c5d608", "rev": "16fcb9674a71220313f91446e0c259bce5c20f0f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -811,11 +811,11 @@
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1703300511, "lastModified": 1703330826,
"narHash": "sha256-lU0sFmNcLTZBDJyeckW5oXtypA62XFZUGFMyGne9EYA=", "narHash": "sha256-GGGWtDA0GZArmALQsJX0w0p/mCXPeFGlbNjVJWMS+W0=",
"owner": "astro", "owner": "astro",
"repo": "microvm.nix", "repo": "microvm.nix",
"rev": "fa93cd958b42da4657a47f034af9641349d1c7cb", "rev": "5a76dfa5fec6c3db8954b90d60a66bbec4684d6a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1194,11 +1194,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1703213509, "lastModified": 1703395344,
"narHash": "sha256-BDVzvjPwKk4/yvdCNzjmm1wlDf7Pdbhsf+hV2ybKkrY=", "narHash": "sha256-cAgNsKUbbOjm3s8NJwRa0YEgyLbTVQ5Y+z4SCUIRs4k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bc3575c6cda0c5fc9e322c05d97df6a787066b3e", "rev": "cb574470bb7e360016c254867f7734a95812b47f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1209,11 +1209,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1702830618, "lastModified": 1703013332,
"narHash": "sha256-lvhwIvRwhOLgzbRuYkqHy4M5cQHYs4ktL6/hyuBS6II=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "91a00709aebb3602f172a0bf47ba1ef013e34835", "rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1257,11 +1257,11 @@
}, },
"nixpkgs_stable": { "nixpkgs_stable": {
"locked": { "locked": {
"lastModified": 1703034876, "lastModified": 1703351344,
"narHash": "sha256-4bMPFv/bs5g1nEsXQwXlrAGJgjv1Ilr0ejdaTkBwQLs=", "narHash": "sha256-9FEelzftkE9UaJ5nqxidaJJPEhe9TPhbypLHmc2Mysc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "312ab59e8ade69e6083017bd9b98a2919f1fb86a", "rev": "7790e078f8979a9fcd543f9a47427eeaba38f268",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1277,11 +1277,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1703260550, "lastModified": 1703435563,
"narHash": "sha256-wPe+0oCgzvf9Ixscme+NUS4iRX0n/alJvt3msnu9vPA=", "narHash": "sha256-BDnoVc9Kvc9wo9lt8GC0kkqwLedP7lnBBdh1UHl4cPw=",
"owner": "pta2002", "owner": "pta2002",
"repo": "nixvim", "repo": "nixvim",
"rev": "e0521dde87825e4ed16e1ac5b6df9f1b7e60af05", "rev": "c11158c73e9a488d803356127a54af8101fc0051",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1292,11 +1292,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1703324764, "lastModified": 1703509179,
"narHash": "sha256-c5ll8NFOSg+vMvJVDBds/iXNp25VhkSUcmB7jaeV5FM=", "narHash": "sha256-mXKRf1iQ4R1LnXdFjR+EC0jZ8hZs9t39mrsmd6Mhnw4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "8c88bc919c49528c4cc9a65501406cecb74361b7", "rev": "d436288c594494f2e5dfcc5f822ca88151b3b178",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -20,6 +20,8 @@
sharedModules = [ ./hm-modules inputs.nixvim.homeManagerModules.nixvim ]; sharedModules = [ ./hm-modules inputs.nixvim.homeManagerModules.nixvim ];
}; };
virtualisation.oci-containers.backend = lib.mkDefault "podman";
# Clean /tmp on boot. # Clean /tmp on boot.
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;

View file

@ -12,9 +12,10 @@ in {
calibre calibre
celluloid celluloid
cinny-desktop cinny-desktop
element-desktop-wayland element-desktop
fusee-launcher fusee-launcher
fractal-next fractal-next
foliate
gcc gcc
gimp gimp
helix helix

View file

@ -23,6 +23,26 @@
openFirewall = true; openFirewall = true;
}; };
users.groups.watchstate = { };
users.users.watchstate = {
isSystemUser = true;
group = "watchstate";
};
systemd.tmpfiles.rules =
[ "d '/var/lib/watchstate' 0755 watchstate watchstate -" ];
# Managed imperatively through its CLI
virtualisation.oci-containers.containers.watchstate = {
image = "ghcr.io/arabcoders/watchstate:latest";
extraOptions = [ "--pull=newer" ];
user = "0:0";
environment = { WS_TZ = "Europe/Amsterdam"; };
ports = [ "8080:8080" ];
volumes = [ "/var/lib/watchstate:/config:rw" ];
};
fileSystems."/mnt/storage" = { fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage"; device = "storage:/mnt/storage";
fsType = "nfs"; fsType = "nfs";

View file

@ -1,4 +1,4 @@
{ nixpkgs, home-manager, mailserver, lanzaboote, attic, microvm, ... }: { nixpkgs, home-manager, mailserver, lanzaboote, attic, ... }:
let let
inherit (builtins) filter attrValues concatMap mapAttrs; inherit (builtins) filter attrValues concatMap mapAttrs;
inherit (nixpkgs.lib.attrsets) mapAttrsToList; inherit (nixpkgs.lib.attrsets) mapAttrsToList;