nixcfg/home/common/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2024-10-10 14:52:28 +02:00
{
config,
lib,
outputs,
pkgs,
...
}: {
imports = builtins.attrValues outputs.homeManagerModules;
2024-08-28 15:35:11 +02:00
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.stable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
};
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = ["nix-command" "flakes"];
2024-08-28 15:35:11 +02:00
warn-dirty = false;
};
};
}