Implemented custom system for creating and distributing color schemes based on wallpapers, and also cycling through wallpapers.
nixfmt'd the codebase
This commit is contained in:
@@ -1,14 +1,29 @@
|
||||
{ inputs, username, nixpkgsConfig ? { allowUnfree = true; } }:
|
||||
{
|
||||
inputs,
|
||||
username,
|
||||
nixpkgsConfig ? {
|
||||
allowUnfree = true;
|
||||
},
|
||||
}:
|
||||
|
||||
rec {
|
||||
mkHost = import ./mk_host.nix;
|
||||
foldHosts = hosts: inputs.nixpkgs.lib.foldl'
|
||||
(acc: host:
|
||||
let result = mkHost ({ inherit inputs username nixpkgsConfig; } // host);
|
||||
in {
|
||||
nixosConfigurations = acc.nixosConfigurations // result.nixosConfigurations;
|
||||
homeConfigurations = acc.homeConfigurations // result.homeConfigurations;
|
||||
})
|
||||
{ nixosConfigurations = {}; homeConfigurations = {}; }
|
||||
hosts;
|
||||
foldHosts =
|
||||
hosts:
|
||||
inputs.nixpkgs.lib.foldl'
|
||||
(
|
||||
acc: host:
|
||||
let
|
||||
result = mkHost ({ inherit inputs username nixpkgsConfig; } // host);
|
||||
in
|
||||
{
|
||||
nixosConfigurations = acc.nixosConfigurations // result.nixosConfigurations;
|
||||
homeConfigurations = acc.homeConfigurations // result.homeConfigurations;
|
||||
}
|
||||
)
|
||||
{
|
||||
nixosConfigurations = { };
|
||||
homeConfigurations = { };
|
||||
}
|
||||
hosts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user