Expose self as a flake
This commit is contained in:
parent
4ae7aa9efa
commit
c19c3b8056
@ -82,7 +82,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, nix, ... }@inputs: {
|
outputs = { nixpkgs, nix, self, ... }@inputs: {
|
||||||
nixosConfigurations = with nixpkgs.lib;
|
nixosConfigurations = with nixpkgs.lib;
|
||||||
let
|
let
|
||||||
hosts = map (fname: builtins.head (builtins.match "(.*)\\.nix" fname))
|
hosts = map (fname: builtins.head (builtins.match "(.*)\\.nix" fname))
|
||||||
@ -94,5 +94,7 @@
|
|||||||
specialArgs = { inherit inputs name; };
|
specialArgs = { inherit inputs name; };
|
||||||
};
|
};
|
||||||
in genAttrs hosts mkHost;
|
in genAttrs hosts mkHost;
|
||||||
|
legacyPackages.x86_64-linux =
|
||||||
|
(builtins.head (builtins.attrValues self.nixosConfigurations)).pkgs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,8 @@ in {
|
|||||||
|
|
||||||
inherit (old) mautrix-telegram;
|
inherit (old) mautrix-telegram;
|
||||||
|
|
||||||
|
inherit old;
|
||||||
|
|
||||||
yt-utilities =
|
yt-utilities =
|
||||||
import (self.fetchgit config.secrets.yt-utilities.source) { };
|
import (self.fetchgit config.secrets.yt-utilities.source) { };
|
||||||
|
|
||||||
@ -56,10 +58,7 @@ in {
|
|||||||
];
|
];
|
||||||
binaryCaches = [ "https://cache.nixos.org" "https://cache.balsoft.ru" ];
|
binaryCaches = [ "https://cache.nixos.org" "https://cache.balsoft.ru" ];
|
||||||
|
|
||||||
registry.nixpkgs = {
|
registry.self.flake = inputs.self;
|
||||||
from = { id = "nixpkgs"; type = "indirect"; };
|
|
||||||
flake = inputs.nixpkgs;
|
|
||||||
};
|
|
||||||
|
|
||||||
trustedUsers = [ "root" "balsoft" "@wheel" ];
|
trustedUsers = [ "root" "balsoft" "@wheel" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user