Compare commits

..

2 commits

Author SHA1 Message Date
boyreau
53aab70530 npins update 2026-11-07 19:18:49 +01:00
boyreau
5b038453d2 npins partial update + various fixes and improvements 2026-11-04 15:56:31 +01:00
6 changed files with 36 additions and 24 deletions

View file

@ -63,6 +63,12 @@ in
"/home/zo/dev" = { "/home/zo/dev" = {
enable = true; enable = true;
dest = "/tmp/backups/"; dest = "/tmp/backups/";
salvation.command = /* bash */ ''
SAVED_FILE="$(basename "$SRC")"
mv "$SRC" "/mfs/$SAVED_FILE";
HASH="$(${ipfs} files stat --hash "/$SAVED_FILE")"
${ipfs-cluster-ctl} pin add "$HASH";
'';
}; };
"/home/zo/Documents" = { "/home/zo/Documents" = {

View file

@ -45,8 +45,10 @@
fsType = "tmpfs"; fsType = "tmpfs";
options = [ options = [
"size=1G" "size=1G"
"mode=600" "mode=700"
"noexec" "noexec"
"uid=1000"
"gid=1000"
]; ];
}; };

View file

@ -1,7 +1,10 @@
{ {
# Classic deny all # Classic deny all
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ ]; allowedTCPPorts = [
allowedUDPPorts = [ ]; 49676
1716
];
allowedUDPPorts = [ 49676 ];
}; };
} }

View file

@ -6,12 +6,12 @@
}; };
nix.settings.substituters = [ nix.settings.substituters = [
"https://attic.xuyh0120.win/lantian" "https://cache.lantian.pub/lantian"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://cache.nixos.org/" "https://cache.nixos.org/"
]; ];
nix.settings.trusted-public-keys = [ nix.settings.trusted-public-keys = [
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" "lantian:WVGO7vsRMSEN+h7Lp7kv6SAmrkEXgUGbbXm7jMDjBuQ="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; ];
} }

View file

@ -9,9 +9,9 @@
}, },
"branch": "release-26.05", "branch": "release-26.05",
"submodules": false, "submodules": false,
"revision": "ec172013fa62135f58fb58dd17ae9651e8f39727", "revision": "24f2190587513b9c2f73db112a17844ae912d965",
"url": "https://github.com/nix-community/home-manager/archive/ec172013fa62135f58fb58dd17ae9651e8f39727.tar.gz", "url": "https://github.com/nix-community/home-manager/archive/24f2190587513b9c2f73db112a17844ae912d965.tar.gz",
"hash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=" "hash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0="
}, },
"jail.nix": { "jail.nix": {
"type": "Git", "type": "Git",
@ -36,10 +36,10 @@
"version_upper_bound": null, "version_upper_bound": null,
"release_prefix": null, "release_prefix": null,
"submodules": false, "submodules": false,
"version": "v1.1.0", "version": "v1.2.0",
"revision": "7c9a54a7f87b4539ddbd8bda09a8a5f5f9361aa9", "revision": "d4db37c6f22c63339562672babec51a8952f1325",
"url": "https://api.github.com/repos/nix-community/lanzaboote/tarball/refs/tags/v1.1.0", "url": "https://api.github.com/repos/nix-community/lanzaboote/tarball/refs/tags/v1.2.0",
"hash": "sha256-hqijVSEETttmo8Okql9/LG0Ua34hdciKW1a5zzlj8mU=" "hash": "sha256-sr4Kfp6yaXUeyKL6n0Y8/ElcR3momIRC20HFc+LF22s="
}, },
"nix-cachyos-kernel": { "nix-cachyos-kernel": {
"type": "Git", "type": "Git",
@ -50,9 +50,9 @@
}, },
"branch": "release", "branch": "release",
"submodules": false, "submodules": false,
"revision": "444d135dde71c1de547cf7bfd73e67145e67aebb", "revision": "f20c85dac2eef06564ebc27729264f4f75ae7e1c",
"url": "https://github.com/xddxdd/nix-cachyos-kernel/archive/444d135dde71c1de547cf7bfd73e67145e67aebb.tar.gz", "url": "https://github.com/xddxdd/nix-cachyos-kernel/archive/f20c85dac2eef06564ebc27729264f4f75ae7e1c.tar.gz",
"hash": "sha256-kY+k8kGBd8w4kxrw8IPzQGpnYZQV4mik2ZNHtGN0eHI=" "hash": "sha256-5LscvsaetrpuLTGJFU6zZ5n4m6aMJt2PELarem20IQo="
}, },
"nixpkgs-26.05": { "nixpkgs-26.05": {
"type": "Git", "type": "Git",
@ -63,9 +63,9 @@
}, },
"branch": "nixos-26.05", "branch": "nixos-26.05",
"submodules": false, "submodules": false,
"revision": "1bc55b9def8165e82073919945c3239903fe4dc2", "revision": "7dcdd87373d72e7a2173e4db02e20d3d7f495cfd",
"url": "https://github.com/nixos/nixpkgs/archive/1bc55b9def8165e82073919945c3239903fe4dc2.tar.gz", "url": "https://github.com/nixos/nixpkgs/archive/7dcdd87373d72e7a2173e4db02e20d3d7f495cfd.tar.gz",
"hash": "sha256-D2aaQetafdpHxbwA4ldAxs51UX0b11pXL+JL/5L8VrM=" "hash": "sha256-tItrb9M8eYA6WhFgmT9tpGKueri3+wRuVA952o/2xSU="
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"type": "Git", "type": "Git",
@ -76,9 +76,9 @@
}, },
"branch": "nixos-unstable", "branch": "nixos-unstable",
"submodules": false, "submodules": false,
"revision": "6774f7bc253789b113a4f39285dc0fa100abeacc", "revision": "1d060086d60cb76a40cf37109f979d88a5bd6396",
"url": "https://github.com/nixos/nixpkgs/archive/6774f7bc253789b113a4f39285dc0fa100abeacc.tar.gz", "url": "https://github.com/nixos/nixpkgs/archive/1d060086d60cb76a40cf37109f979d88a5bd6396.tar.gz",
"hash": "sha256-MYiI+CzL0tuWgRPjGsKCDHqYs2T3OzMlMQWOYWG0qso=" "hash": "sha256-jQp1wKvbwWdLBASTXkSi/VYmDJ5AbBi1WvcMt9HWJC8="
}, },
"sops-nix": { "sops-nix": {
"type": "Git", "type": "Git",
@ -89,9 +89,9 @@
}, },
"branch": "master", "branch": "master",
"submodules": false, "submodules": false,
"revision": "7214124c20c1542c90deb54af50e2f53ae02711f", "revision": "b18e01ce148eb3efff5de2f2d3181ca53b2b2a54",
"url": "https://github.com/Mic92/sops-nix/archive/7214124c20c1542c90deb54af50e2f53ae02711f.tar.gz", "url": "https://github.com/Mic92/sops-nix/archive/b18e01ce148eb3efff5de2f2d3181ca53b2b2a54.tar.gz",
"hash": "sha256-GKwH3zpy7tartuJMG0Rv/xUsdetG1QLmTVv8UKgJLmA=" "hash": "sha256-GoOvpdsjO5hqZuO6T6ok9u6sJEjO0iPli2zRr9oNUNw="
} }
}, },
"version": 7 "version": 7

View file

@ -31,6 +31,7 @@
dina-font dina-font
proggyfonts proggyfonts
font-awesome font-awesome
dejavu_fonts
]; ];
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";