summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ivi/ivi.nix3
-rw-r--r--profiles/core/configuration.nix3
2 files changed, 5 insertions, 1 deletions
diff --git a/ivi/ivi.nix b/ivi/ivi.nix
index 838f5a0..e3a0938 100644
--- a/ivi/ivi.nix
+++ b/ivi/ivi.nix
@@ -64,6 +64,7 @@ self: lib: with lib; let
machines = {
lemptop = {
secrets = true;
+ addroot = true;
profiles = [
"core"
"station"
@@ -71,6 +72,7 @@ self: lib: with lib; let
];
};
wsl = {
+ addroot = false;
secrets = false;
profiles = [
"core"
@@ -78,6 +80,7 @@ self: lib: with lib; let
};
serber = {
secrets = true;
+ addroot = true;
isDeployed = true;
profiles = [
"core"
diff --git a/profiles/core/configuration.nix b/profiles/core/configuration.nix
index 65c3adb..fe7297a 100644
--- a/profiles/core/configuration.nix
+++ b/profiles/core/configuration.nix
@@ -1,4 +1,5 @@
{
+ machine,
config,
pkgs,
lib,
@@ -15,7 +16,7 @@
extraGroups = ["wheel" "networkmanager" "docker" "transmission"];
openssh.authorizedKeys.keys = ivi.sshKeys;
};
- root = {
+ root = mkIf machine.addroot {
hashedPasswordFile = config.secrets.root.path;
openssh.authorizedKeys.keys = config.ivi.openssh.authorizedKeys.keys;
};