teutat3s
df878d84b8
All checks were successful
Flake checks / Check (pull_request) Successful in 42m48s
Fix warnings: trace: evaluation warning: The option `services.forgejo.mailerPasswordFile' defined in `/nix/store/13vqhb5askjgi07wqwxawq4bdm7h0wc7-source/flake.nix, via option flake.nixosModules.forgejo' has been renamed to `services.forgejo.secrets.mailer.PASSWD'. trace: evaluation warning: Using `services.nextcloud.config.dbtableprefix` is deprecated. Fresh installations with this option set are not allowed anymore since v20. If you have an existing installation with a custom table prefix, make sure it is set correctly in `config.php` and remove the option from your NixOS config. Fix errors: - The option definition `services.matrix-sliding-sync' in `/nix/store/wgxgv8rjbd2nhf7y28kfzm4n6kz85dnq-source/flake.nix, via option flake.nixosModules.matrix' no longer has any effect; please remove it. The matrix-sliding-sync package has been removed, since matrix-synapse incorporated its functionality - The option `services.keycloak.settings.proxy' has been removed. Set `services.keycloak.settings.proxy-headers` in combination with other hostname options as needed instead. See [Proxy option removed](https://www.keycloak.org/docs/latest/upgrading/index.html#proxy-option-removed) for more information. error: The option `services.matrix-appservice-irc.settings.ircService.mediaProxy.publicUrl' was accessed but has no value defined. Try setting the option.
161 lines
4.8 KiB
Nix
161 lines
4.8 KiB
Nix
{
|
|
inputs = {
|
|
# Track channels with commits tested and built by hydra
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
fork.url = "github:teutat3s/nixpkgs/init-matrix-authentication-service-module";
|
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
agenix.inputs.darwin.follows = "nix-darwin";
|
|
agenix.inputs.home-manager.follows = "home-manager";
|
|
|
|
keycloak-theme-pub-solar.url = "git+https://git.pub.solar/pub-solar/keycloak-theme?ref=main";
|
|
keycloak-theme-pub-solar.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
element-themes.url = "github:aaronraimist/element-themes/master";
|
|
element-themes.flake = false;
|
|
|
|
maunium-stickerpicker.url = "github:maunium/stickerpicker?ref=master&dir=web";
|
|
maunium-stickerpicker.flake = false;
|
|
|
|
element-stickers.url = "git+https://git.pub.solar/pub-solar/maunium-stickerpicker-nix?ref=main";
|
|
element-stickers.inputs.maunium-stickerpicker.follows = "maunium-stickerpicker";
|
|
element-stickers.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.11";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ self, ... }:
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
imports = [
|
|
./logins
|
|
./lib
|
|
./overlays
|
|
./hosts
|
|
];
|
|
|
|
perSystem =
|
|
{
|
|
system,
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
_module.args = {
|
|
inherit inputs;
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
overlays = [ inputs.agenix.overlays.default ];
|
|
};
|
|
unstable = import inputs.unstable { inherit system; };
|
|
master = import inputs.master { inherit system; };
|
|
};
|
|
|
|
checks =
|
|
let
|
|
nixos-lib = import (inputs.nixpkgs + "/nixos/lib") { };
|
|
testDir = builtins.attrNames (builtins.readDir ./tests);
|
|
testFiles = builtins.filter (n: builtins.match "^.*.nix$" n != null) testDir;
|
|
in
|
|
builtins.listToAttrs (
|
|
map (x: {
|
|
name = "test-${lib.strings.removeSuffix ".nix" x}";
|
|
value = nixos-lib.runTest (
|
|
import (./tests + "/${x}") {
|
|
inherit self;
|
|
inherit pkgs;
|
|
inherit lib;
|
|
inherit config;
|
|
}
|
|
);
|
|
}) testFiles
|
|
);
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
deploy-rs
|
|
nixpkgs-fmt
|
|
agenix
|
|
age-plugin-yubikey
|
|
cachix
|
|
editorconfig-checker
|
|
nodePackages.prettier
|
|
nvfetcher
|
|
shellcheck
|
|
shfmt
|
|
treefmt2
|
|
nixos-generators
|
|
opentofu
|
|
terraform-backend-git
|
|
terraform-ls
|
|
jq
|
|
];
|
|
};
|
|
|
|
devShells.ci = pkgs.mkShell { buildInputs = with pkgs; [ nodejs ]; };
|
|
};
|
|
|
|
flake = {
|
|
nixosModules = builtins.listToAttrs (
|
|
map (x: {
|
|
name = x;
|
|
value = import (./modules + "/${x}");
|
|
}) (builtins.attrNames (builtins.readDir ./modules))
|
|
);
|
|
|
|
checks = builtins.mapAttrs (
|
|
system: deployLib: deployLib.deployChecks self.deploy
|
|
) inputs.deploy-rs.lib;
|
|
|
|
formatter."x86_64-linux" = inputs.nixpkgs.legacyPackages."x86_64-linux".nixfmt-rfc-style;
|
|
|
|
deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations {
|
|
nachtigall = {
|
|
hostname = "nachtigall.wg.pub.solar";
|
|
};
|
|
metronom = {
|
|
hostname = "metronom.wg.pub.solar";
|
|
};
|
|
tankstelle = {
|
|
hostname = "tankstelle.wg.pub.solar";
|
|
};
|
|
underground = {
|
|
hostname = "80.244.242.3";
|
|
};
|
|
trinkgenossin = {
|
|
hostname = "trinkgenossin.wg.pub.solar";
|
|
};
|
|
delite = {
|
|
hostname = "delite.wg.pub.solar";
|
|
};
|
|
blue-shell = {
|
|
hostname = "blue-shell.wg.pub.solar";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|