Remove `isWSL` and its related option module!
This commit is contained in:
parent
c440848d79
commit
da7cd843b3
12
flake.nix
12
flake.nix
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue