nix registory

This commit is contained in:
2026-07-27 10:58:24 +09:00
parent 1d82ab92b6
commit 5b1bde7d90
24 changed files with 825 additions and 0 deletions
@@ -0,0 +1,7 @@
{
marker ? "host",
...
}:
{
test.systemValues = [ "common:${marker}" ];
}
@@ -0,0 +1,3 @@
{
test.systemValues = [ "darwin" ];
}
@@ -0,0 +1,3 @@
{
test.homeValues = [ "home" ];
}
@@ -0,0 +1,39 @@
{ lib, ... }:
{
description = "alpha test application";
includes = [ "services.nested" ];
imports.nixos = [
{
options.test = {
external = lib.mkOption {
type = lib.types.str;
default = "external-default";
};
systemValues = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
};
};
}
];
imports.darwin = [
{
options.test.systemValues = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
};
}
];
imports.home = [
{
options.test.homeValues = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
};
}
];
}
@@ -0,0 +1,4 @@
{
test.systemValues = [ "nixos" ];
test.external = "set-by-nixos-fragment";
}
@@ -0,0 +1,3 @@
{
test.homeValues = [ "beta-home" ];
}
+3
View File
@@ -0,0 +1,3 @@
{
thisFileMustNotBeDiscovered = true;
}
@@ -0,0 +1,6 @@
{
includes = [
"applications.alpha"
"applications.beta"
];
}
@@ -0,0 +1,11 @@
{ lib, ... }:
{
imports.nixos = [
{
options.test.nested = lib.mkOption {
type = lib.types.bool;
default = false;
};
}
];
}
@@ -0,0 +1,3 @@
{
test.nested = true;
}
+8
View File
@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
home = {
username = "test";
homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/test" else "/home/test";
stateVersion = "26.05";
};
}