mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 16:26:51 +01:00
add build user
This commit is contained in:
parent
6a55bf77bd
commit
6db9dc2f95
4 changed files with 46 additions and 0 deletions
|
@ -34,6 +34,11 @@ in
|
||||||
max-jobs = "auto";
|
max-jobs = "auto";
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
allowed-users = [ "*" ];
|
allowed-users = [ "*" ];
|
||||||
|
trusted-users = [
|
||||||
|
"builder"
|
||||||
|
"jopejeo1"
|
||||||
|
"root"
|
||||||
|
];
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
|
@ -43,6 +48,15 @@ in
|
||||||
keep-going = true;
|
keep-going = true;
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
};
|
};
|
||||||
|
#buildMachines = {
|
||||||
|
# systems = [
|
||||||
|
# "x86_64-linux"
|
||||||
|
# ];
|
||||||
|
# supportedFeatures = [
|
||||||
|
# "kvm"
|
||||||
|
# "big-parallel"
|
||||||
|
# ];
|
||||||
|
#};
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
package = pkgs.lix;
|
package = pkgs.lix;
|
||||||
registry = lib.mkForce (
|
registry = lib.mkForce (
|
||||||
|
|
30
nixos-modules/users/builder/default.nix
Normal file
30
nixos-modules/users/builder/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.jopejoe1.user.builder;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.jopejoe1.user.builder = {
|
||||||
|
enable = lib.mkEnableOption "Enable builder user";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
users.users.jopejoe1 = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Build User";
|
||||||
|
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP3pKtvhOOjG1pGJq7cVHS5uWy5IP8y1Ra/ENpmJcqOe root@zap"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEcNAVRN66mfKmaCpxs++0094Eh4mqXkUwDPZPkIIBB johannes@joens.email"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFZDUoC+1lNR2JTY1Q+vhXpuLmKMdVl2OMFLVbQ3cGkw jopejoe1@kuraokami"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKm2igbJ+Ke+dJO3r7wp5ZTreHqC39Sjctca119Bl2yc jopejoe1@zap"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,5 +4,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./root
|
./root
|
||||||
./jopejoe1
|
./jopejoe1
|
||||||
|
./builder
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
user = {
|
user = {
|
||||||
jopejoe1.enable = true;
|
jopejoe1.enable = true;
|
||||||
root.enable = true;
|
root.enable = true;
|
||||||
|
builder.enable = true;
|
||||||
};
|
};
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue