mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: cleaned up nixos dir
This commit is contained in:
parent
89814be57c
commit
2000adb56a
77 changed files with 422 additions and 464 deletions
|
@ -1,57 +0,0 @@
|
|||
{ flake, config, ... }:
|
||||
let
|
||||
inherit (flake.config.people)
|
||||
user0
|
||||
user2
|
||||
;
|
||||
inherit (flake.config.machines)
|
||||
devices
|
||||
;
|
||||
hostname = config.networking.hostName;
|
||||
desktop = devices.desktop.name;
|
||||
server = devices.server.name;
|
||||
fallaryn = devices.fallaryn.name;
|
||||
bartholomew = devices.bartholomew.name;
|
||||
|
||||
userLogic =
|
||||
if hostname == desktop then
|
||||
user0
|
||||
else if hostname == server then
|
||||
user0
|
||||
else if hostname == fallaryn then
|
||||
user2
|
||||
else
|
||||
"";
|
||||
in
|
||||
{
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
validateSopsFiles = false;
|
||||
age = {
|
||||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
generateKey = false;
|
||||
};
|
||||
secrets =
|
||||
if hostname == bartholomew 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;
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue