clan-core/flake.nix
Jörg Thalheim 9aaac528f8 switch from alejandra -> nixpkgs-fmt
alejandra has someone questionable choices for formatting that no one would apply to there code if they would format manually.
nixpkgs-fmt seems to produce more readable results.
2023-07-21 11:15:28 +02:00

50 lines
1.5 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
];
};
};
};
});
}