Skip to content

Commit e91a480

Browse files
committed
hosts.cape: init
1 parent c9fba65 commit e91a480

6 files changed

Lines changed: 37 additions & 2 deletions

File tree

hosts/cape/default.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
lib: lib.darwinSystem' ({ config, lib, ... }: let
2+
inherit (lib) collectNix remove;
3+
in {
4+
imports = collectNix ./.
5+
|> remove ./default.nix;
6+
7+
type = "desktop";
8+
9+
secrets.id.file = ./id.age;
10+
11+
services.openssh.extraConfig = /* sshclientconfig */ ''
12+
HostKey ${config.secrets.id.path}
13+
'';
14+
15+
networking.hostName = "cape";
16+
17+
users.users.said = {
18+
name = "Said";
19+
home = "/Users/said";
20+
};
21+
22+
home-manager.users.said.home = {
23+
stateVersion = "25.05";
24+
homeDirectory = config.users.users.said.home;
25+
};
26+
27+
system.stateVersion = 6;
28+
})

hosts/cape/hardware.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
nixpkgs.hostPlatform = "aarch64-darwin";
3+
}

hosts/cape/id.age

709 Bytes
Binary file not shown.

hosts/pala/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ in {
1919
networking.hostName = "pala";
2020

2121
users.users.pala = {
22-
name = "pala";
22+
name = "Pala";
2323
home = "/Users/pala";
2424
};
2525

keys.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
let
22
keys = {
33
best = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUsMV591/9VqzjBiMqdxJId0C7PlZTIXQByHEILWMwc the@best";
4+
cape = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo said@cape";
45
disk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItpYQ3Pz6zFifKXvFX7xAC8aby9RW/m5PkW8T9SOee4 floppy@disk";
56
pala = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo pala@pala";
67
nine = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJDqnItmvXZMTSwzbalr+9jzS4kSJm5PWEpI8GOpebF seven@nine";

secrets.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let
2-
inherit (import ./keys.nix) admins all best disk nine pala;
2+
inherit (import ./keys.nix) admins all best cape disk nine pala;
33
in {
44
# best
55
"hosts/best/id.age".publicKeys = [ best ] ++ admins;
@@ -23,6 +23,9 @@ in {
2323

2424
"hosts/best/plausible/key.age".publicKeys = [ best ] ++ admins;
2525

26+
# cape
27+
"hosts/cape/id.age".publicKeys = [ cape ] ++ admins;
28+
2629
# disk
2730
"hosts/disk/id.age".publicKeys = [ disk ] ++ admins;
2831
"hosts/disk/password.age".publicKeys = [ disk ] ++ admins;

0 commit comments

Comments
 (0)