forked from jan-leila/nix-config
added enables to modules and made base module that imports all other modules
This commit is contained in:
parent
eaa19be741
commit
bf0686a14b
7 changed files with 79 additions and 55 deletions
|
@ -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
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue