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, ... }:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } ({ lib
|
|
|
|
, config
|
|
|
|
, ...
|
|
|
|
}: {
|
2023-07-07 13:55:13 +00:00
|
|
|
systems = lib.systems.flakeExposed;
|
2023-07-12 16:25:25 +00:00
|
|
|
imports = [
|
2023-07-12 16:33:18 +00:00
|
|
|
./flake-parts/packages.nix
|
2023-07-12 17:00:09 +00:00
|
|
|
./flake-parts/formatting.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 = {
|
|
|
|
nixosConfigurations.installer = lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
config.flake.nixosModules.installer
|
|
|
|
inputs.nixos-generators.nixosModules.all-formats
|
|
|
|
];
|
|
|
|
};
|
|
|
|
nixosModules = {
|
|
|
|
installer = {
|
|
|
|
imports = [
|
|
|
|
./installer.nix
|
|
|
|
./hidden-announce.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
hidden-announce = {
|
|
|
|
imports = [
|
|
|
|
./hidden-announce.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|