yes
This commit is contained in:
parent
b24763471f
commit
8d1438c222
@ -1,6 +1,9 @@
|
|||||||
{ pkgs, inputs, lib, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
let
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
username = "guest";
|
username = "guest";
|
||||||
|
|
||||||
commonModule = {config, ...}: {
|
commonModule = {config, ...}: {
|
||||||
@ -25,10 +28,12 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
autoload = builtins.concatLists
|
autoload =
|
||||||
|
builtins.concatLists
|
||||||
(lib.mapAttrsToList
|
(lib.mapAttrsToList
|
||||||
(name: _:
|
(
|
||||||
let testbed = {
|
name: _: let
|
||||||
|
testbed = {
|
||||||
inherit name;
|
inherit name;
|
||||||
module = "${inputs.self}/modules/${name}/testbed.nix";
|
module = "${inputs.self}/modules/${name}/testbed.nix";
|
||||||
};
|
};
|
||||||
@ -37,9 +42,7 @@ let
|
|||||||
)
|
)
|
||||||
(builtins.readDir "${inputs.self}/modules"));
|
(builtins.readDir "${inputs.self}/modules"));
|
||||||
|
|
||||||
makeTestbed =
|
makeTestbed = testbed: stylix: let
|
||||||
testbed: stylix:
|
|
||||||
let
|
|
||||||
name = "testbed-${testbed.name}-${stylix.polarity}";
|
name = "testbed-${testbed.name}-${stylix.polarity}";
|
||||||
|
|
||||||
system = lib.nixosSystem {
|
system = lib.nixosSystem {
|
||||||
@ -80,7 +83,8 @@ let
|
|||||||
lib.nameValuePair name script;
|
lib.nameValuePair name script;
|
||||||
|
|
||||||
# This generates a copy of each testbed for each of the following themes.
|
# This generates a copy of each testbed for each of the following themes.
|
||||||
makeTestbeds = testbed: map (makeTestbed testbed) [
|
makeTestbeds = testbed:
|
||||||
|
map (makeTestbed testbed) [
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
image = pkgs.fetchurl {
|
image = pkgs.fetchurl {
|
||||||
@ -89,7 +93,7 @@ let
|
|||||||
hash = "sha256-S0MumuBGJulUekoGI2oZfUa/50Jw0ZzkqDDu1nRkFUA=";
|
hash = "sha256-S0MumuBGJulUekoGI2oZfUa/50Jw0ZzkqDDu1nRkFUA=";
|
||||||
};
|
};
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml";
|
||||||
polarity = "light";
|
polarity.force = "light";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -99,9 +103,8 @@ let
|
|||||||
hash = "sha256-Dm/0nKiTFOzNtSiARnVg7zM0J1o+EuIdUQ3OAuasM58=";
|
hash = "sha256-Dm/0nKiTFOzNtSiARnVg7zM0J1o+EuIdUQ3OAuasM58=";
|
||||||
};
|
};
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
|
||||||
polarity = "dark";
|
polarity.force = "dark";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
lib.listToAttrs (lib.flatten (map makeTestbeds autoload))
|
lib.listToAttrs (lib.flatten (map makeTestbeds autoload))
|
||||||
|
Loading…
Reference in New Issue
Block a user