Move gitea-actions-runner.nix
Also remove any unneeded references to outputs.nixosModules.
This commit is contained in:
parent
403a93f951
commit
a0575bdb2a
9 changed files with 32 additions and 92 deletions
|
@ -83,8 +83,6 @@
|
|||
inputs@{ flake-parts, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
flake = {
|
||||
nixosModules.default = import ./modules/nixos;
|
||||
|
||||
overlays = import ./overlays { inherit inputs; };
|
||||
};
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
./users
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
outputs.nixosModules.default
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
../../users/opdavies.nix
|
||||
];
|
||||
|
||||
features = {
|
||||
cli.podman.enable = true;
|
||||
};
|
||||
|
||||
# TODO: why didn't it work when adding this to jitsi.nix?
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"jitsi-meet-1.0.8043"
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
services = {
|
||||
audiobookshelf.enable = true;
|
||||
gitea-actions-runner.enable = true;
|
||||
home-assistant.enable = true;
|
||||
homepage-dashboard.enable = true;
|
||||
jitsi.enable = true;
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./gitea-actions-runner.nix
|
||||
./podman.nix
|
||||
];
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.homelab;
|
||||
service = "gitea-actions-runner";
|
||||
in
|
||||
{
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.${service}.instances.default = {
|
||||
enable = true;
|
||||
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
nix
|
||||
nodejs
|
||||
wget
|
||||
];
|
||||
|
||||
labels = [
|
||||
"nixos:host"
|
||||
];
|
||||
|
||||
name = config.networking.hostName;
|
||||
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
||||
url = config.services.forgejo.settings.server.ROOT_URL;
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
forgejo-runner-token.file = "${inputs.self}/secrets/forgejo-runner-token.age";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.podman;
|
||||
in
|
||||
{
|
||||
options.features.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
oci-containers.backend = "podman";
|
||||
|
||||
podman = {
|
||||
enable = true;
|
||||
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
31
modules2/hosts/nixedo/gitea-actions-runner.nix
Normal file
31
modules2/hosts/nixedo/gitea-actions-runner.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos."nixosConfigurations/nixedo" =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.gitea-actions-runner.instances.default = {
|
||||
enable = true;
|
||||
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
nix
|
||||
nodejs
|
||||
wget
|
||||
];
|
||||
|
||||
labels = [ "nixos:host" ];
|
||||
|
||||
name = config.networking.hostName;
|
||||
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
||||
url = config.services.forgejo.settings.server.ROOT_URL;
|
||||
};
|
||||
|
||||
age.secrets.forgejo-runner-token.file = "${inputs.self}/secrets/forgejo-runner-token.age";
|
||||
};
|
||||
}
|
|
@ -16,8 +16,7 @@ with lib;
|
|||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
]
|
||||
++ optional config.features.cli.podman.enable "podman";
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
magic-wormhole
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue