Skip to content

Commit

Permalink
refactor: comfy -> robin
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Dec 31, 2024
1 parent fff87a3 commit f8d0857
Show file tree
Hide file tree
Showing 220 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions home/comfy/default.nix → home/robin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
];

config.home = {
username = "comfy";
homeDirectory = osConfig.users.users.comfy.home;
username = "robin";
homeDirectory = osConfig.users.users.robin.home;
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions modules/base/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ in
};
})

(mkIf (mainUser == "comfy") {
(mkIf (mainUser == "robin") {
keys-gh = mkSecret {
file = "keys/comfy-gh";
file = "keys/robin-gh";
owner = mainUser;
group = userGroup;
};
keys-gh-pub = mkSecret {
file = "keys/comfy-gh-pub";
file = "keys/robin-gh-pub";
owner = mainUser;
group = userGroup;
};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions secrets/secrets.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let
users = {
isabel = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMQDiHbMSinj8twL9cTgPOfI6OMexrTZyHX27T8gnMj2";
comfy = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxTuK2A7wbXnjkIhDrze4B5Uj2rnpmPAWGjPDMPiyk";
robin = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxTuK2A7wbXnjkIhDrze4B5Uj2rnpmPAWGjPDMPiyk";
};

hosts = {
Expand All @@ -26,14 +26,14 @@ let
owner = "isabel";
};

# comfys hosts
# robin's hosts
cottage = {
key = "";
owner = "comfy";
owner = "robin";
};
wisp = {
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7cduddxQbnFeBWjt9L6Uml5mjnfEOxZqd4LoyRDTmg";
owner = "comfy";
owner = "robin";
};
};

Expand Down Expand Up @@ -61,7 +61,7 @@ let
};

defAccessIsabel = list: defAccess list [ "isabel" ];
defAccessComfy = list: defAccess list [ "comfy" ];
defAccessRobin = list: defAccess list [ "robin" ];
in
{
# isabel's secrets
Expand Down Expand Up @@ -130,8 +130,8 @@ in

"mongodb-passwd.age" = defAccessIsabel types.servers;

# comfys keys
"keys/comfy.age" = defAccessComfy (types.workstations ++ types.servers);
"keys/comfy-gh.age" = defAccessComfy (types.workstations ++ types.servers);
"keys/comfy-gh-pub.age" = defAccessComfy (types.workstations ++ types.servers);
# robin's keys
"keys/robin.age" = defAccessRobin (types.workstations ++ types.servers);
"keys/robin-gh.age" = defAccessRobin (types.workstations ++ types.servers);
"keys/robin-gh-pub.age" = defAccessRobin (types.workstations ++ types.servers);
}
4 changes: 2 additions & 2 deletions systems/cottage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
};

system = {
mainUser = "comfy";
users = [ "comfy" ];
mainUser = "robin";
users = [ "robin" ];

boot = {
loader = "systemd-boot";
Expand Down
2 changes: 1 addition & 1 deletion systems/cottage/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
];
};

"/home/comfy" = {
"/home/robin" = {
device = "/dev/disk/by-label/tanuki";
fsType = "ext4";
};
Expand Down
2 changes: 1 addition & 1 deletion systems/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ in
modules = [ headless ];
};

# comfy's hosts
# robin's hosts
cottage.modules = [
laptop
graphical
Expand Down
4 changes: 2 additions & 2 deletions systems/wisp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
};

system = {
mainUser = "comfy";
users = [ "comfy" ];
mainUser = "robin";
users = [ "robin" ];

boot = {
loader = "none";
Expand Down

0 comments on commit f8d0857

Please sign in to comment.