nix run --override-input nixos-unstable ~/src/nixpkgs .#microvm-update-hedgedoc does not consider the override-input and uses the normal one which is inconvenient for testing.
``nix run --override-input nixos-unstable ~/src/nixpkgs .#microvm-update-hedgedoc`` does not consider the override-input and uses the normal one which is inconvenient for testing.
$ nix run --override-input nixos-unstable-sandro ~/src/nixpkgs .#microvm-update-auth
warning: not writing modified lock file of flake 'git+file:///home/sandro/src/gitea.c3d2.de/c3d2/nix-config':
• Updated input 'nixos-unstable-sandro':
'github:SuperSandro2000/nixpkgs/7db696ca0cb9d2afbbb0d5a3eda6b672b3cb823d' (2022-07-26)
→ 'git+file:///home/sandro/src/nixpkgs?ref=refs%2fheads%2fnixos-unstable&rev=e51a504060290a93df51229c5cebd225757b048c' (2022-07-28)
copying path '/nix/store/xz1w9hrgf20b8rs1gkihr8m14zri1rv9-source' from 'https://cache.nixos.org'...
trace: warning: The option `nix.binaryCaches' defined in `/nix/store/9vvph3a8w239kg25kniyal81fhicjzhd-source/config/c3d2.nix' has been renamed to `nix.settings.substituters'.
trace: warning: The option `nix.binaryCachePublicKeys' defined in `/nix/store/9vvph3a8w239kg25kniyal81fhicjzhd-source/config/c3d2.nix' has been renamed to `nix.settings.trusted-public-keys'.
trace: warning: The option `nix.autoOptimiseStore' defined in `/nix/store/9vvph3a8w239kg25kniyal81fhicjzhd-source/config/c3d2.nix' has been renamed to `nix.settings.auto-optimise-store'.
[ble: elapsed 119.558s (CPU 17.4%)] nix run --override-input nixos-unstable-sandro ~/src/nixpkgs .#microvm-update-auth
$ ssh auth
[root@auth:~]# ls
[root@auth:~]# cat /etc/os-release
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="22.11.20220726.7db696c"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 22.11 (Raccoon)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="22.11 (Raccoon)"
VERSION_CODENAME=raccoon
VERSION_ID="22.11"
```ShellSession
$ nix run --override-input nixos-unstable-sandro ~/src/nixpkgs .#microvm-update-auth
warning: not writing modified lock file of flake 'git+file:///home/sandro/src/gitea.c3d2.de/c3d2/nix-config':
• Updated input 'nixos-unstable-sandro':
'github:SuperSandro2000/nixpkgs/7db696ca0cb9d2afbbb0d5a3eda6b672b3cb823d' (2022-07-26)
→ 'git+file:///home/sandro/src/nixpkgs?ref=refs%2fheads%2fnixos-unstable&rev=e51a504060290a93df51229c5cebd225757b048c' (2022-07-28)
copying path '/nix/store/xz1w9hrgf20b8rs1gkihr8m14zri1rv9-source' from 'https://cache.nixos.org'...
trace: warning: The option `nix.binaryCaches' defined in `/nix/store/9vvph3a8w239kg25kniyal81fhicjzhd-source/config/c3d2.nix' has been renamed to `nix.settings.substituters'.
trace: warning: The option `nix.binaryCachePublicKeys' defined in `/nix/store/9vvph3a8w239kg25kniyal81fhicjzhd-source/config/c3d2.nix' has been renamed to `nix.settings.trusted-public-keys'.
trace: warning: The option `nix.autoOptimiseStore' defined in `/nix/store/9vvph3a8w239kg25kniyal81fhicjzhd-source/config/c3d2.nix' has been renamed to `nix.settings.auto-optimise-store'.
[ble: elapsed 119.558s (CPU 17.4%)] nix run --override-input nixos-unstable-sandro ~/src/nixpkgs .#microvm-update-auth
$ ssh auth
[root@auth:~]# ls
[root@auth:~]# cat /etc/os-release
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="22.11.20220726.7db696c"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 22.11 (Raccoon)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="22.11 (Raccoon)"
VERSION_CODENAME=raccoon
VERSION_ID="22.11"
```
$ nix run --override-input nixos-unstable-sandro ~/src/nixpkgs .#microvm-update-auth-local
warning: not writing modified lock file of flake 'git+file:///home/sandro/src/gitea.c3d2.de/c3d2/nix-config':
• Updated input 'nixos-unstable-sandro':
'github:SuperSandro2000/nixpkgs/7db696ca0cb9d2afbbb0d5a3eda6b672b3cb823d' (2022-07-26)
→ 'git+file:///home/sandro/src/nixpkgs?ref=refs%2fheads%2fnixos-unstable&rev=e51a504060290a93df51229c5cebd225757b048c' (2022-07-28)
error: flake 'git+file:///home/sandro/src/gitea.c3d2.de/c3d2/nix-config' does not provide attribute 'apps.x86_64-linux.microvm-update-auth-local', 'packages.x86_64-linux.microvm-update-auth-local', 'legacyPackages.x86_64-linux.microvm-update-auth-local' or 'microvm-update-auth-local'
local does not work for microvms
```
$ nix run --override-input nixos-unstable-sandro ~/src/nixpkgs .#microvm-update-auth-local
warning: not writing modified lock file of flake 'git+file:///home/sandro/src/gitea.c3d2.de/c3d2/nix-config':
• Updated input 'nixos-unstable-sandro':
'github:SuperSandro2000/nixpkgs/7db696ca0cb9d2afbbb0d5a3eda6b672b3cb823d' (2022-07-26)
→ 'git+file:///home/sandro/src/nixpkgs?ref=refs%2fheads%2fnixos-unstable&rev=e51a504060290a93df51229c5cebd225757b048c' (2022-07-28)
error: flake 'git+file:///home/sandro/src/gitea.c3d2.de/c3d2/nix-config' does not provide attribute 'apps.x86_64-linux.microvm-update-auth-local', 'packages.x86_64-linux.microvm-update-auth-local', 'legacyPackages.x86_64-linux.microvm-update-auth-local' or 'microvm-update-auth-local'
```
sandro
changed title from nix run .#microvm-update-* ignored override-input to nix run .#microvm-update-* ignores override-input5 months ago
nix run --override-input nixos-unstable ~/src/nixpkgs .#microvm-update-hedgedoc
does not consider the override-input and uses the normal one which is inconvenient for testing.That's exactly the reason why I changed the deployment scripts to copy every input. I wonder what is missing...
FYI: it should work with
.#microvm-update-hedgedoc-local
, right?local does not work for microvms
nix run .#microvm-update-* ignored override-inputto nix run .#microvm-update-* ignores override-input 5 months agoFixed that already a few weeks ago