refactor(base profile): move base profile configurations into modules

This commit is contained in:
ooks-io 2024-04-01 15:00:37 +13:00
parent 51e9493c62
commit 692b18c0f6
7 changed files with 124 additions and 63 deletions

View file

@ -0,0 +1,26 @@
{ lib, config, pkgs, outputs, ... }:
let
cfg = config.homeModules.config.nix;
in
{
config = lib.mkIf cfg.enable {
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false;
};
};
};
}