forked from Fediversity/Fediversity
stylize user-specified names by quotes to clarify their status
This commit is contained in:
parent
e12781ac28
commit
c5a8f04813
1 changed files with 10 additions and 8 deletions
|
@ -107,7 +107,7 @@ in
|
||||||
environments.single-nixos-vm =
|
environments.single-nixos-vm =
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
resources.operator-environment.login-shell.username = "operator";
|
resources."operator-environment".login-shell.username = "operator";
|
||||||
implementation = requests: {
|
implementation = requests: {
|
||||||
nixops4 = (
|
nixops4 = (
|
||||||
{ providers, ... }:
|
{ providers, ... }:
|
||||||
|
@ -123,7 +123,7 @@ in
|
||||||
nixos.module =
|
nixos.module =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
users.users = config.resources.operator-environment.login-shell.apply (
|
users.users = config.resources."operator-environment".login-shell.apply (
|
||||||
lib.filterAttrs (_name: value: value ? login-shell) requests
|
lib.filterAttrs (_name: value: value ? login-shell) requests
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -134,7 +134,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
options = {
|
options = {
|
||||||
example-configuration = mkOption {
|
"example-configuration" = mkOption {
|
||||||
type = config.configuration;
|
type = config.configuration;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = {
|
default = {
|
||||||
|
@ -142,20 +142,22 @@ in
|
||||||
applications.hello.enable = true;
|
applications.hello.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
example-deployment = mkOption {
|
"example-deployment" = mkOption {
|
||||||
type = options.deployments.nestedType;
|
type = options.deployments.nestedType;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = config.environments.single-nixos-vm.deployment config.example-configuration;
|
default = config.environments.single-nixos-vm.deployment config."example-configuration";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
resources = fediversity.applications.hello.resources fediversity.example-configuration.applications.hello;
|
resources =
|
||||||
|
fediversity.applications.hello.resources
|
||||||
|
fediversity."example-configuration".applications.hello;
|
||||||
hello-shell = resources.resources.hello.login-shell;
|
hello-shell = resources.resources.hello.login-shell;
|
||||||
environment = fediversity.environments.single-nixos-vm.resources.operator-environment.login-shell;
|
environment = fediversity.environments.single-nixos-vm.resources."operator-environment".login-shell;
|
||||||
result = mkDeployment {
|
result = mkDeployment {
|
||||||
modules = [
|
modules = [
|
||||||
(fediversity.environments.single-nixos-vm.deployment fediversity.example-configuration)
|
(fediversity.environments.single-nixos-vm.deployment fediversity."example-configuration")
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue