mb?
This commit is contained in:
@@ -35,7 +35,6 @@
|
|||||||
noshell,
|
noshell,
|
||||||
nur,
|
nur,
|
||||||
nvf,
|
nvf,
|
||||||
self,
|
|
||||||
stylix,
|
stylix,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
|||||||
14
pub-keys.nix
Normal file
14
pub-keys.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
age.secrets = {
|
||||||
|
secret0.file = ./secrets/secret0.age;
|
||||||
|
secret1.file = ./secrets/secret1.age;
|
||||||
|
secret2.file = ./secrets/secret2.age;
|
||||||
|
};
|
||||||
|
pub-keys = {
|
||||||
|
ssh = {
|
||||||
|
andromeda = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo";
|
||||||
|
lenovo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHG4eqsLTq2os2mxfwhys3BpVnowcJrqt2CbRFzN2pJb root@lenovo";
|
||||||
|
_109-199-104-83 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJe5ol56yC23fivSEKeK4HZQm934ROX46AM7o0aE2hMq root@vmi2998419";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
secrets.nix
14
secrets.nix
@@ -1,17 +1,5 @@
|
|||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
config = {
|
imports = [./pub-keys.nix];
|
||||||
age.secrets = {
|
|
||||||
secret0.file = ./secrets/secret0.age;
|
|
||||||
secret1.file = ./secrets/secret1.age;
|
|
||||||
secret2.file = ./secrets/secret2.age;
|
|
||||||
};
|
|
||||||
pub-keys = {
|
|
||||||
ssh = {
|
|
||||||
andromeda = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo";
|
|
||||||
lenovo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHG4eqsLTq2os2mxfwhys3BpVnowcJrqt2CbRFzN2pJb root@lenovo";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
options = {
|
options = {
|
||||||
pub-keys.ssh = lib.mkOption {
|
pub-keys.ssh = lib.mkOption {
|
||||||
type = lib.types.attrsOf lib.types.str;
|
type = lib.types.attrsOf lib.types.str;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,10 @@
|
|||||||
let
|
let
|
||||||
pub-keys = (import ../secrets.nix).pub-keys;
|
pub-keys = (import ../pub-keys.nix).pub-keys;
|
||||||
andromeda = pub-keys.ssh.andromeda;
|
andromeda = pub-keys.ssh.andromeda;
|
||||||
lenovo = pub-keys.ssh.lenovo;
|
lenovo = pub-keys.ssh.lenovo;
|
||||||
|
_109-199-104-83 = pub-keys.ssh._109-199-104-83;
|
||||||
in {
|
in {
|
||||||
"secret0.age".publicKeys = [andromeda lenovo];
|
"secret0.age".publicKeys = [andromeda lenovo];
|
||||||
"secret1.age".publicKeys = [andromeda lenovo];
|
"secret1.age".publicKeys = [andromeda lenovo];
|
||||||
"secret2.age".publicKeys = [andromeda lenovo];
|
"secret2.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user