git rid of useless modules

This commit is contained in:
Ingolf Wagner 2021-11-01 09:40:39 +01:00
parent 6dc18d06e1
commit a52507732a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 14 additions and 27 deletions

View file

@ -37,12 +37,8 @@ in
};
};
sops.secrets.jenkins_token = { };
krops.userKeys."accessToken" = {
user = "jenkins";
source = config.sops.secrets.jenkins_token.path;
requiredBy = [ "jenkins-job-builder.service" ];
sops.secrets.jenkins_token = {
owner = "jenkins";
};
services.jenkins = {
@ -57,9 +53,8 @@ in
# - mattermost plugin
jobBuilder = {
enable = true;
# create an access token in the admin users panel
accessTokenFile = config.krops.userKeys."accessToken".target;
accessTokenFile = config.sops.secrets.jenkins_token.path;
accessUser = "admin";
# https://docs.openstack.org/infra/jenkins-job-builder/definition.html#modules

View file

@ -20,17 +20,8 @@
url = "github:mrvandalo/home-manager-utils";
inputs.home-manager.follows = "home-manager";
};
backup-module = {
url = "git+https://git.ingolf-wagner.de/nix-modules/backup.git";
flake = false;
};
krops-lib = {
url = "git+https://git.ingolf-wagner.de/nix-modules/krops.git";
flake = false;
};
cluster-module = {
url =
"git+https://git.ingolf-wagner.de/nix-modules/cluster.git?rev=ef621797a30f8a57de16bf33672abdd411cbcece";
url = "git+https://git.ingolf-wagner.de/nix-modules/cluster.git?rev=ef621797a30f8a57de16bf33672abdd411cbcece";
flake = false;
};
nixpkgs-fmt = {
@ -46,9 +37,7 @@
, home-manager
, home-manager-utils
, doom-emacs-nix
, backup-module
, nixpkgs-unstable
, krops-lib
, cluster-module
, polygon-art
, nixpkgs-fmt
@ -59,7 +48,7 @@
nixosSystem = nixpkgs.lib.nixosSystem;
defaultModules = [
sops-nix.nixosModules.sops
{ imports = [ "${krops-lib}" "${cluster-module}" "${backup-module}" ]; }
{ imports = [ "${cluster-module}" ]; }
({ pkgs, ... }: {
nix = {
# no channesl needed this way

View file

@ -4,8 +4,7 @@ let
# command that ensures we use flake.nix during switch
command = targetPath:
let
commandLine =
"TMPDIR=/tmp nixos-rebuild test --flake ${targetPath} -L --keep-going";
commandLine = "TMPDIR=/tmp nixos-rebuild test --flake ${targetPath} -L --keep-going";
in
''
echo '${commandLine}'
@ -105,16 +104,20 @@ in
(desktop {
name = "sterni";
host = "sterni.private";
}) // (desktop {
}) //
(desktop {
name = "sternchen";
host = "sternchen.secret";
}) // (server {
}) //
(server {
name = "pepe";
host = "pepe.private";
}) // (server {
}) //
(server {
name = "workhorse";
host = "workhorse.private";
}) // (server {
}) //
(server {
name = "sputnik";
host = "sputnik.private";
})