Rename nixos.useInit -> nixos.useSystemd
This commit is contained in:
parent
a5e08b23a3
commit
97d58f7bd3
3 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
docker-compose.services.webserver = { pkgs, ... }: {
|
docker-compose.services.webserver = { pkgs, ... }: {
|
||||||
nixos.useInit = true;
|
nixos.useSystemd = true;
|
||||||
nixos.configuration.services.nginx.enable = true;
|
nixos.configuration.services.nginx.enable = true;
|
||||||
nixos.configuration.services.nginx.virtualHosts.localhost.root = "${pkgs.nix.doc}/share/doc/nix/manual";
|
nixos.configuration.services.nginx.virtualHosts.localhost.root = "${pkgs.nix.doc}/share/doc/nix/manual";
|
||||||
service.useHostStore = true;
|
service.useHostStore = true;
|
||||||
|
|
|
@ -7,18 +7,18 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
nixos.useInit = lib.mkOption {
|
nixos.useSystemd = lib.mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
When enabled, call the NixOS init system.
|
When enabled, call the NixOS systemd-based init system.
|
||||||
|
|
||||||
Configure NixOS with <code>nixos.configuration</code>.
|
Configure NixOS with <code>nixos.configuration</code>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (config.nixos.useInit) {
|
config = lib.mkIf (config.nixos.useSystemd) {
|
||||||
nixos.configuration.imports = [
|
nixos.configuration.imports = [
|
||||||
../nixos/container-systemd.nix
|
../nixos/container-systemd.nix
|
||||||
(pkgs.path + "/nixos/modules/profiles/minimal.nix")
|
(pkgs.path + "/nixos/modules/profiles/minimal.nix")
|
||||||
|
|
|
@ -18,7 +18,7 @@ in
|
||||||
|
|
||||||
This option is unused by default, because not all images use NixOS.
|
This option is unused by default, because not all images use NixOS.
|
||||||
|
|
||||||
One way to use this is to enable <code>nixos.useInit</code>, but the
|
One way to use this is to enable <code>nixos.useSystemd</code>, but the
|
||||||
NixOS configuration can be used in other ways.
|
NixOS configuration can be used in other ways.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -31,7 +31,7 @@ in
|
||||||
|
|
||||||
This option is unused by default, because not all images use NixOS.
|
This option is unused by default, because not all images use NixOS.
|
||||||
|
|
||||||
One way to use this is to enable <code>nixos.useInit</code>, but the
|
One way to use this is to enable <code>nixos.useSystemd</code>, but the
|
||||||
NixOS configuration can be used in other ways.
|
NixOS configuration can be used in other ways.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ in
|
||||||
|
|
||||||
This option is unused by default, because not all images use NixOS.
|
This option is unused by default, because not all images use NixOS.
|
||||||
|
|
||||||
One way to use this is to enable <code>nixos.useInit</code>, but the
|
One way to use this is to enable <code>nixos.useSystemd</code>, but the
|
||||||
NixOS configuration can be used in other ways.
|
NixOS configuration can be used in other ways.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue