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

Closed
opened 2022-07-27 19:44:38 +02:00 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 2022-07-27 19:44:44 +02:00
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...
Owner

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

FYI: it should work with `.#microvm-update-hedgedoc-local`, right?
Author
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" ```
Author
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 2022-09-01 22:00:57 +02:00
Author
Owner

Fixed that already a few weeks ago

Fixed that already a few weeks ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: c3d2/nix-config#38
No description provided.