diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-03 15:19:46 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-03 15:19:46 +0000 |
commit | ce9c53858fab4ef08ba3e683f6c29cd86a7be10d (patch) | |
tree | 3607287145fe3442058f08a06b0a8824abd4a215 /nix-conf/machines | |
parent | 95ed21bec068982547dcedc4efc64d4e1fb56d69 (diff) | |
download | dotfiles-ce9c53858fab4ef08ba3e683f6c29cd86a7be10d.tar.gz |
Add openiscsi config
Diffstat (limited to 'nix-conf/machines')
-rw-r--r-- | nix-conf/machines/djmuk2/configuration.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nix-conf/machines/djmuk2/configuration.nix b/nix-conf/machines/djmuk2/configuration.nix index 14b7562..f332103 100644 --- a/nix-conf/machines/djmuk2/configuration.nix +++ b/nix-conf/machines/djmuk2/configuration.nix @@ -35,6 +35,13 @@ localuser = null; }; + # Emulate nix-sops. Technically an anti-pattern, but this isn't a real secret, and this has to be embedded here, as we cannot set a file path to read it from. + # Populate/update with: + # SOPS_AGE_KEY=$(doas ssh-to-age -private-key -i /etc/ssh/ssh_host_ed25519_key) sops -d --extract '["openiscsi_name"]' secrets/djmuk2.yaml | doas tee /root/.config/secrets/openiscsi_name + services.openiscsi.enable = true; + services.openiscsi.name = builtins.readFile "/root/.config/secrets/openiscsi_name"; + #services.openiscsi.enableAutoLoginOut = true; + users.users.djm = { isNormalUser = true; home = "/home/djm"; |