[NixOS] Control what is enabled per machine with module options

This commit is contained in:
2023-08-20 04:25:58 -06:00
parent a50a05640f
commit 8638d05595
26 changed files with 126 additions and 271 deletions

View File

@@ -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;
};
}