1
Fork 0
This commit is contained in:
caem 2025-01-23 15:52:18 +01:00
parent aacae912d8
commit e1750c87f6
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 3 additions and 10 deletions

View file

@ -15,8 +15,7 @@
../modules/nixos/user/${user}.nix ../modules/nixos/user/${user}.nix
]; ];
specialArgs = { specialArgs = {
inherit inputs; inherit inputs lib;
inherit lib;
username = user; username = user;
cfgPath = ../.; cfgPath = ../.;
}; };

View file

@ -1,21 +1,17 @@
{ lib, inputs, cfgPath, ... }: { lib, inputs, cfgPath, ... }:
let let
/*
importOverlays = builtins.map importOverlays = builtins.map
(overlay: import overlay { inherit lib inputs; }) (overlay: import overlay { inherit lib inputs; })
(builtins.filter (builtins.filter
(file: builtins.match ".*\.nix" (builtins.toString file) != null) (file: builtins.match ".*\.nix" (builtins.toString file) != null)
(lib.filesystem.listFilesRecursive ../../../overlays)); (lib.filesystem.listFilesRecursive "${cfgPath}/overlays"));
*/
/* /*
importOverlays = importOverlays =
(builtins.filter (builtins.filter
(file: builtins.match ".*\.nix" (builtins.toString file) != null) (file: builtins.match ".*\.nix" (builtins.toString file) != null)
(lib.filesystem.listFilesRecursive ../../../overlays)); (lib.filesystem.listFilesRecursive ../../../overlays));
*/ */
c = builtins.trace "${cfgPath}/overlays" null;
a = builtins.trace (lib.filesystem.listFilesRecursive ./.) null;
in { in {
nix = { nix = {
settings = { settings = {
@ -28,13 +24,11 @@ in {
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
}; };
b = c;
d = a;
nixpkgs = { nixpkgs = {
config = { config = {
allowUnfree = true; allowUnfree = true;
}; };
hostPlatform = lib.mkDefault "x86_64-linux"; hostPlatform = lib.mkDefault "x86_64-linux";
overlays = []; overlays = builtins.trace importOverlays importOverlays;
}; };
} }