DavHau
999fbe0d89
Some checks failed
build / test (pull_request) Failing after 24s
Also add capability of reading an option value
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{
|
|
description = "clan.lol base operating system";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
floco.url = "github:aakropotkin/floco";
|
|
floco.inputs.nixpkgs.follows = "nixpkgs";
|
|
disko.url = "github:nix-community/disko";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
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; } ({ ... }: {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
imports = [
|
|
./checks/flake-module.nix
|
|
./devShell.nix
|
|
./formatter.nix
|
|
./templates/flake-module.nix
|
|
|
|
./flakeModules/clan-config.nix
|
|
|
|
./pkgs/flake-module.nix
|
|
|
|
./lib/flake-module.nix
|
|
({ self, lib, ... }: {
|
|
flake.clanModules = lib.mapAttrs (_: nix: { imports = [ nix ]; }) (self.lib.findNixFiles ./clanModules);
|
|
flake.nixosModules = lib.mapAttrs (_: nix: { imports = [ nix ]; }) (self.lib.findNixFiles ./nixosModules);
|
|
})
|
|
];
|
|
});
|
|
}
|