This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

default: use vars for ssh

+9 -8
+9 -8
2configs/default.nix
··· 105 105 services.openssh.enable = true; 106 106 services.openssh.hostKeys = [ 107 107 { 108 - path = config.clanCore.facts.services.ssh.secret."ssh.id_ed25519".path; 108 + path = config.clanCore.vars.generators.ssh.files."ssh.id_ed25519".path; 109 109 type = "ed25519"; 110 110 } 111 111 ]; 112 - clanCore.facts.services.ssh = { 113 - secret."ssh.id_ed25519" = { }; 114 - public."ssh.id_ed25519.pub" = { }; 115 - generator.path = with pkgs; [ 112 + clan.core.vars.generators.ssh = { 113 + files."ssh.id_ed25519".secret = true; 114 + files."ssh.id_ed25519.pub".secret = false; 115 + migrateFact = "ssh"; 116 + runtimeInputs = with pkgs; [ 116 117 coreutils 117 118 openssh 118 119 ]; 119 - generator.script = '' 120 - ssh-keygen -t ed25519 -N "" -f $secrets/ssh.id_ed25519 121 - mv $secrets/ssh.id_ed25519.pub $facts/ssh.id_ed25519.pub 120 + script = '' 121 + ssh-keygen -t ed25519 -N "" -f $out/ssh.id_ed25519 122 + mv $secrets/ssh.id_ed25519.pub $out/ssh.id_ed25519.pub 122 123 ''; 123 124 }; 124 125 }