summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-11-20 10:36:20 +0000
committerMike Vink <mike1994vink@gmail.com>2023-11-20 10:36:20 +0000
commit228dfe4ab48689281ec5e603242e50d52330d568 (patch)
tree724da9523ac1bc31d5e076883d21bc2446825fd8 /flake.nix
parentcab61c714497d00a7d5b7c30f6813333e5801451 (diff)
fixup
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index ea6cb06..6c6f0e7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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: {