-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't incorporate "aarch64-sd-aarch64" image for existing system #126
Comments
I thought I was clever and thought I'd do the same.
{pkgs, ...}: {
imports = [../../aarch64-linux/nas];
} but
it works if I giver it different names
|
I use nixos-generators without extra abstractions. Works well. systems.hosts.nas.modules = with inputs; [
nixos-generators.nixosModules.all-formats
];
|
I believe this is a shortcoming of flake-utils-plus. The hosts we provide can be set to output to different places, but going in they must be given as a single flat attribute set. This means that names cannot be reused for two different hosts. |
Hey, today I tried to add a SD card image (nixos-generators) for an existing system (Raspberry Pi 3B+) to my snowfall-lib flake.
After creating the subfolders (
systems/aarch64-sd-aarch64/system-name
) I noticed that the normalnixosConfiguration
for this system vanished, somehow, and so I couldn't usenixos-rebuild
as usual (to remote x-compiling onx86_46
foraarch64
and deploy). But at the same state I could build thesd-aarch64Configurations
(for this system).FYI: I redacted some parts with
[…]
(and changed the system name tosystem-name
).Before
Here everything is fine (and the last error is okay, because there still is no SD card image, it's just for illustration).
After
As you can see here, the new SD image is building, but at
nix flake show
thenixosConfigurations
>system-name
is missing (and I get the error atnixos-rebuild
).May someone have a look? (I don't know if my relative simple flake is the problem, or if it's a problem with snowflake.)
Thanks a lot in advance and KR
BTW/FYI: At the end I currently have the goal to switch my running RPi3 system to disko. ATM it runs fine and I can
nixos-rebuild
, but I don't know how to deploy. So a SD image seemed a possible step, also if I wanna have this functionality in any case/later on …The text was updated successfully, but these errors were encountered: