mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
feat: add best as a distribured builder
This commit is contained in:
parent
a7c9b60944
commit
20ce1c9ff5
4 changed files with 38 additions and 15 deletions
|
@ -27,6 +27,14 @@ in {
|
|||
hashedPasswordFile = config.secrets.thePassword.path;
|
||||
isNormalUser = true;
|
||||
};
|
||||
|
||||
build = {
|
||||
description = "Build";
|
||||
openssh.authorizedKeys.keys = keys.all;
|
||||
hashedPasswordFile = config.secrets.thePassword.path;
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "build" ];
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users = {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) const enabled flip genAttrs mkForce mkOverride mkValue;
|
||||
in {
|
||||
config.environment.systemPackages = [
|
||||
config.services.postgresql.package
|
||||
];
|
||||
|
||||
config.services.prometheus.exporters.postgres = enabled {
|
||||
listenAddress = "[::]";
|
||||
runAsLocalSuperUser = true;
|
||||
|
@ -26,6 +22,10 @@ in {
|
|||
|
||||
options.services.postgresql.ensure = mkValue [];
|
||||
|
||||
config.environment.systemPackages = [
|
||||
config.services.postgresql.package
|
||||
];
|
||||
|
||||
config.services.postgresql = enabled {
|
||||
package = pkgs.postgresql_14;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue