!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

906 Members
184 Servers

Load older messages


SenderMessageTime
3 Feb 2022
@enzime:nixos.devEnzimenix shell github:NixOS/nix suffices01:32:29
@cleverca22:matrix.orgcleverca22upstream master?01:32:29
@enzime:nixos.devEnzimeyeah01:32:36
@mrhedgehog:jupiterbroadcasting.commrhedgehog0(they/them) *

Hey! I'm trying to test my flake that contains a nixosConfiguration and it keeps failing with the error attribute 'fsNeededForBoot' missing. Is there something I'm missing in my fileSystems block?

fileSystems = {
  "/" = {
    fsType = "btrfs";
    device = "/dev/disk/by-label/nixos";
  };
  "/boot" = {
    fsType = "vfat";
    device = "/dev/disk/by-label/BOOT";
  };
};

Never mind. Figured this out.

02:45:17
@mrhedgehog:jupiterbroadcasting.commrhedgehog0(they/them)

I'm trying to set my system architecture in my flake, and it keeps erroring out with the message

error: You're trying to declare a value of type `string'
       rather than an attribute-set for the option
       `system'!

       This usually happens if `system' has option
       definitions inside that are not matched. Please check how to properly define
       this option by e.g. referring to `man 5 configuration.nix'!

I'm declaring system as

system = "x86_64-linux";

Is there something wrong with this? Every other flake.nix that I've looked at declares it like this.

02:47:31
@mrhedgehog:jupiterbroadcasting.commrhedgehog0(they/them) *

I'm trying to set my system architecture in my flake, and it keeps erroring out with the message

error: You're trying to declare a value of type `string'
       rather than an attribute-set for the option
       `system'!

       This usually happens if `system' has option
       definitions inside that are not matched. Please check how to properly define
       this option by e.g. referring to `man 5 configuration.nix'!

I'm declaring system as

system = "x86_64-linux";

Is there something wrong with this? Every other flake.nix that I've looked at declares it like this.

02:47:35
@enzime:nixos.devEnzime
In reply to @mrhedgehog:jupiterbroadcasting.com

I'm trying to set my system architecture in my flake, and it keeps erroring out with the message

error: You're trying to declare a value of type `string'
       rather than an attribute-set for the option
       `system'!

       This usually happens if `system' has option
       definitions inside that are not matched. Please check how to properly define
       this option by e.g. referring to `man 5 configuration.nix'!

I'm declaring system as

system = "x86_64-linux";

Is there something wrong with this? Every other flake.nix that I've looked at declares it like this.

your flake.nix should look something like:

nixpkgs.lib.nixosSystem {
  system = "x86_64-linux";
  ...
}
03:45:17
@tomberek:matrix.orgtomberek mrhedgehog0(they/them): go a link or paste to a full flake? 03:46:11
@enzime:nixos.devEnzime fairly sure the error is because he did system = "x86_64-linux;" inside a NixOS module 03:46:48
@cleverca22:matrix.orgcleverca22

balsoft: still fails on my end:

[clever@system76:~/iohk/test]$ nix shell github:NixOS/nix

[clever@system76:~/iohk/test]$ cd ../cardano-node

[clever@system76:~/iohk/cardano-node]$ nix flake show
warning: unknown experimental feature 'ca-references'
warning: Git tree '/home/clever/iohk/cardano-node' is dirty
error: input 'membench/cardano-node-snapshot/nixpkgs' follows a non-existent input 'membench/cardano-node-measured/haskellNix/nixpkgs-2105'
(use '--show-trace' to show detailed location information)
08:10:22
@balsoft:balsoft.rubalsoft
In reply to @cleverca22:matrix.org

balsoft: still fails on my end:

[clever@system76:~/iohk/test]$ nix shell github:NixOS/nix

[clever@system76:~/iohk/test]$ cd ../cardano-node

[clever@system76:~/iohk/cardano-node]$ nix flake show
warning: unknown experimental feature 'ca-references'
warning: Git tree '/home/clever/iohk/cardano-node' is dirty
error: input 'membench/cardano-node-snapshot/nixpkgs' follows a non-existent input 'membench/cardano-node-measured/haskellNix/nixpkgs-2105'
(use '--show-trace' to show detailed location information)
Well, at least it tries to look for the correct input now
08:12:16
@cleverca22:matrix.orgcleverca22its not clear what should be edited, and how i can override an input 3 layers deep08:12:45
@cleverca22:matrix.orgcleverca22and yeah, it is at least deterministic now08:12:59
@balsoft:balsoft.rubalsoftOh08:13:30
@balsoft:balsoft.rubalsoftWait08:13:33
@balsoft:balsoft.rubalsoftDoesn't quite look right08:13:40
@balsoft:balsoft.rubalsoftCould you share the flake?08:13:52
@balsoft:balsoft.rubalsoft At least what membench looks like 08:14:07
@cleverca22:matrix.orgcleverca22 balsoft: https://github.com/input-output-hk/cardano-memory-benchmark/blob/master/flake.nix 08:15:21
@balsoft:balsoft.rubalsoftOh ok, so it looks ok08:16:49
@balsoft:balsoft.rubalsoftI'll look into it when I'm back home08:17:03
@cleverca22:matrix.orgcleverca22 balsoft: is it possible to override the input of an input? 08:17:48
@cleverca22:matrix.orgcleverca22 like how you do in inputs.foo.inputs.bar.url? 08:18:21
@balsoft:balsoft.rubalsoftYes08:21:13
@balsoft:balsoft.rubalsoft Just layer more .inputs 08:21:24
@cleverca22:matrix.orgcleverca22i tried that before08:21:53
@cleverca22:matrix.orgcleverca22and it complained about things not being in the flake registery08:22:00
@cleverca22:matrix.orgcleverca22 tries again 08:22:20
@cleverca22:matrix.orgcleverca22
 16     membench = {
 17       url = "github:input-output-hk/cardano-memory-benchmark";
 18       inputs.cardano-node-measured.follows = "/";
 19       inputs.cardano-node-process.follows = "/";
 20       inputs.nixpkgs.follows = "nixpkgs";
 21       inputs.cardano-node-snapshot.inputs.nixpkgs.follows = "nixpkgs";
 22     };
08:23:01
@cleverca22:matrix.orgcleverca22 error: cannot find flake 'flake:cardano-node-snapshot' in the flake registries 08:23:08

There are no newer messages yet.


Back to Room ListRoom Version: 6