2023-07-07 13:55:13 +00:00
|
|
|
{
|
|
|
|
description = "clan.lol base operating system";
|
|
|
|
|
2023-10-04 06:06:55 +00:00
|
|
|
nixConfig.extra-substituters = [ "https://cache.clan.lol" ];
|
2024-03-17 18:48:49 +00:00
|
|
|
nixConfig.extra-trusted-public-keys = [
|
|
|
|
"cache.clan.lol-1:3KztgSAB5R1M+Dz7vzkBGzXdodizbgLXGXKXlcQLA28="
|
|
|
|
];
|
2023-10-04 06:06:55 +00:00
|
|
|
|
2023-07-07 13:55:13 +00:00
|
|
|
inputs = {
|
2023-11-08 09:17:00 +00:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
2023-11-07 19:53:29 +00:00
|
|
|
|
2023-10-04 06:06:55 +00:00
|
|
|
disko.url = "github:nix-community/disko";
|
2023-07-28 14:37:10 +00:00
|
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-23 09:58:12 +00:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
2023-11-11 17:28:18 +00:00
|
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-23 09:58:12 +00:00
|
|
|
sops-nix.inputs.nixpkgs-stable.follows = "";
|
2023-07-07 14:05:38 +00:00
|
|
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
2023-07-07 13:55:13 +00:00
|
|
|
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
2023-07-12 17:00:09 +00:00
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
|
|
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-07-07 13:55:13 +00:00
|
|
|
};
|
|
|
|
|
2024-03-17 18:48:49 +00:00
|
|
|
outputs =
|
|
|
|
inputs@{ flake-parts, ... }:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } (
|
|
|
|
{ lib, ... }:
|
|
|
|
{
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
imports = [
|
|
|
|
./checks/flake-module.nix
|
|
|
|
./devShell.nix
|
|
|
|
./devShell-python.nix
|
|
|
|
./formatter.nix
|
|
|
|
./templates/flake-module.nix
|
|
|
|
./clanModules/flake-module.nix
|
2023-08-05 09:42:48 +00:00
|
|
|
|
2024-03-17 18:48:49 +00:00
|
|
|
./pkgs/flake-module.nix
|
2023-08-05 09:42:48 +00:00
|
|
|
|
2024-03-17 18:48:49 +00:00
|
|
|
./lib/flake-module.nix
|
|
|
|
./nixosModules/flake-module.nix
|
|
|
|
{
|
|
|
|
options.flake = flake-parts.lib.mkSubmoduleOptions {
|
|
|
|
clanInternals = lib.mkOption {
|
|
|
|
type = lib.types.submodule {
|
|
|
|
options = {
|
|
|
|
all-machines-json = lib.mkOption { type = lib.types.attrsOf lib.types.str; };
|
|
|
|
machines = lib.mkOption { type = lib.types.attrsOf (lib.types.attrsOf lib.types.unspecified); };
|
|
|
|
machinesFunc = lib.mkOption { type = lib.types.attrsOf (lib.types.attrsOf lib.types.unspecified); };
|
2024-02-10 10:47:09 +00:00
|
|
|
};
|
2023-12-18 22:38:27 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-17 18:48:49 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
);
|
2023-07-07 13:55:13 +00:00
|
|
|
}
|