mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
refactor: use inputs.self instead of rel. paths
This commit is contained in:
parent
83bc6af1f6
commit
33046cb4a3
19 changed files with 1067 additions and 1711 deletions
31
profiles/common/nixos/settings.nix
Normal file
31
profiles/common/nixos/settings.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ 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";
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue