1
0
Fork 0
4 NixOS adventures
finkregh edited this page 2023-12-19 18:48:26 +00:00

flake.nix v1

{
  description = "A template that shows all standard flake outputs";

  inputs = {
    nixpkgsGitHubBranch.url = "github:NixOS/nixpkgs/nixos-23.11";
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
    nix-bundle.url = "github:NixOS/bundlers";
    home-manager = {
      url = "github:nix-community/home-manager/release-23.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, ... }@inputs: {
    nixosConfigurations = {
      "nixos" = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          # Import the configuration.nix here, so that the
          # old configuration file can still take effect.
          # Note: configuration.nix itself is also a Nixpkgs Module,
          ./configuration.nix
        ];
      };
    };
  };
}

leads to

error:
       … while calling the 'seq' builtin

         at /nix/store/gkrvrwg6k60ykz4asv35bdj1wz70ik2l-source/lib/modules.nix:320:18:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          321|         _module = checked (config._module);

       … while evaluating a branch condition

         at /nix/store/gkrvrwg6k60ykz4asv35bdj1wz70ik2l-source/lib/modules.nix:261:9:

          260|       checkUnmatched =
          261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
             |         ^
          262|           let

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

       error: cannot look up '<nixos-wsl/modules>' in pure evaluation mode (use '--impure' to override)

       at «none»:0: (source not available)