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 | |
| parent | cab61c714497d00a7d5b7c30f6813333e5801451 (diff) | |
fixup
| -rw-r--r-- | flake.nix | 9 | ||||
| -rw-r--r-- | ivi/default.nix (renamed from lib/default.nix) | 0 | ||||
| -rw-r--r-- | ivi/ivi.nix (renamed from lib/ivi.nix) | 5 |
3 files changed, 12 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: { diff --git a/lib/default.nix b/ivi/default.nix index 7b80611..7b80611 100644 --- a/lib/default.nix +++ b/ivi/default.nix diff --git a/lib/ivi.nix b/ivi/ivi.nix index 8fabf1b..f7cc0d0 100644 --- a/lib/ivi.nix +++ b/ivi/ivi.nix @@ -69,6 +69,11 @@ self: lib: with lib; let "email" ]; }; + wsl = { + profiles = [ + "core" + ]; + }; serber = { isDeployed = true; profiles = [ |
