nix run .#microvm-update-* ignores override-input #38

Closed
opened 7 months ago by sandro · 5 comments
Owner

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.
astro was assigned by sandro 7 months ago
astro commented 6 months ago
Owner

That's exactly the reason why I changed the deployment scripts to copy every input. I wonder what is missing...

That's exactly the reason why I changed the deployment scripts to copy every input. I wonder what is missing...
astro commented 6 months ago
Owner

FYI: it should work with .#microvm-update-hedgedoc-local, right?

FYI: it should work with `.#microvm-update-hedgedoc-local`, right?
Poster
Owner
 $ 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" ```
Poster
Owner

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'
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-input 5 months ago
sandro commented 1 week ago
Poster
Owner

Fixed that already a few weeks ago

Fixed that already a few weeks ago
sandro closed this issue 1 week ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: c3d2/nix-config#38
Loading…
There is no content yet.