clan-infra/flake.nix
Jörg Thalheim a7c6453052
All checks were successful
build / test (push) Successful in 8s
flake.lock: Update
Flake lock file updates:

• Updated input 'clan-core':
    'git+https://git.clan.lol/clan/clan-core?ref=refs/heads/main&rev=7f54a64c0a8d538381207ef19c2b1185343628b0' (2023-08-02)
  → 'git+https://git.clan.lol/clan/clan-core?ref=refs/heads/main&rev=6f22717ffd26aeb5146d727d14e1c64d56a20218' (2023-08-08)
• Updated input 'clan-core/disko':
    'github:nix-community/disko/4015740375676402a2ee6adebc3c30ea625b9a94' (2023-07-30)
  → 'github:nix-community/disko/493b347d8fffa6912afb8d89b91703cd40ff6038' (2023-08-06)
• Added input 'clan-core/floco':
    'github:aakropotkin/floco/1e84b4b16bba5746e1195fa3a4d8addaaf2d9ef4' (2023-08-03)
• Added input 'clan-core/floco/nixpkgs':
    follows 'clan-core/nixpkgs'
• Removed input 'clan-core/nix-unit'
• Removed input 'clan-core/nix-unit/flake-parts'
• Removed input 'clan-core/nix-unit/nix-github-actions'
• Removed input 'clan-core/nix-unit/nix-github-actions/nixpkgs'
• Removed input 'clan-core/nix-unit/nixpkgs'
• Removed input 'clan-core/nix-unit/treefmt-nix'
• Removed input 'clan-core/pre-commit-hooks-nix'
• Removed input 'clan-core/pre-commit-hooks-nix/flake-compat'
• Removed input 'clan-core/pre-commit-hooks-nix/flake-utils'
• Removed input 'clan-core/pre-commit-hooks-nix/flake-utils/systems'
• Removed input 'clan-core/pre-commit-hooks-nix/gitignore'
• Removed input 'clan-core/pre-commit-hooks-nix/gitignore/nixpkgs'
• Removed input 'clan-core/pre-commit-hooks-nix/nixpkgs'
• Removed input 'clan-core/pre-commit-hooks-nix/nixpkgs-stable'
2023-08-08 13:48:48 +02:00

63 lines
2.0 KiB
Nix

{
description = "Dependencies to deploy a clan";
nixConfig = {
extra-substituters = [ "https://cache.clan.lol" ];
extra-trusted-public-keys = [ "cache.clan.lol-1:j83TYLUVsrSXZvQdMoY+Ms81Xd/nO8GNuQQHqphzRSg=" ];
};
inputs = {
# https://github.com/NixOS/nixpkgs/pull/243252
nixpkgs.url = "github:Mic92/nixpkgs/daemon";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.inputs.nixpkgs-stable.follows = "";
srvos.url = "github:numtide/srvos";
# Use the version of nixpkgs that has been tested to work with SrvOS
srvos.inputs.nixpkgs.follows = "nixpkgs";
clan-core.url = "git+https://git.clan.lol/clan/clan-core";
clan-core.inputs.flake-parts.follows = "flake-parts";
clan-core.inputs.nixpkgs.follows = "nixpkgs";
clan-core.inputs.treefmt-nix.follows = "treefmt-nix";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
systems = [
"x86_64-linux"
"aarch64-linux"
];
imports = [
inputs.treefmt-nix.flakeModule
./devShells/flake-module.nix
./targets/flake-module.nix
./modules/flake-module.nix
./pkgs/flake-module.nix
./pkgs/clan-merge/flake-module.nix
];
perSystem = { ... }: {
treefmt = {
projectRootFile = "flake.nix";
programs.terraform.enable = true;
programs.nixpkgs-fmt.enable = true;
settings.formatter.nixpkgs-fmt.excludes = [
# generated files
"node-env.nix"
"node-packages.nix"
"composition.nix"
];
};
};
});
}