summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-18 05:13:27 -0500
committerseth <[email protected]>2023-02-18 05:13:27 -0500
commit1d7b04a71c7222153ffa9cd48f73b51ea72204d1 (patch)
tree3d794209be0e2311dc76337c09c2cb39c52f6afb /flake.nix
parent8a8059d9889afcbcd8a133b0b186e3a97ce7ac23 (diff)
major refactor
- `mkHost` now accepts an optional `specialArgs` argument to be passed to `nixosSystem()` - the `modules` argument for `mkHMUser` is now optional
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix24
1 files changed, 13 insertions, 11 deletions
diff --git a/flake.nix b/flake.nix
index 2a561d2..45ac82f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -26,11 +26,7 @@
username = "seth";
stateVersion = "23.05";
channel = nixpkgsUnstable;
- modules = [
- ({config, ...}: {
- config.seth.standalone = true;
- })
- ];
+ modules = [];
};
};
@@ -45,7 +41,10 @@
./users/seth
];
-
+ specialArgs = {
+ desktop = "gnome";
+ wsl = false;
+ };
version = "23.05";
pkgs = nixpkgsUnstable;
})
@@ -54,8 +53,7 @@
modules = [
nixos-wsl.nixosModules.wsl
- ({lib, ...}: {
- environment.noXlibs = lib.mkForce false;
+ {
wsl = {
enable = true;
defaultUser = "seth";
@@ -64,12 +62,16 @@
startMenuLaunchers = false;
interop.includePath = false;
};
- })
+ }
./users/seth
];
-
- pkgs = nixpkgs;
+ specialArgs = {
+ desktop = "";
+ wsl = true;
+ };
+ version = "23.05";
+ pkgs = nixpkgsUnstable;
});
};
}