mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
chore: removed other users and systems
This commit is contained in:
parent
2b4ad99e25
commit
233cab07dd
135 changed files with 216 additions and 2462 deletions
|
@ -4,37 +4,7 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.people)
|
||||
user0
|
||||
user1
|
||||
user2
|
||||
user3
|
||||
;
|
||||
inherit (flake.config.machines)
|
||||
devices
|
||||
;
|
||||
hostname = config.networking.hostName;
|
||||
mars = devices.mars.name;
|
||||
ceres = devices.ceres.name;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
deimos = devices.deimos.name;
|
||||
|
||||
userLogic =
|
||||
if
|
||||
builtins.elem hostname [
|
||||
mars
|
||||
deimos
|
||||
ceres
|
||||
]
|
||||
then
|
||||
user0
|
||||
else if hostname == charon then
|
||||
user1
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
"";
|
||||
inherit (flake.config.people) user0;
|
||||
in
|
||||
{
|
||||
sops = {
|
||||
|
@ -44,27 +14,23 @@ in
|
|||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
generateKey = false;
|
||||
};
|
||||
secrets =
|
||||
if hostname == charon then
|
||||
{ }
|
||||
else
|
||||
{
|
||||
"ssh/private" = {
|
||||
path = "/home/${userLogic}/.ssh/id_ed25519";
|
||||
owner = userLogic;
|
||||
};
|
||||
"ssh/public" = {
|
||||
path = "/home/${userLogic}/.ssh/id_ed25519.pub";
|
||||
owner = userLogic;
|
||||
};
|
||||
"ssh/hosts" = {
|
||||
path = "/home/${userLogic}/.ssh/known_hosts";
|
||||
owner = userLogic;
|
||||
};
|
||||
"claude-api-key" = {
|
||||
path = "/home/${user0}/.config/zed/claude-api-key";
|
||||
owner = user0;
|
||||
};
|
||||
};
|
||||
secrets = {
|
||||
"ssh/private" = {
|
||||
path = "/home/${user0}/.ssh/id_ed25519";
|
||||
owner = user0;
|
||||
};
|
||||
"ssh/public" = {
|
||||
path = "/home/${user0}/.ssh/id_ed25519.pub";
|
||||
owner = user0;
|
||||
};
|
||||
"ssh/hosts" = {
|
||||
path = "/home/${user0}/.ssh/known_hosts";
|
||||
owner = user0;
|
||||
};
|
||||
"claude-api-key" = {
|
||||
path = "/home/${user0}/.config/zed/claude-api-key";
|
||||
owner = user0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue