tangled
alpha
login
or
join now
anirudh.fi
/
dotfiles
5
fork
atom
my nix dotfiles
5
fork
atom
overview
issues
pulls
pipelines
nix/denna,sini: setup ssh keys
anirudh.fi
2 years ago
d0431340
3341aec3
+27
3 changed files
expand all
collapse all
unified
split
hosts
denna
configuration.nix
sini
configuration.nix
ssh.nix
+12
hosts/denna/configuration.nix
···
4
4
imports =
5
5
[
6
6
./hardware-configuration.nix
7
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
91
+
};
92
92
+
93
93
+
environment.etc = {
94
94
+
"rancher/k3s/registries.yaml" = {
95
95
+
text = ''
96
96
+
mirrors:
97
97
+
sini:5000:
98
98
+
endpoint:
99
99
+
- "http://sini:5000"
100
100
+
'';
101
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
7
+
../ssh.nix
7
8
];
8
9
9
10
boot.loader.systemd-boot.enable = true;
+14
hosts/ssh.nix
···
1
1
+
{ config, lib, pkgs, modulesPath, ... }:
2
2
+
3
3
+
let
4
4
+
keys = [
5
5
+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICJPYX06+qKr9IHWfkgCtHbExoBOOwS/+iAWbog9bAdk icy@wyndle"
6
6
+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIlcByNC93n6dH41uxdLvbtf8XfKF0hoN35548PRga3M icy@kvothe"
7
7
+
];
8
8
+
9
9
+
in
10
10
+
11
11
+
{
12
12
+
users.users.git.openssh.authorizedKeys.keys = keys;
13
13
+
users.users.icy.openssh.authorizedKeys.keys = keys;
14
14
+
}