!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

879 Members
175 Servers

Load older messages


SenderMessageTime
13 Jul 2023
@moots:matrix.orgmootsworking slowly my way up to a full mono repo managed with josh project akin to what the people at the virus lounge did (https://code.tvl.fyi/about/README.md), just for my own clusters of hardware and friend group15:17:53
@moots:matrix.orgmootshmm maybe i could use nix run to decrypt the secrets locally, but i think then i have to find a way to add the secrets to the flake since they invisible to git and flakes afaik usually only respect files in the git repo 15:23:12
@moots:matrix.orgmoots * hmm maybe i could use nix run to decrypt the secrets locally as stop gap, but i think then i have to find a way to add the secrets to the flake since they invisible to git and flakes afaik usually only respect files in the git repo 15:23:21
@thebaboon:matrix.orgThe Baboon joined the room.17:05:16
@zuckerberg:neet.spacezuckerberg changed their profile picture.22:02:55
14 Jul 2023
@arianvp:matrix.org@arianvp:matrix.org

I have

  nixConfig = {
    substituters = [ "https://cache.garnix.io" ];
    trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ];
  };

in my flake and I accepted the options

but nix show-config doesnt show the settings in the shell
:

(nix:shell-env) Arians-MacBook-Pro:server-optimised-nixos arian$ nix show-config
accept-flake-config = false
access-tokens = 
allow-dirty = true
allow-import-from-derivation = true
allow-symlinked-store = false
allow-unsafe-native-code-during-evaluation = false
allowed-impure-host-deps = /System/Library /bin/sh /dev /usr/lib
allowed-uris = 
allowed-users = *
auto-allocate-uids = false
auto-optimise-store = true
bash-prompt = 
bash-prompt-prefix = (nix:$name)\040
bash-prompt-suffix = 
build-hook = /nix/var/nix/profiles/default/bin/nix __build-remote
build-poll-interval = 5
build-users-group = nixbld
builders = @/etc/nix/machines
builders-use-substitutes = false
commit-lockfile-summary = 
compress-build-log = true
connect-timeout = 0
cores = 12
darwin-log-sandbox-violations = false
diff-hook = 
download-attempts = 5
download-speed = 0
eval-cache = true
experimental-features = flakes nix-command
extra-platforms = x86_64-darwin
fallback = false
flake-registry = https://channels.nixos.org/flake-registry.json
fsync-metadata = true
gc-reserved-space = 8388608
hashed-mirrors = 
http-connections = 25
http2 = true
id-count = 128
ignore-try = false
impersonate-linux-26 = false
keep-build-log = true
keep-derivations = true
keep-env-derivations = false
keep-failed = false
keep-going = false
keep-outputs = false
log-lines = 10
max-build-log-size = 0
max-free = 18446744073709551615
max-jobs = 1
max-silent-time = 0
min-free = 0
min-free-check-interval = 5
nar-buffer-size = 33554432
narinfo-cache-negative-ttl = 3600
narinfo-cache-positive-ttl = 2592000
netrc-file = /etc/nix/netrc
nix-path = /Users/arian/.nix-defexpr/channels nixpkgs=flake:nixpkgs
plugin-files = 
post-build-hook = 
pre-build-hook = 
preallocate-contents = false
print-missing = true
pure-eval = true
require-sigs = true
restrict-eval = false
run-diff-hook = false
sandbox = false
sandbox-fallback = true
sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /bin/bash /bin/sh /private/tmp /private/var/tmp /usr/lib
secret-key-files = 
show-trace = false
stalled-download-timeout = 300
start-id = 56930
store = auto
substitute = true
substituters = https://cache.nixos.org/
sync-before-registering = false
system = aarch64-darwin
system-features = benchmark big-parallel nixos-test
tarball-ttl = 3600
timeout = 0
trace-function-calls = false
trace-verbose = false
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-substituters = 
trusted-users = root arian
use-case-hack = true
use-registries = true
use-sqlite-wal = true
user-agent-suffix = 
warn-dirty = true

10:06:57
@arianvp:matrix.org@arianvp:matrix.orgwhat am I doing wrong?10:07:06
@lehmanator:gnulinux.club@lehmanator:gnulinux.club joined the room.18:42:50
@artturin:matrix.orgArtturin
In reply to @arianvp:matrix.org

I have

  nixConfig = {
    substituters = [ "https://cache.garnix.io" ];
    trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ];
  };

in my flake and I accepted the options

but nix show-config doesnt show the settings in the shell
:

(nix:shell-env) Arians-MacBook-Pro:server-optimised-nixos arian$ nix show-config
accept-flake-config = false
access-tokens = 
allow-dirty = true
allow-import-from-derivation = true
allow-symlinked-store = false
allow-unsafe-native-code-during-evaluation = false
allowed-impure-host-deps = /System/Library /bin/sh /dev /usr/lib
allowed-uris = 
allowed-users = *
auto-allocate-uids = false
auto-optimise-store = true
bash-prompt = 
bash-prompt-prefix = (nix:$name)\040
bash-prompt-suffix = 
build-hook = /nix/var/nix/profiles/default/bin/nix __build-remote
build-poll-interval = 5
build-users-group = nixbld
builders = @/etc/nix/machines
builders-use-substitutes = false
commit-lockfile-summary = 
compress-build-log = true
connect-timeout = 0
cores = 12
darwin-log-sandbox-violations = false
diff-hook = 
download-attempts = 5
download-speed = 0
eval-cache = true
experimental-features = flakes nix-command
extra-platforms = x86_64-darwin
fallback = false
flake-registry = https://channels.nixos.org/flake-registry.json
fsync-metadata = true
gc-reserved-space = 8388608
hashed-mirrors = 
http-connections = 25
http2 = true
id-count = 128
ignore-try = false
impersonate-linux-26 = false
keep-build-log = true
keep-derivations = true
keep-env-derivations = false
keep-failed = false
keep-going = false
keep-outputs = false
log-lines = 10
max-build-log-size = 0
max-free = 18446744073709551615
max-jobs = 1
max-silent-time = 0
min-free = 0
min-free-check-interval = 5
nar-buffer-size = 33554432
narinfo-cache-negative-ttl = 3600
narinfo-cache-positive-ttl = 2592000
netrc-file = /etc/nix/netrc
nix-path = /Users/arian/.nix-defexpr/channels nixpkgs=flake:nixpkgs
plugin-files = 
post-build-hook = 
pre-build-hook = 
preallocate-contents = false
print-missing = true
pure-eval = true
require-sigs = true
restrict-eval = false
run-diff-hook = false
sandbox = false
sandbox-fallback = true
sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /bin/bash /bin/sh /private/tmp /private/var/tmp /usr/lib
secret-key-files = 
show-trace = false
stalled-download-timeout = 300
start-id = 56930
store = auto
substitute = true
substituters = https://cache.nixos.org/
sync-before-registering = false
system = aarch64-darwin
system-features = benchmark big-parallel nixos-test
tarball-ttl = 3600
timeout = 0
trace-function-calls = false
trace-verbose = false
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-substituters = 
trusted-users = root arian
use-case-hack = true
use-registries = true
use-sqlite-wal = true
user-agent-suffix = 
warn-dirty = true

They're used only in the flake not in the shell IIRC
23:03:26
@artturin:matrix.orgArtturinYep https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html?highlight=Nixconfig#flake-format23:05:10
15 Jul 2023
@ek_is_anika:tchncs.de@ek_is_anika:tchncs.de joined the room.12:19:52
@2xsaiko:tchncs.de@2xsaiko:tchncs.de changed their profile picture.18:53:19
16 Jul 2023
@windchimesofmagic:matrix.org@windchimesofmagic:matrix.org joined the room.02:36:11
@ek_is_anika:tchncs.de@ek_is_anika:tchncs.de changed their display name from Anika (not new to matrix btw) to Anika (prev. known as Hayley).19:07:41
18 Jul 2023
@antimimonpneumatos:matrix.organtimimonpneumatos joined the room.06:55:03
19 Jul 2023
@ek_is_anika:tchncs.de@ek_is_anika:tchncs.de changed their display name from Anika (prev. known as Hayley) to Anika.12:56:03
20 Jul 2023
@carlthome:matrix.orgCarl Thomé joined the room.22:09:03
23 Jul 2023
@el_zarco:matrix.orgzarco changed their display name from El_Zarco to Zarco.01:07:33
@el_zarco:matrix.orgzarco changed their display name from Zarco to zarco.02:46:22
@docsunset:matrix.orgdocsunset joined the room.16:43:24
24 Jul 2023
@catenane:matrix.orgcatenane joined the room.03:42:01
25 Jul 2023
@eigrp:matrix.orgeric joined the room.01:21:17
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.01:56:54
@moots:matrix.orgmootshow do i crossbuild a flake nixosconfiguration to aarch64 from x86 on none nixos? 16:41:18
@moots:matrix.orgmoots

 flake.nixosConfigurations."naked-oci" = withSystem "aarch64-linux" (ctx@{ pkgs,config, inputs', ... }:
    inputs.nixpkgs.lib.nixosSystem {
      # Expose `packages`, `inputs` and `inputs'` as module arguments.
      # Use specialArgs permits use in `imports`.
      # Note: if you publish modules for reuse, do not rely on specialArgs, but
      # on the flake scope instead. See also https://flake.parts/define-module-in-separate-file.html
      specialArgs = {
        packages = config.packages;
        inherit inputs inputs';
        pkgs = pkgs.pkgsCross.aarch64-multiplatform;
      };
      modules = [
        # This module could be moved into a separate file; otherwise we might
        # as well have used ctx.config.packages directly.
        ({ config, lib, packages, pkgs, ... }: {
          imports = [
    inputs.disko.nixosModules.disko
  ];
nixpkgs.hostPlatform = "aarch64-linux";

...

tried like that error: a 'aarch64-linux' with features {} is required to build '/nix/store/8zwd7397wqs1dsw6j3v11jkfaivlspc3-aarch64-unknown-linux-gnu-binutils-wrapper-2.40.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range}

16:42:26
@ulli:hrnz.li@ulli:hrnz.lijust like you would to without flakes. Flakes do nothing for cross-compilation16:42:54
@ncfavier:matrix.orgncfavier changed their profile picture.16:43:10
@ulli:hrnz.li@ulli:hrnz.li(i.e. use a nixpkgs instantiated with the correct build and host platforms)16:43:57
@ulli:hrnz.li@ulli:hrnz.liif you don't pass pkgs to nixosSystem, you can use the nixpkgs nixos module for that16:44:15
@ulli:hrnz.li@ulli:hrnz.liif you do pass pkgs to nixosSystem, this pkgs needs to be correctly instantiated16:44:34

Show newer messages


Back to Room ListRoom Version: 6