Remove `isWSL` and its related option module!

This commit is contained in:
Whovian NTSN 2024-06-12 03:10:07 -04:00
parent c440848d79
commit da7cd843b3
2 changed files with 2 additions and 18 deletions

View File

@ -90,15 +90,6 @@
inherit (import ./system/sshKeys.nix) mySSHKeys;
myOptions = { lib, ... }: {
options = {
isWSL = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
};
in
{
# Notes
@ -118,7 +109,6 @@
nixos-wsl = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
myOptions
./system/nixos-wsl/configuration.nix
./system/dotnet_os_codename-workaround.nix
# Source of this fix file is
@ -132,8 +122,6 @@
{
system.configurationRevision = self.shortRev or self.dirtyShortRev or "dirty";
isWSL = true;
users.users.whovian = {
# extraGroups = myWslGroups;
# See above "let" expression

View File

@ -1,6 +1,6 @@
{
lib,
config,
options,
pkgs,
...
}:
@ -15,12 +15,8 @@
extraGroups = [
"wheel"
# Enable 'sudo' for the user.
] ++ lib.optionals (!config.isWSL) [
] ++ lib.optionals (!options ? wsl) [
# These are the groups for baremetal machines, or possibly VMs.
"networkmanager"
# Enable use of NetworkManager
"usb"
# This should enable access to usb devices.
"docker"
# Enable 'docker' for the user.
];