my nix dotfiles

nix/denna,sini: setup ssh keys

+27
+12
hosts/denna/configuration.nix
··· 4 4 imports = 5 5 [ 6 6 ./hardware-configuration.nix 7 + ../ssh.nix 7 8 ]; 8 9 9 10 boot.loader.systemd-boot.enable = true; ··· 87 88 extraFlags = "--node-ip=${address} --node-external-ip=${address}"; 88 89 serverAddr = "https://sini:6443"; 89 90 tokenFile = "/var/lib/rancher/k3s/token"; 91 + }; 92 + 93 + environment.etc = { 94 + "rancher/k3s/registries.yaml" = { 95 + text = '' 96 + mirrors: 97 + sini:5000: 98 + endpoint: 99 + - "http://sini:5000" 100 + ''; 101 + }; 90 102 }; 91 103 92 104 nix.settings.experimental-features = [ "nix-command" "flakes" ];
+1
hosts/sini/configuration.nix
··· 4 4 imports = 5 5 [ 6 6 ./hardware-configuration.nix 7 + ../ssh.nix 7 8 ]; 8 9 9 10 boot.loader.systemd-boot.enable = true;
+14
hosts/ssh.nix
··· 1 + { config, lib, pkgs, modulesPath, ... }: 2 + 3 + let 4 + keys = [ 5 + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICJPYX06+qKr9IHWfkgCtHbExoBOOwS/+iAWbog9bAdk icy@wyndle" 6 + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIlcByNC93n6dH41uxdLvbtf8XfKF0hoN35548PRga3M icy@kvothe" 7 + ]; 8 + 9 + in 10 + 11 + { 12 + users.users.git.openssh.authorizedKeys.keys = keys; 13 + users.users.icy.openssh.authorizedKeys.keys = keys; 14 + }