mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
nix registory
This commit is contained in:
@@ -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" ];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
username = "test";
|
||||
homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/test" else "/home/test";
|
||||
stateVersion = "26.05";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user