Compare commits

...
2 Commits
Author SHA1 Message Date
Hare f106b8a1ef feat: authorize Arcadia SSH access on x1carbon 2026-10-17 00:01:06 +09:00
Hare d85957eeed feat: make nh host selection automatic 2026-10-17 00:01:06 +09:00
4 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ nix run .#home-manager -- switch --flake .#<username>@<host>
`nh` 導入後:
```
nh os switch -H <host>
nh os switch
nh home switch -c <username>@<host>
nh home switch
```
+6 -1
View File
@@ -5,6 +5,11 @@ rec {
x1carbon = import ./x1carbon inputs;
fungus = import ./fungus inputs;
};
nixos = builtins.mapAttrs (_: host: host.nixos) hosts;
nixos = builtins.listToAttrs (
map (host: {
name = host.hostname;
value = host.nixos;
}) (builtins.attrValues hosts)
);
home-manager = builtins.foldl' (a: b: a // b) { } (map (h: h.home-manager) (builtins.attrValues hosts));
}
+2
View File
@@ -12,6 +12,8 @@ let
};
in
{
inherit hostname;
nixos = inputs.nixpkgs.lib.nixosSystem {
modules =
systemModules
+1
View File
@@ -7,5 +7,6 @@
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIfql/a6ZtxOPgBhFzOfgTO6HGcy0Se9mgMLmOa40vMF"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIW2Yrqwi4YjIrdI8mygX5pTHDPmrUgbmpZ4WxoTqORi keihi@Vostro-LapTop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBd45JtvgM44KUqhp3Xl2Wtt6rmxU13c/84YLyGKigkG hare@nixos"
];
}