mirror of
https://github.com/RGBCube/ncc
synced 2025-08-02 13:07:46 +00:00
hosts.cape: init
This commit is contained in:
parent
c9fba65644
commit
e91a480949
6 changed files with 37 additions and 2 deletions
28
hosts/cape/default.nix
Normal file
28
hosts/cape/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
lib: lib.darwinSystem' ({ config, lib, ... }: let
|
||||
inherit (lib) collectNix remove;
|
||||
in {
|
||||
imports = collectNix ./.
|
||||
|> remove ./default.nix;
|
||||
|
||||
type = "desktop";
|
||||
|
||||
secrets.id.file = ./id.age;
|
||||
|
||||
services.openssh.extraConfig = /* sshclientconfig */ ''
|
||||
HostKey ${config.secrets.id.path}
|
||||
'';
|
||||
|
||||
networking.hostName = "cape";
|
||||
|
||||
users.users.said = {
|
||||
name = "Said";
|
||||
home = "/Users/said";
|
||||
};
|
||||
|
||||
home-manager.users.said.home = {
|
||||
stateVersion = "25.05";
|
||||
homeDirectory = config.users.users.said.home;
|
||||
};
|
||||
|
||||
system.stateVersion = 6;
|
||||
})
|
3
hosts/cape/hardware.nix
Normal file
3
hosts/cape/hardware.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
}
|
BIN
hosts/cape/id.age
Normal file
BIN
hosts/cape/id.age
Normal file
Binary file not shown.
|
@ -19,7 +19,7 @@ in {
|
|||
networking.hostName = "pala";
|
||||
|
||||
users.users.pala = {
|
||||
name = "pala";
|
||||
name = "Pala";
|
||||
home = "/Users/pala";
|
||||
};
|
||||
|
||||
|
|
1
keys.nix
1
keys.nix
|
@ -1,6 +1,7 @@
|
|||
let
|
||||
keys = {
|
||||
best = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUsMV591/9VqzjBiMqdxJId0C7PlZTIXQByHEILWMwc the@best";
|
||||
cape = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo said@cape";
|
||||
disk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItpYQ3Pz6zFifKXvFX7xAC8aby9RW/m5PkW8T9SOee4 floppy@disk";
|
||||
pala = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo pala@pala";
|
||||
nine = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJDqnItmvXZMTSwzbalr+9jzS4kSJm5PWEpI8GOpebF seven@nine";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
let
|
||||
inherit (import ./keys.nix) admins all best disk nine pala;
|
||||
inherit (import ./keys.nix) admins all best cape disk nine pala;
|
||||
in {
|
||||
# best
|
||||
"hosts/best/id.age".publicKeys = [ best ] ++ admins;
|
||||
|
@ -23,6 +23,9 @@ in {
|
|||
|
||||
"hosts/best/plausible/key.age".publicKeys = [ best ] ++ admins;
|
||||
|
||||
# cape
|
||||
"hosts/cape/id.age".publicKeys = [ cape ] ++ admins;
|
||||
|
||||
# disk
|
||||
"hosts/disk/id.age".publicKeys = [ disk ] ++ admins;
|
||||
"hosts/disk/password.age".publicKeys = [ disk ] ++ admins;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue