diff --git a/flake.lock b/flake.lock index f6bb1b5..2def15d 100644 --- a/flake.lock +++ b/flake.lock @@ -136,22 +136,6 @@ "type": "github" } }, - "flake-compat_3": { - "flake": false, - "locked": { - "lastModified": 1747046372, - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-utils": { "locked": { "lastModified": 1659877975, @@ -200,24 +184,6 @@ "type": "github" } }, - "flake-utils_4": { - "inputs": { - "systems": "systems_3" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -280,26 +246,6 @@ "type": "github" } }, - "nix-minecraft_2": { - "inputs": { - "flake-compat": "flake-compat_3", - "flake-utils": "flake-utils_4", - "nixpkgs": "nixpkgs_6" - }, - "locked": { - "lastModified": 1767147099, - "narHash": "sha256-395ehjdAtaqCbKmx+PhKAqnkYLvTtAzq2qzFG9qaGDw=", - "owner": "Infinidoge", - "repo": "nix-minecraft", - "rev": "01f571579edd64433f97c4294137fbc366deef4b", - "type": "github" - }, - "original": { - "owner": "Infinidoge", - "repo": "nix-minecraft", - "type": "github" - } - }, "nixpkgs": { "locked": { "lastModified": 1754028485, @@ -380,36 +326,6 @@ } }, "nixpkgs_6": { - "locked": { - "lastModified": 1748929857, - "narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_7": { - "locked": { - "lastModified": 1767364772, - "narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_8": { "locked": { "lastModified": 1737062831, "narHash": "sha256-Tbk1MZbtV2s5aG+iM99U8FqwxU/YNArMcWAv6clcsBc=", @@ -423,7 +339,7 @@ "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" } }, - "nixpkgs_9": { + "nixpkgs_7": { "locked": { "lastModified": 1736549401, "narHash": "sha256-ibkQrMHxF/7TqAYcQE+tOnIsSEzXmMegzyBWza6uHKM=", @@ -439,26 +355,6 @@ "type": "github" } }, - "reclamation": { - "inputs": { - "nix-minecraft": "nix-minecraft_2", - "nixpkgs": "nixpkgs_7", - "utils": "utils" - }, - "locked": { - "lastModified": 1767786101, - "narHash": "sha256-ENlpYr2V5u0/Enq07nIHfzetqmS95aydQYIM6sISVUc=", - "ref": "refs/heads/master", - "rev": "b71acff364b7b5eb3e1b68915aeb379053b86c94", - "revCount": 10, - "type": "git", - "url": "https://git.shobu.fr/sin_serhao/reclamation" - }, - "original": { - "type": "git", - "url": "https://git.shobu.fr/sin_serhao/reclamation" - } - }, "root": { "inputs": { "agenix": "agenix", @@ -467,7 +363,6 @@ "disko": "disko", "nix-minecraft": "nix-minecraft", "nixpkgs": "nixpkgs_5", - "reclamation": "reclamation", "shoblog-front": "shoblog-front", "testing-grounds": "testing-grounds", "unstable": "unstable" @@ -475,7 +370,7 @@ }, "shoblog-front": { "inputs": { - "nixpkgs": "nixpkgs_8" + "nixpkgs": "nixpkgs_6" }, "locked": { "lastModified": 1752594581, @@ -537,39 +432,9 @@ "type": "github" } }, - "systems_3": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_4": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "testing-grounds": { "inputs": { - "nixpkgs": "nixpkgs_9" + "nixpkgs": "nixpkgs_7" }, "locked": { "lastModified": 1755527993, @@ -600,24 +465,6 @@ "repo": "nixpkgs", "type": "github" } - }, - "utils": { - "inputs": { - "systems": "systems_4" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } } }, "root": "root", diff --git a/hosts/sin/copyparty.nix b/hosts/sin/copyparty.nix index 7531189..cbd5015 100644 --- a/hosts/sin/copyparty.nix +++ b/hosts/sin/copyparty.nix @@ -27,13 +27,50 @@ shr = "/shares"; }; + accounts = { + serhao = { + passwordFile = config.age.secrets.copyparty-serhao.path; + }; + }; + volumes = { - "/media" = { - path = "/mnt/mediacenter/media"; + "/movies" = { + path = "/mnt/mediacenter/media/movies"; access = { r = "*"; }; }; + "/shows" = { + path = "/mnt/mediacenter/media/shows"; + access = { + r = "*"; + }; + }; + + "/musics" = { + path = "/mnt/mediacenter/media/musics"; + access = { + r = "*"; + }; + }; + "/mediacenter" = { + path = "/mnt/mediacenter/media"; + access = { + rw = ["serhao"]; + }; + flags = { + e2d = true; + }; + }; + "/data" = { + path = "/mnt/data"; + access = { + rw = ["serhao"]; + }; + flags = { + e2d = true; + }; + }; }; }; diff --git a/hosts/sin/secrets.nix b/hosts/sin/secrets.nix index d9136c9..efea12b 100644 --- a/hosts/sin/secrets.nix +++ b/hosts/sin/secrets.nix @@ -10,5 +10,9 @@ file = ./secrets/airvpn_wireguard_key_env.age; mode = "700"; }; + copyparty-serhao = { + file = ./secrets/copyparty-serhao.age; + mode = "700"; + }; }; } diff --git a/hosts/sin/secrets/copyparty-serhao.age b/hosts/sin/secrets/copyparty-serhao.age new file mode 100644 index 0000000..ca3fb56 --- /dev/null +++ b/hosts/sin/secrets/copyparty-serhao.age @@ -0,0 +1,7 @@ +age-encryption.org/v1 +-> ssh-ed25519 BoEq8A O6x9n4kvpqLucX7NuNeD2SsMmvT5n6aVYwo4nQt21H8 +R+4g1QuXtxovyv5Mav+mAhgGjOcGQW4q17FSBtzXZQo +-> ssh-ed25519 NoSl6Q iKPipXfIGWxUobXF/9CSRhc/zKgmKKWWZhDTDgX0jWA +LB4TFCdbEG0VToYzTWdFedd0duF5PKlCnpBs4nBbLAQ +--- D7VE3Mwgx9ehk5rNuHm62S5ggQBm9wJodZa61jLEVsY +8ÔîÐÄÒë`S«šéT¯Fª9&(½Ú²Á‡¸=~Ïáš­où».X޶ž7ðV&'Øøå ÒÔ¸‹%ã î \ No newline at end of file