Add phobos device back.

main
Joshua Potter 2024-01-22 16:47:19 -07:00
parent 0e5ac6dec7
commit e8ae478148
2 changed files with 44 additions and 0 deletions

View File

@ -33,6 +33,7 @@
nodeNixpkgs = { nodeNixpkgs = {
framework = tapir.pkgs; framework = tapir.pkgs;
deimos = tapir.pkgs; deimos = tapir.pkgs;
phobos = tapir.pkgs;
thebe = tapir.pkgs; thebe = tapir.pkgs;
}; };
nodeSpecialArgs = { nodeSpecialArgs = {
@ -42,6 +43,9 @@
deimos = { deimos = {
inherit (tapir) sops-nix; inherit (tapir) sops-nix;
}; };
phobos = {
inherit (tapir) home-manager;
};
thebe = { thebe = {
inherit (tapir) sops-nix; inherit (tapir) sops-nix;
}; };
@ -61,6 +65,7 @@
# Remote machines. Deploy using `colmena apply` # Remote machines. Deploy using `colmena apply`
deimos.imports = [ ./hive/deimos ]; deimos.imports = [ ./hive/deimos ];
phobos.imports = [ ./hive/phobos ];
thebe.imports = [ ./hive/thebe ]; thebe.imports = [ ./hive/thebe ];
}; };

39
hive/phobos/default.nix Normal file
View File

@ -0,0 +1,39 @@
{ lib, system, home-manager, ... }:
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
../../digital-ocean/configuration.nix
home-manager.nixosModules.home-manager
];
deployment.targetHost = "144.126.218.252";
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.jrpotter = import ../../users/jrpotter;
# Used to pass non-default parameters to submodules.
extraSpecialArgs = {
inherit system;
stateVersion = "23.11";
};
};
networking.hostName = "phobos";
programs.mosh.enable = true;
services.openssh.enable = true;
users.users.jrpotter = {
isNormalUser = true;
extraGroups = [
"docker"
"networkmanager"
"libvirtd"
"wheel"
];
};
system.stateVersion = "23.11";
}