[NixOS] Control what is enabled per machine with module options
This commit is contained in:
@@ -1,31 +1,18 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
{ config, inputs, pkgs, makeEnable, ... }:
|
||||
makeEnable config "modules.wsl" false {
|
||||
imports = [
|
||||
inputs.nixos-wsl.nixosModules.wsl
|
||||
./ssh.nix
|
||||
./environment.nix
|
||||
./essential.nix
|
||||
./fonts.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
./code.nix
|
||||
];
|
||||
|
||||
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
||||
|
||||
environment.variables = {
|
||||
SHELL = "${pkgs.zsh}/bin/zsh";
|
||||
};
|
||||
modules.base.enable = false;
|
||||
modules.desktop.enable = false;
|
||||
modules.xmonad.enable = false;
|
||||
|
||||
wsl = {
|
||||
enable = true;
|
||||
automountPath = "/mnt";
|
||||
startMenuLaunchers = true;
|
||||
nativeSystemd = true;
|
||||
|
||||
docker-native.enable = true;
|
||||
|
||||
# Enable integration with Docker Desktop (needs to be installed)
|
||||
# docker-desktop.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user