Compare commits

..

1 commit

Author SHA1 Message Date
26fd1e22fe
Add exec permission to mounted nix store from remote machine
Solves the error
```
[gonne@nodens:~]$ sudo nixos-install --flake 'git+https://gitea.mathebau.de/gonne/nixConfig?ref=updates#ghatanothoa'
building the flake in git+https://gitea.mathebau.de/gonne/nixConfig?ref=updates&rev=711f80c85e185ca9fe32a27492b5295f2ddc7a2f...
error: builder for '/nix/store/0iblfp7h8l97qflgcsv3kpnwvfzvr6bi-builder.pl.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/9nw8b61s8lfdn8fkabxhbz0s775gjhbr-bash-5.2p37/bin/bash': Permission denied
       For full logs, run 'nix log /nix/store/0iblfp7h8l97qflgcsv3kpnwvfzvr6bi-builder.pl.drv'.
error: builder for '/nix/store/ssy2yzclqcsddsmqw60yd7vwc7843fw3-daniel-authorized_keys.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/9nw8b61s8lfdn8fkabxhbz0s775gjhbr-bash-5.2p37/bin/bash': Permission denied
       For full logs, run 'nix log /nix/store/ssy2yzclqcsddsmqw60yd7vwc7843fw3-daniel-authorized_keys.drv'.
error: builder for '/nix/store/k4npfvmszrzr49yrm5k4hiz3p2c32jl7-etc-os-release.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/9nw8b61s8lfdn8fkabxhbz0s775gjhbr-bash-5.2p37/bin/bash': Permission denied
       For full logs, run 'nix log /nix/store/k4npfvmszrzr49yrm5k4hiz3p2c32jl7-etc-os-release.drv'.
error: builder for '/nix/store/s72czr6ba3kf87hahwmg5lvjd9dwnjnz-mounts.sh.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/9nw8b61s8lfdn8fkabxhbz0s775gjhbr-bash-5.2p37/bin/bash': Permission denied
       For full logs, run 'nix log /nix/store/s72czr6ba3kf87hahwmg5lvjd9dwnjnz-mounts.sh.drv'.
error: 1 dependencies of derivation '/nix/store/mm45kds7svlvi0w3fj33pfbcjbzcx2nl-nixos-system-ghatanothoa-25.05pre-git.drv' failed to build

[gonne@nodens:~]$

```
2025-04-22 09:58:32 +02:00
5 changed files with 14 additions and 13 deletions

View file

@ -63,7 +63,7 @@
overlays = [
(_: prev: {
inherit (self'.packages) alias-to-sieve; # add custom package to convert alias files to sieve scripts on the stalwart machine
stalwart-mail = assert lib.assertMsg (prev.stalwart-mail.version == "0.11.7") ''
stalwart-mail = assert lib.assertMsg (prev.stalwart-mail.version == "0.11.6-unstable-2025-02-04") ''
1. If the bug https://github.com/stalwartlabs/sieve/issues/11 is resolved to our satisfaction, try to remove this overlay.
2. Check whether sieve-rs recieved new updates that our patch needs to be rebased upon.
3. Check whether the sieve-rs patch below that exchanges the dependency needs updates.
@ -90,7 +90,7 @@
./patches/sieve-rs.patch
];
# Replace the string with `lib.fakeHash` after version changes in order to get the new hash value.
cargoHash = "sha256-fP5dyTmuwydPGCgpP6XtVFSHE0HwGfvw5UjwNz0R3ek=";
cargoHash = "sha256-0U0Z13a2vRxMFnaaHeXBjvYDjKStgqmuDboUVssVMQw=";
}
);
};

12
flake.lock generated
View file

@ -698,11 +698,11 @@
},
"nixpkgs_6": {
"locked": {
"lastModified": 1744932701,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
"lastModified": 1743827369,
"narHash": "sha256-rpqepOZ8Eo1zg+KJeWoq1HAOgoMCDloqv5r2EAa9TSA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
"rev": "42a1c966be226125b48c384171c44c651c236c22",
"type": "github"
},
"original": {
@ -849,11 +849,11 @@
]
},
"locked": {
"lastModified": 1744669848,
"narHash": "sha256-pXyanHLUzLNd3MX9vsWG+6Z2hTU8niyphWstYEP3/GU=",
"lastModified": 1743910657,
"narHash": "sha256-zr2jmWeWyhCD8WmO2aWov2g0WPPuZfcJDKzMJZYGq3Y=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "61154300d945f0b147b30d24ddcafa159148026a",
"rev": "523f58a4faff6c67f5f685bed33a7721e984c304",
"type": "github"
},
"original": {

View file

@ -51,6 +51,7 @@
"subvol=nix"
"users" # Allows any user to mount and unmount
"nofail" # Prevent system from failing if this drive doesn't mount
"exec" # needed for the nixos-install command
];
};

View file

@ -101,9 +101,9 @@ dependencies = [
[[package]]
name = "libc"
version = "0.2.172"
version = "0.2.171"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
[[package]]
name = "log"
@ -170,9 +170,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
version = "1.0.95"
version = "1.0.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
dependencies = [
"unicode-ident",
]

View file

@ -6,5 +6,5 @@ edition = "2021"
rust-version = "1.68.2"
[dependencies]
fqdn = {version = "0.4.6", features = ["domain-label-length-limited-to-63", "domain-name-without-special-chars"]}
fqdn = {version = "0.4.2", features = ["domain-label-length-limited-to-63", "domain-name-without-special-chars"]}
email-address-parser = "2.0.0"