mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
project: rename self
flake input to config
This commit is contained in:
parent
934ecd0bd5
commit
8938c60ce7
14
flake.nix
14
flake.nix
@ -11,8 +11,18 @@
|
|||||||
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
({ config, lib, ... }: {
|
({ config, lib, pkgs, ... }: {
|
||||||
nix.registry = lib.mapAttrs (_: flake: { inherit flake; }) inputs;
|
# Setting each of the flake inputs as part of the system registry
|
||||||
|
# including our own flake which is just renamed from "self" to
|
||||||
|
# "config".
|
||||||
|
nix.registry =
|
||||||
|
lib.mapAttrs'
|
||||||
|
(name: flake:
|
||||||
|
let
|
||||||
|
name' = if (name == "self") then "config" else name;
|
||||||
|
in
|
||||||
|
lib.nameValuePair name' { inherit flake; })
|
||||||
|
inputs;
|
||||||
})
|
})
|
||||||
./hosts/desktop
|
./hosts/desktop
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user