mitchellh / nixos-config

My NixOS configurations.
https://twitter.com/mitchellh/status/1346136404682625024
MIT License
1.93k stars 191 forks source link

build-vm fails #39

Closed jalbstmeijer closed 4 months ago

jalbstmeijer commented 4 months ago

Hi,

Wanted to play around with your configs in a vm to learn from them. But it get build errors trying, am I missing something?

# nixos-rebuild build-vm --flake '.#'
building the system configuration...
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'nixos-vm'
         whose name attribute is located at /nix/store/cb1gs888vfqxawvc65q1dk6jzbayh3wz-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'nixos-vm'

         at /nix/store/cb1gs888vfqxawvc65q1dk6jzbayh3wz-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attempt to call something which is not a function but a set

       at /nix/store/4k7qs5lmijldgris651af5sis8pv56ck-source/modules/filesystem/encryption.nix:107:39:

          106|       availableKernelModules = mkIf cfg.ssh.enable cfg.ssh.networkModule;
          107|       luks.forceLuksSupportInInitrd = mkIf cfg.ssh.enable mkForce true;
             |                                       ^
          108|       luks.devices = {