This repository has been archived on 2026-09-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Mic92 8a05d267ac
buildbot/nix-eval evaluation succeeded in 12s (3 warnings)
buildbot/nix-build 76 attributes built
gitea-mq Already up to date with target branch
remove jitsi01
Replaced by project-zero's jitsi. lasuite-meet (meet.clan.lol) and the
matrix presence bot ran on the same box and are dropped too.
2026-09-18 11:15:41 +02:00

132 lines
4.3 KiB
Nix

{
nixConfig = {
extra-substituters = [ "https://cache.clan.lol" ];
extra-trusted-public-keys = [
"cache.clan.lol-1:3KztgSAB5R1M+Dz7vzkBGzXdodizbgLXGXKXlcQLA28="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
systems.url = "github:nix-systems/default/future-26.11";
nixpkgs.url = "git+https://github.com/NixOS/nixpkgs?ref=nixpkgs-unstable&shallow=1";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.systems.follows = "systems";
flake-compat.url = "github:edolstra/flake-compat";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix/pull/502/merge";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin.url = "github:nix-darwin/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "flake-compat";
inputs.git-hooks.follows = "";
};
srvos.url = "github:nix-community/srvos";
srvos.inputs.nixpkgs.follows = "nixpkgs";
clan-core.url = "git+https://git.clan.lol/clan/clan-core?ref=main&shallow=1";
clan-core.inputs.flake-parts.follows = "flake-parts";
clan-core.inputs.nixpkgs.follows = "nixpkgs";
clan-core.inputs.nix-darwin.follows = "nix-darwin";
clan-core.inputs.systems.follows = "systems";
clan-core.inputs.treefmt-nix.follows = "treefmt-nix";
nixbot.url = "github:Mic92/nixbot";
nixbot.inputs.nixpkgs.follows = "nixpkgs";
nixbot.inputs.treefmt-nix.follows = "treefmt-nix";
terranix.url = "github:terranix/terranix";
terranix.inputs.flake-parts.follows = "flake-parts";
terranix.inputs.nixpkgs.follows = "nixpkgs";
terranix.inputs.systems.follows = "systems";
gitea-mq.url = "github:Mic92/gitea-mq";
gitea-mq.inputs.nixpkgs.follows = "nixpkgs";
gitea-mq.inputs.treefmt-nix.follows = "treefmt-nix";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
niks3.url = "github:Mic92/niks3";
niks3.inputs.nixpkgs.follows = "nixpkgs";
niks3.inputs.treefmt-nix.follows = "treefmt-nix";
nixpkgs-terraform-providers-bin.url = "github:nix-community/nixpkgs-terraform-providers-bin";
nixpkgs-terraform-providers-bin.inputs.nixpkgs.follows = "nixpkgs";
personal-computing.url = "git+https://git.clan.lol/clan/personal-computing?ref=main&shallow=1";
personal-computing.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
# Hacky way to detect we're in a REPL
debug = builtins ? currentSystem;
imports = [
inputs.clan-core.flakeModules.default
inputs.treefmt-nix.flakeModule
./checks/flake-module.nix
./devShells/flake-module.nix
./machines/flake-module.nix
./modules/flake-module.nix
./pkgs/flake-module.nix
];
perSystem = {
treefmt = {
projectRootFile = ".git/config";
programs.terraform.enable = true;
programs.shellcheck.enable = true;
programs.ruff.check = true;
programs.ruff.format = true;
programs.yamlfmt.enable = true;
settings.global.excludes = [
# generated files
"sops/*"
"terraform.tfstate"
"*.tfvars.sops.json"
"*nixos-vars.json"
"secrets.yaml"
"facter.json"
"secrets.auto.tfvars.sops.json"
];
programs.deadnix.enable = true;
programs.deadnix.priority = 1;
programs.deadnix.no-lambda-arg = true;
programs.statix.enable = true;
programs.statix.priority = 2;
programs.nixfmt.enable = true;
programs.nixfmt.priority = 3;
programs.nixfmt.excludes = [
# generated files
"node-env.nix"
"node-packages.nix"
"composition.nix"
];
programs.actionlint.enable = true;
programs.flake-edit.enable = true;
};
};
};
}