nixos: temp nix_path fix
This commit is contained in:
parent
201041b835
commit
71e0903e63
1 changed files with 7 additions and 6 deletions
|
|
@ -7,8 +7,11 @@
|
|||
...
|
||||
}: let
|
||||
inherit (builtins) attrValues;
|
||||
inherit (lib) mkIf mapAttrsToList;
|
||||
inherit (lib) mkIf mapAttrs mapAttrsToList filterAttrs isType;
|
||||
inherit (config.ooknet.host) role admin;
|
||||
|
||||
flakeInputs = filterAttrs (_: v: isType "flake" v) inputs;
|
||||
|
||||
paths = {
|
||||
FLAKE = "/home/${admin.name}/.config/ooknet";
|
||||
WEBSITE = "${paths.FLAKE}/outputs/pkgs/website";
|
||||
|
|
@ -35,11 +38,9 @@ in {
|
|||
dates = "Sun *-*-* 14:00";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
registry = {
|
||||
nixpkgs.flake = inputs.nixpkgs;
|
||||
default.flake = inputs.nixpkgs;
|
||||
};
|
||||
nixPath = mapAttrsToList (name: _: "${name}=${name}") config.nix.registry;
|
||||
# from github:fufexan
|
||||
registry = mapAttrs (_: v: {flake = v;}) flakeInputs;
|
||||
nixPath = mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
||||
settings = {
|
||||
trusted-users = ["@wheel" "root" "builder"];
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue