mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
31 lines
742 B
Nix
31 lines
742 B
Nix
{ self, lib, inputs, ... }:
|
|
{
|
|
nix =
|
|
let
|
|
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
|
in
|
|
{
|
|
settings = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
"ca-derivations"
|
|
];
|
|
trusted-users = [ "swarsel" ];
|
|
flake-registry = "";
|
|
warn-dirty = false;
|
|
};
|
|
channel.enable = false;
|
|
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
|
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
|
};
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = inputs; # used mainly for inputs.self
|
|
};
|
|
|
|
system.stateVersion = lib.mkDefault "23.05";
|
|
|
|
}
|