| 3 Feb 2022 |
Enzime | nix shell github:NixOS/nix suffices | 01:32:29 |
cleverca22 | upstream master? | 01:32:29 |
Enzime | yeah | 01:32:36 |
mrhedgehog0(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 |
mrhedgehog0(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 |
mrhedgehog0(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 | 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 | mrhedgehog0(they/them): go a link or paste to a full flake? | 03:46:11 |
Enzime | fairly sure the error is because he did system = "x86_64-linux;" inside a NixOS module | 03:46:48 |
cleverca22 | 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 | 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 | its not clear what should be edited, and how i can override an input 3 layers deep | 08:12:45 |
cleverca22 | and yeah, it is at least deterministic now | 08:12:59 |
balsoft | Oh | 08:13:30 |
balsoft | Wait | 08:13:33 |
balsoft | Doesn't quite look right | 08:13:40 |
balsoft | Could you share the flake? | 08:13:52 |
balsoft | At least what membench looks like | 08:14:07 |
cleverca22 | balsoft: https://github.com/input-output-hk/cardano-memory-benchmark/blob/master/flake.nix | 08:15:21 |
balsoft | Oh ok, so it looks ok | 08:16:49 |
balsoft | I'll look into it when I'm back home | 08:17:03 |
cleverca22 | balsoft: is it possible to override the input of an input? | 08:17:48 |
cleverca22 | like how you do in inputs.foo.inputs.bar.url? | 08:18:21 |
balsoft | Yes | 08:21:13 |
balsoft | Just layer more .inputs | 08:21:24 |
cleverca22 | i tried that before | 08:21:53 |
cleverca22 | and it complained about things not being in the flake registery | 08:22:00 |
cleverca22 | tries again | 08:22:20 |
cleverca22 | 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 | error: cannot find flake 'flake:cardano-node-snapshot' in the flake registries | 08:23:08 |