2023-07-07 13:55:13 +00:00
|
|
|
{
|
|
|
|
description = "clan.lol base operating system";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
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
|
|
|
};
|
|
|
|
|
2023-07-21 09:14:54 +00:00
|
|
|
outputs = inputs @ { flake-parts, ... }:
|
2023-07-21 12:01:56 +00:00
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
|
2023-07-21 12:00:52 +00:00
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2023-07-12 16:25:25 +00:00
|
|
|
imports = [
|
2023-07-12 17:00:09 +00:00
|
|
|
./flake-parts/formatting.nix
|
2023-07-26 16:23:08 +00:00
|
|
|
./flake-parts/modules.nix
|
|
|
|
./flake-parts/packages.nix
|
2023-07-26 15:24:43 +00:00
|
|
|
./flake-parts/writers
|
2023-07-21 13:13:26 +00:00
|
|
|
./templates/flake-module.nix
|
2023-07-20 15:32:28 +00:00
|
|
|
./templates/python-project/flake-module.nix
|
2023-07-20 23:08:35 +00:00
|
|
|
./pkgs/clan-cli/flake-module.nix
|
2023-07-12 16:25:25 +00:00
|
|
|
];
|
2023-07-07 13:55:13 +00:00
|
|
|
flake = {
|
|
|
|
nixosModules = {
|
|
|
|
installer = {
|
|
|
|
imports = [
|
2023-07-26 09:50:56 +00:00
|
|
|
./modules/installer.nix
|
|
|
|
./modules/hidden-ssh-announce.nix
|
2023-07-07 13:55:13 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
hidden-announce = {
|
|
|
|
imports = [
|
2023-07-26 09:50:56 +00:00
|
|
|
./modules/hidden-ssh-announce.nix
|
2023-07-07 13:55:13 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|