diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-11-20 10:36:20 +0000 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-11-20 10:36:20 +0000 |
| commit | 228dfe4ab48689281ec5e603242e50d52330d568 (patch) | |
| tree | 724da9523ac1bc31d5e076883d21bc2446825fd8 /flake.nix | |
| parent | cab61c714497d00a7d5b7c30f6813333e5801451 (diff) | |
fixup
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -23,7 +23,7 @@ let system = "x86_64-linux"; pkgs = import nixpkgs {inherit system;}; - lib = (nixpkgs.lib.extend (_: _: home-manager.lib)).extend (import ./lib self); + lib = (nixpkgs.lib.extend (_: _: home-manager.lib)).extend (import ./ivi self); # Gets module from ./machines/ and uses the lib to define which other modules # the machine needs. @@ -31,7 +31,7 @@ let machine = ivi.machines.${name}; in - lib.nixosSystem { + nixosSystem { inherit lib system; specialArgs = {inherit machine inputs;}; modules = with lib; @@ -50,6 +50,11 @@ nixosConfigurations = with lib; mapAttrs mkSystem (modulesIn ./machines); + nixosConfigurations.wsl = modules: + nixosSystem "wsl" ({...}: { + imports = modules; + }); + deploy.nodes = mapAttrs (hostname: machine: { |
