formatting

This commit is contained in:
John Lancaster
2026-04-01 20:44:40 -05:00
parent 1fe4d59ce6
commit a7b65e4eee
+6 -5
View File
@@ -6,7 +6,8 @@ let
fingerprint = "2036c44f7b5901566ff7611ea6c927291ecc6d2dd00779c0eead70ec77fa10d6"; fingerprint = "2036c44f7b5901566ff7611ea6c927291ecc6d2dd00779c0eead70ec77fa10d6";
in in
{ {
flake.modules.nixos.janus-ca = { config, lib, ... }: flake.modules.nixos.janus-ca =
{ config, lib, ... }:
let let
johnHome = lib.attrByPath [ "users" "users" username "home" ] "/home/${username}" config; johnHome = lib.attrByPath [ "users" "users" username "home" ] "/home/${username}" config;
johnGroup = lib.attrByPath [ "users" "users" username "group" ] username config; johnGroup = lib.attrByPath [ "users" "users" username "group" ] username config;
@@ -17,12 +18,13 @@ in
"L+ ${home}/.step/config/defaults.json - - - - /etc/step/config/defaults.json" "L+ ${home}/.step/config/defaults.json - - - - /etc/step/config/defaults.json"
"L+ ${home}/.step/certs/root_ca.crt - - - - /etc/step/certs/root_ca.crt" "L+ ${home}/.step/certs/root_ca.crt - - - - /etc/step/certs/root_ca.crt"
]; ];
in { in
{
environment.etc."step/config/defaults.json".text = builtins.toJSON { environment.etc."step/config/defaults.json".text = builtins.toJSON {
inherit ca-url fingerprint; inherit ca-url fingerprint;
root = "/etc/step/certs/root_ca.crt"; root = "/etc/step-ca/certs/root_ca.crt";
}; };
environment.etc."step/certs/root_ca.crt".source = ./root_ca.crt; environment.etc."step-ca/certs/root_ca.crt".source = ./root_ca.crt;
systemd.tmpfiles.rules = systemd.tmpfiles.rules =
mkStepRules johnHome username johnGroup mkStepRules johnHome username johnGroup
++ mkStepRules "/root" "root" "root"; ++ mkStepRules "/root" "root" "root";
@@ -73,7 +75,6 @@ in
]; ];
}; };
flake-file.inputs = { flake-file.inputs = {
wrappers = { wrappers = {
url = "github:lassulus/wrappers"; url = "github:lassulus/wrappers";