summaryrefslogtreecommitdiff
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
parentcab61c714497d00a7d5b7c30f6813333e5801451 (diff)
fixup
-rw-r--r--flake.nix9
-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
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: {
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 = [