!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

885 Members
179 Servers

Load older messages


SenderMessageTime
25 Jul 2023
@ulli:hrnz.li@ulli:hrnz.liI use https://git.hrnz.li/Ulli/nixos/src/branch/main/hosts/flake-module.nix#L104 and it works like a charm17:23:20
@2xsaiko:tchncs.de@2xsaiko:tchncs.deoh interesting, is there a reason to explicitly set config like that? I just have these for armv7l: https://git.dblsaiko.net/systems/tree/configurations/turris/default.nix#n3517:27:09
@moots:matrix.orgmoots
In reply to @ulli:hrnz.li
I use https://git.hrnz.li/Ulli/nixos/src/branch/main/hosts/flake-module.nix#L104 and it works like a charm
works i think
17:27:34
@2xsaiko:tchncs.de@2xsaiko:tchncs.deand I assume "doesn't work" means it doesn't try to cross-compile with just those? that's weird17:28:25
@moots:matrix.orgmoots
In reply to @ulli:hrnz.li
I use https://git.hrnz.li/Ulli/nixos/src/branch/main/hosts/flake-module.nix#L104 and it works like a charm
* works i think :)
17:27:36
@2xsaiko:tchncs.de@2xsaiko:tchncs.dewait, you're just calling nixpkgs.lib.nixosSystem yourself from what you sent, then this should have nothing to do with flake-parts17:31:17
@moots:matrix.orgmoots
In reply to @2xsaiko:tchncs.de
and I assume "doesn't work" means it doesn't try to cross-compile with just those? that's weird
i didnt had it as argument to the function, but as part of the configuration
17:30:00
@2xsaiko:tchncs.de@2xsaiko:tchncs.de I think you'll want to add inherit (pkgs) system; in your nixosSystem call though 17:31:53
@moots:matrix.orgmoots

like
had it like
{ nixpkgs.buildPlatform = "x86_64-linux";
nixpkgs.hostPlatform = "aarch64-linux";

Oracle Cloud uses EFI boot

boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

}

17:30:43
@moots:matrix.orgmoots *

like
had it like

{
  nixpkgs.buildPlatform = "x86\_64-linux";
nixpkgs.hostPlatform = "aarch64-linux";

# Oracle Cloud uses EFI boot

boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

}
17:30:53
@moots:matrix.orgmoots

not like

{  
  # Oracle Cloud uses EFI boot
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
} {nixpkgs.buildPlatform = "x86_64-linux";
  nixpkgs.hostPlatform = "aarch64-linux";
}
17:31:14
@moots:matrix.orgmootsyeah i was confused cause flake-parts withsystem sets smth for nixpkgs17:32:16
@moots:matrix.orgmootseither way it doesnt work for me rn :(17:32:25
@moots:matrix.orgmoots

error: builder for '/nix/store/cwjscarzmmrdhjbsqvwp21qxwnk2sr4q-aarch64-unknown-linux-gnueabihf-stage-static-gcc-12.2.0.drv' failed with exit code 2;
       last 10 log lines:
       > checking for O_CLOEXEC... yes
       > checking for AF_UNIX... yes
       > checking for AF_INET6... yes
       > checking for _LK_LOCK... no
       > checking if mkdir takes one argument... no
       > This target does not support --with-float.
17:32:37
@moots:matrix.orgmootswait my mistake17:33:14
@ulli:hrnz.li@ulli:hrnz.li
In reply to @2xsaiko:tchncs.de
oh interesting, is there a reason to explicitly set config like that? I just have these for armv7l: https://git.dblsaiko.net/systems/tree/configurations/turris/default.nix#n35
there isn't really a reason to do this, this is mostly just leftover from $experiments
17:39:36
@2xsaiko:tchncs.de@2xsaiko:tchncs.deah, okay :p17:40:56
@2xsaiko:tchncs.de@2xsaiko:tchncs.de
In reply to @moots:matrix.org

like
had it like

{
  nixpkgs.buildPlatform = "x86\_64-linux";
nixpkgs.hostPlatform = "aarch64-linux";

# Oracle Cloud uses EFI boot

boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

}
yeah, that's where it should go, these are configuration options
17:42:40
@2xsaiko:tchncs.de@2xsaiko:tchncs.de
In reply to @moots:matrix.org

error: builder for '/nix/store/cwjscarzmmrdhjbsqvwp21qxwnk2sr4q-aarch64-unknown-linux-gnueabihf-stage-static-gcc-12.2.0.drv' failed with exit code 2;
       last 10 log lines:
       > checking for O_CLOEXEC... yes
       > checking for AF_UNIX... yes
       > checking for AF_INET6... yes
       > checking for _LK_LOCK... no
       > checking if mkdir takes one argument... no
       > This target does not support --with-float.
and this looks like it's cross compiling but I think "stage" is the bootstrap gcc which is very strange, why is it not cached
17:44:00
@moots:matrix.orgmoots
In reply to @2xsaiko:tchncs.de
and this looks like it's cross compiling but I think "stage" is the bootstrap gcc which is very strange, why is it not cached
im back to the same issue as before
17:45:25
@ulli:hrnz.li@ulli:hrnz.li
In reply to @2xsaiko:tchncs.de
ah, okay :p
not specifying it is probably better as you cannot specify invalid target quartets
17:45:52
@moots:matrix.orgmootsbonks, head n suddenly it crossbuilds again :|17:46:11
@moots:matrix.orgmootsliterally just ran nix fmt17:46:18
@moots:matrix.orgmoots * literally just ran nix fmt, had error: a 'aarch64-linux' with features {} is required to build '/nix/store/jwjbb40ddsl8a7f335nz0h09a4inrdyj-mounts.sh.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range}17:46:32
@moots:matrix.orgmoots * literally just ran nix fmt, had error: a 'aarch64-linux' with features {} is required to build '/nix/store/jwjbb40ddsl8a7f335nz0h09a4inrdyj-mounts.sh.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range} as error 17:46:34
@ulli:hrnz.li@ulli:hrnz.li moots: are you trying to use aarch64-unknown-linu$-gnueabihf? 17:46:40
@ulli:hrnz.li@ulli:hrnz.libecause that is not a thing17:46:43
@moots:matrix.orgmoots system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu";17:46:50
@moots:matrix.orgmootsi think thats right im not sure17:46:59
@ulli:hrnz.li@ulli:hrnz.lithat should be fine17:47:17

Show newer messages


Back to Room ListRoom Version: 6