fixed nix-darwin building

This commit is contained in:
Leyla Becker 2024-11-25 18:28:55 -06:00
parent 0d0443a02a
commit 5f21fd43ff
14 changed files with 201 additions and 105 deletions

View file

@ -0,0 +1,26 @@
{
lib,
pkgs,
config,
inputs,
...
}: {
options.host.nix-development.enable = lib.mkEnableOption "should desktop configuration be enabled";
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 language server
nil
# nix formatter
alejandra
];
})
];
}