mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 18:47:44 +00:00
flake: use const more
This commit is contained in:
parent
86f136d9fd
commit
c9fba65644
1 changed files with 2 additions and 2 deletions
|
@ -88,13 +88,13 @@
|
|||
inherit (builtins) readDir;
|
||||
inherit (nixpkgs.lib) attrsToList const groupBy listToAttrs mapAttrs nameValuePair;
|
||||
|
||||
lib' = nixpkgs.lib.extend (_: _: nix-darwin.lib);
|
||||
lib' = nixpkgs.lib.extend (const <| const <| nix-darwin.lib);
|
||||
lib = lib'.extend <| import ./lib inputs;
|
||||
|
||||
hostsByType = readDir ./hosts
|
||||
|> mapAttrs (name: const <| import ./hosts/${name} lib)
|
||||
|> attrsToList
|
||||
|> groupBy ({ name, value }:
|
||||
|> groupBy ({ value, ... }:
|
||||
if value ? class && value.class == "nixos" then
|
||||
"nixosConfigurations"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue