cli: rename clan_flake to test_flake
This commit is contained in:
0
pkgs/clan-cli/tests/test_flake/.clan-flake
Normal file
0
pkgs/clan-cli/tests/test_flake/.clan-flake
Normal file
21
pkgs/clan-cli/tests/test_flake/flake.nix
Normal file
21
pkgs/clan-cli/tests/test_flake/flake.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
# this placeholder is replaced by the path to nixpkgs
|
||||
inputs.nixpkgs.url = "__NIXPKGS__";
|
||||
|
||||
outputs = inputs: {
|
||||
nixosConfigurations.machine1 = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
./nixosModules/machine1.nix
|
||||
(if builtins.pathExists ./machines/machine1.json
|
||||
then builtins.fromJSON (builtins.readFile ./machines/machine1.json)
|
||||
else { })
|
||||
{
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
# speed up by not instantiating nixpkgs twice and disable documentation
|
||||
nixpkgs.pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||
documentation.enable = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
7
pkgs/clan-cli/tests/test_flake/nixosModules/machine1.nix
Normal file
7
pkgs/clan-cli/tests/test_flake/nixosModules/machine1.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ lib, ... }: {
|
||||
options.clan.jitsi.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable jitsi on this machine";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user