summaryrefslogtreecommitdiff
path: root/hosts/p-body
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/p-body')
-rw-r--r--hosts/p-body/buildMachines.nix16
-rw-r--r--hosts/p-body/default.nix21
2 files changed, 7 insertions, 30 deletions
diff --git a/hosts/p-body/buildMachines.nix b/hosts/p-body/buildMachines.nix
index c2b65b6..f58c455 100644
--- a/hosts/p-body/buildMachines.nix
+++ b/hosts/p-body/buildMachines.nix
@@ -1,24 +1,10 @@
-{
- config,
- self,
- ...
-}: let
- inherit (config.networking) hostName;
-in {
- age.secrets = {
- "${hostName}2atlas" = {
- file = "${self}/secrets/hosts/${hostName}/${hostName}2atlas.age";
- mode = "600";
- };
- };
-
+_: {
nix = {
buildMachines = [
{
hostName = "atlas";
maxJobs = 4;
sshUser = "bob";
- sshKey = config.age.secrets."${hostName}2atlas".path;
supportedFeatures = ["benchmark" "big-parallel" "gccarch-armv8-a" "kvm" "nixos-test"];
systems = ["aarch64-linux" "x86_64-linux" "i686-linux"];
}
diff --git a/hosts/p-body/default.nix b/hosts/p-body/default.nix
index ea03d42..47a77c3 100644
--- a/hosts/p-body/default.nix
+++ b/hosts/p-body/default.nix
@@ -45,22 +45,13 @@
}
];
- system.stateVersion = "22.11";
+ system.stateVersion = "23.11";
- users.users = let
- openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOeEbjzzzwf9Qyl0JorokhraNYG4M2hovyAAaA6jPpM7 seth@glados"
- ];
- in {
- root = {inherit openssh;};
-
- p-body = {
- extraGroups = ["wheel"];
- isNormalUser = true;
- shell = pkgs.bash;
- passwordFile = config.age.secrets.userPassword.path;
- inherit openssh;
- };
+ users.users.p-body = {
+ extraGroups = ["wheel"];
+ isNormalUser = true;
+ shell = pkgs.bash;
+ passwordFile = config.age.secrets.userPassword.path;
};
zramSwap.enable = true;