Compare commits
2 commits
209443296f
...
df184b40e0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df184b40e0 | ||
|
|
fb37ecaa67 |
2 changed files with 40 additions and 37 deletions
|
|
@ -20,21 +20,24 @@ lib.mkMerge [
|
||||||
];
|
];
|
||||||
|
|
||||||
# One-shot fixup for existing files after migrations/rsync.
|
# One-shot fixup for existing files after migrations/rsync.
|
||||||
|
# Runs before `nfs-server` so clients always see correct perms.
|
||||||
systemd.services.nfs-media-permissions = {
|
systemd.services.nfs-media-permissions = {
|
||||||
description = "Fix NFS media permissions";
|
description = "Fix NFS media permissions";
|
||||||
after = [ "local-fs.target" ];
|
after = [ "local-fs.target" ];
|
||||||
before = [ "nfs-server.service" ];
|
before = [ "nfs-server.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
requiredBy = [ "nfs-server.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
path = [ pkgs.coreutils pkgs.findutils ];
|
path = [ pkgs.coreutils pkgs.findutils ];
|
||||||
script = ''
|
script = ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
getent group media >/dev/null
|
||||||
|
|
||||||
for dir in /data/nixarr/media /data/pinchflat/media; do
|
for dir in /data/nixarr/media /data/pinchflat/media; do
|
||||||
mkdir -p "$dir"
|
mkdir -p "$dir"
|
||||||
chgrp -R media "$dir" || true
|
chgrp -R media "$dir"
|
||||||
chmod -R g+rwX "$dir" || true
|
chmod -R g+rwX "$dir"
|
||||||
find "$dir" -type d -print0 | xargs -0 chmod 2775 || true
|
find "$dir" -type d -exec chmod 2775 {} +
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
66
hosts/lio/flake.lock
generated
66
hosts/lio/flake.lock
generated
|
|
@ -31,11 +31,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/beszel",
|
"dir": "flakes/beszel",
|
||||||
"lastModified": 1766961967,
|
"lastModified": 1767199996,
|
||||||
"narHash": "sha256-ccLRTjpQ3tqvNMMhCn02+WS74KE0i8bYLI/Jh4GdoiQ=",
|
"narHash": "sha256-+QX8YguilhZBVvu80QZh/NDK18EWCiebo5MEgytncZQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "6b023457ec9053e748bc49ac3e28ea82e2f998d4",
|
"rev": "23b9b9c00465c35baa19fe386c776df60fb10c0f",
|
||||||
"revCount": 975,
|
"revCount": 1015,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
@ -64,11 +64,11 @@
|
||||||
"common": {
|
"common": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/common",
|
"dir": "flakes/common",
|
||||||
"lastModified": 1767108596,
|
"lastModified": 1767201073,
|
||||||
"narHash": "sha256-G24jIpfoSg3e4yUtAJnJsA6Mw+INLd3g85JzLWj+1j8=",
|
"narHash": "sha256-UpY2rT7+j2t1K5Ed0wp/nKrSSA7WcZ1BpU1B3vPrbJA=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "31f2ef23a0382b3149866ee3665a64843870d7a6",
|
"rev": "209443296fb1224938a20e7e82fc20d47e360f1c",
|
||||||
"revCount": 1007,
|
"revCount": 1016,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
@ -123,11 +123,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/de_plasma",
|
"dir": "flakes/de_plasma",
|
||||||
"lastModified": 1767147918,
|
"lastModified": 1767199996,
|
||||||
"narHash": "sha256-ymvfM1mfs/nKsHovMkM4UROtH5X/WHXl0IEVsD3Z1Eg=",
|
"narHash": "sha256-+QX8YguilhZBVvu80QZh/NDK18EWCiebo5MEgytncZQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "c982d3995d78a9035d04a456c03d25468d8f9477",
|
"rev": "23b9b9c00465c35baa19fe386c776df60fb10c0f",
|
||||||
"revCount": 1013,
|
"revCount": 1015,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
@ -161,11 +161,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/flatpaks",
|
"dir": "flakes/flatpaks",
|
||||||
"lastModified": 1766961967,
|
"lastModified": 1767199996,
|
||||||
"narHash": "sha256-ccLRTjpQ3tqvNMMhCn02+WS74KE0i8bYLI/Jh4GdoiQ=",
|
"narHash": "sha256-+QX8YguilhZBVvu80QZh/NDK18EWCiebo5MEgytncZQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "6b023457ec9053e748bc49ac3e28ea82e2f998d4",
|
"rev": "23b9b9c00465c35baa19fe386c776df60fb10c0f",
|
||||||
"revCount": 975,
|
"revCount": 1015,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
@ -202,11 +202,11 @@
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766939458,
|
"lastModified": 1767024057,
|
||||||
"narHash": "sha256-VvZeAKyB3vhyHStSO8ACKzWRKNQPmVWktjfuSVdvtUA=",
|
"narHash": "sha256-B1aycRjMRvb6QOGbnqDhiDzZwMebj5jxZ5qyJzaKvpI=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "e298a148013c980e3c8c0ac075295fab5074d643",
|
"rev": "34578a2fdfce4257ce5f5baf6e7efbd4e4e252b1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -273,11 +273,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766651565,
|
"lastModified": 1766902085,
|
||||||
"narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=",
|
"narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539",
|
"rev": "c0b0e0fddf73fd517c3471e546c0df87a42d53f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -305,11 +305,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766736597,
|
"lastModified": 1767047869,
|
||||||
"narHash": "sha256-BASnpCLodmgiVn0M1MU2Pqyoz0aHwar/0qLkp7CjvSQ=",
|
"narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f560ccec6b1116b22e6ed15f4c510997d99d5852",
|
"rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -1237,11 +1237,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/opencode",
|
"dir": "flakes/opencode",
|
||||||
"lastModified": 1767130486,
|
"lastModified": 1767199996,
|
||||||
"narHash": "sha256-uqNOE5wBvgXgluAkVWWy7/GXpsdgUnZt4gTYTNnbnM8=",
|
"narHash": "sha256-+QX8YguilhZBVvu80QZh/NDK18EWCiebo5MEgytncZQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "b322c942bbf340ab70b2e2a021f2c5359f0330dc",
|
"rev": "23b9b9c00465c35baa19fe386c776df60fb10c0f",
|
||||||
"revCount": 1011,
|
"revCount": 1015,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
@ -1446,11 +1446,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/secrets",
|
"dir": "flakes/secrets",
|
||||||
"lastModified": 1766961967,
|
"lastModified": 1767199996,
|
||||||
"narHash": "sha256-ccLRTjpQ3tqvNMMhCn02+WS74KE0i8bYLI/Jh4GdoiQ=",
|
"narHash": "sha256-+QX8YguilhZBVvu80QZh/NDK18EWCiebo5MEgytncZQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "6b023457ec9053e748bc49ac3e28ea82e2f998d4",
|
"rev": "23b9b9c00465c35baa19fe386c776df60fb10c0f",
|
||||||
"revCount": 975,
|
"revCount": 1015,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue