nixos: temp nix_path fix

This commit is contained in:
ooks-io 2024-11-04 19:51:23 +11:00
parent 201041b835
commit 71e0903e63

View file

@ -7,8 +7,11 @@
... ...
}: let }: let
inherit (builtins) attrValues; inherit (builtins) attrValues;
inherit (lib) mkIf mapAttrsToList; inherit (lib) mkIf mapAttrs mapAttrsToList filterAttrs isType;
inherit (config.ooknet.host) role admin; inherit (config.ooknet.host) role admin;
flakeInputs = filterAttrs (_: v: isType "flake" v) inputs;
paths = { paths = {
FLAKE = "/home/${admin.name}/.config/ooknet"; FLAKE = "/home/${admin.name}/.config/ooknet";
WEBSITE = "${paths.FLAKE}/outputs/pkgs/website"; WEBSITE = "${paths.FLAKE}/outputs/pkgs/website";
@ -35,11 +38,9 @@ in {
dates = "Sun *-*-* 14:00"; dates = "Sun *-*-* 14:00";
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
registry = { # from github:fufexan
nixpkgs.flake = inputs.nixpkgs; registry = mapAttrs (_: v: {flake = v;}) flakeInputs;
default.flake = inputs.nixpkgs; nixPath = mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
};
nixPath = mapAttrsToList (name: _: "${name}=${name}") config.nix.registry;
settings = { settings = {
trusted-users = ["@wheel" "root" "builder"]; trusted-users = ["@wheel" "root" "builder"];
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];