dotfiles/nixos/nix.nix

37 lines
741 B
Nix
Raw Normal View History

{ inputs, specialArgs, config, ... }:
{
imports = [
inputs.home-manager.nixosModule
];
home-manager.extraSpecialArgs = {
nixos = {
inherit specialArgs config;
};
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
registry.nixpkgs.flake = inputs.nixpkgs;
settings = {
keep-outputs = true;
keep-derivations = true;
};
2023-08-19 16:47:14 -06:00
channel.enable = false;
nixPath = [
"nixpkgs=${inputs.nixpkgs.outPath}"
];
};
nixpkgs.overlays = with inputs; [
2023-08-05 01:30:28 -06:00
nix.overlays.default
(import ./overlay.nix)
];
# Allow all the things
nixpkgs.config.allowUnfree = true;
}