all: add ci config / setup
This commit is contained in:
parent
c4e50ba989
commit
c39629e62d
@ -13,8 +13,8 @@ with lib; {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imports = [ ../modules/ts-rev-prox.nix ];
|
||||||
config = mkIf config.xinCI.enable {
|
config = mkIf config.xinCI.enable {
|
||||||
imports = [ ../../modules/ts-rev-prox.nix ];
|
|
||||||
sops.defaultSopsFile = config.xin-secrets.ci;
|
sops.defaultSopsFile = config.xin-secrets.ci;
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
ci_ed25519_key = {
|
ci_ed25519_key = {
|
||||||
|
11
default.nix
11
default.nix
@ -18,6 +18,7 @@ let
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./configs/ci.nix
|
||||||
./configs/colemak.nix
|
./configs/colemak.nix
|
||||||
./configs/develop.nix
|
./configs/develop.nix
|
||||||
./configs/dns.nix
|
./configs/dns.nix
|
||||||
@ -129,6 +130,16 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = if config.networking.hostName != "pwntie" then {
|
||||||
|
substituters = [ "https://nix-binary-cache.humpback-trout.ts.net/" ];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"nix-binary-cache.humpback-trout.ts.net:e9fJhcRtNVp6miW2pffFyK/gZ2et4y6IDigBNrEsAa0="
|
||||||
|
];
|
||||||
|
} else
|
||||||
|
{ };
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs;
|
environment.systemPackages = with pkgs;
|
||||||
[
|
[
|
||||||
age
|
age
|
||||||
|
10
flake.nix
10
flake.nix
@ -66,6 +66,10 @@
|
|||||||
url = "github:qbit/po";
|
url = "github:qbit/po";
|
||||||
inputs.nixpkgs.follows = "unstable";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
|
tsRevProx = {
|
||||||
|
url = "github:qbit/ts-reverse-proxy";
|
||||||
|
inputs.nixpkgs.follows = "unstable";
|
||||||
|
};
|
||||||
|
|
||||||
mcchunkie = {
|
mcchunkie = {
|
||||||
url = "github:qbit/mcchunkie";
|
url = "github:qbit/mcchunkie";
|
||||||
@ -90,8 +94,8 @@
|
|||||||
|
|
||||||
outputs = { self, unstable, unstableSmall, stable, oldStable, nixos-hardware
|
outputs = { self, unstable, unstableSmall, stable, oldStable, nixos-hardware
|
||||||
, reform, sshKnownHosts, microca, gostart, xintray, tsvnstat, pots, po
|
, reform, sshKnownHosts, microca, gostart, xintray, tsvnstat, pots, po
|
||||||
, taskobs, mcchunkie, gqrss, darwin, xin-secrets, talon, peerix, ...
|
, tsRevProx, taskobs, mcchunkie, gqrss, darwin, xin-secrets, talon, peerix
|
||||||
}@inputs:
|
, ... }@inputs:
|
||||||
let
|
let
|
||||||
supportedSystems = [ "x86_64-linux" ];
|
supportedSystems = [ "x86_64-linux" ];
|
||||||
#[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
#[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
||||||
@ -118,6 +122,7 @@
|
|||||||
inputs.reform.overlay
|
inputs.reform.overlay
|
||||||
inputs.gostart.overlay
|
inputs.gostart.overlay
|
||||||
inputs.pots.overlay
|
inputs.pots.overlay
|
||||||
|
inputs.tsRevProx.overlay
|
||||||
inputs.talon.overlays.default
|
inputs.talon.overlays.default
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -294,6 +299,7 @@
|
|||||||
inherit (tsvnstat.packages.${system}) tsvnstat;
|
inherit (tsvnstat.packages.${system}) tsvnstat;
|
||||||
inherit (pots.packages.${system}) pots;
|
inherit (pots.packages.${system}) pots;
|
||||||
inherit (po.packages.${system}) po;
|
inherit (po.packages.${system}) po;
|
||||||
|
inherit (tsRevProx.packages.${system}) ts-reverse-proxy;
|
||||||
});
|
});
|
||||||
|
|
||||||
templates."ada" = {
|
templates."ada" = {
|
||||||
|
@ -55,6 +55,11 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [ neovim nixfmt jq ];
|
environment.systemPackages = with pkgs; [ neovim nixfmt jq ];
|
||||||
|
|
||||||
|
xinCI = {
|
||||||
|
user = "qbit";
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
emacs = {
|
emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -68,7 +68,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (cfg.enable) {
|
config = lib.mkIf cfg.enable {
|
||||||
users.groups.${cfg.group} = { };
|
users.groups.${cfg.group} = { };
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
description = "tsrevprox service user";
|
description = "tsrevprox service user";
|
||||||
@ -91,7 +91,9 @@ in {
|
|||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
|
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${cfg.package}/bin/ts-reverse-proxy -name ${cfg.reverseName} -port ${toString cfg.reversePort} -ip ${cfg.reverseIP}";
|
"${cfg.package}/bin/ts-reverse-proxy -name ${cfg.reverseName} -port ${
|
||||||
|
toString cfg.reversePort
|
||||||
|
} -ip ${cfg.reverseIP}";
|
||||||
EnvironmentFile = cfg.envFile;
|
EnvironmentFile = cfg.envFile;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||||
in {
|
in {
|
||||||
|
overlay = final: prev: { inherit (self.packages.${prev.system}) thing; };
|
||||||
|
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (system:
|
||||||
let pkgs = nixpkgsFor.${system};
|
let pkgs = nixpkgsFor.${system};
|
||||||
in {
|
in {
|
||||||
|
Loading…
Reference in New Issue
Block a user