forked from clan/clan-core
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{
|
|
description = "clan.lol base operating system";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
|
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
|
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";
|
|
};
|
|
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} ({
|
|
lib,
|
|
config,
|
|
self,
|
|
...
|
|
}: {
|
|
systems = lib.systems.flakeExposed;
|
|
imports = [
|
|
./flake-parts/packages.nix
|
|
./flake-parts/formatting.nix
|
|
./templates/python-project/flake-module.nix
|
|
];
|
|
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
|
|
];
|
|
};
|
|
};
|
|
};
|
|
});
|
|
}
|