added enables to modules and made base module that imports all other modules

This commit is contained in:
Leyla Becker 2024-11-24 14:17:32 -06:00
parent eaa19be741
commit bf0686a14b
7 changed files with 79 additions and 55 deletions

View file

@ -1,14 +1,25 @@
{
inputs,
lib,
config,
pkgs,
inputs,
...
}: {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
};
options.host.nix-development.enable = lib.mkEnableOption "should desktop configuration be enabled";
environment.systemPackages = with pkgs; [
# nix langauge server
nixd
config = lib.mkMerge [
{
host.nix-development.enable = lib.mkDefault true;
}
(lib.mkIf config.host.nix-development.enable {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
};
environment.systemPackages = with pkgs; [
# nix langauge server
nixd
];
})
];
}