flake/flake.nix

69 lines
1.5 KiB
Nix
Raw Normal View History

2023-08-29 13:23:48 +02:00
{
description = "example flake idk";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2023-11-07 15:52:47 +01:00
2023-11-08 14:42:16 +01:00
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
2023-11-13 04:22:42 +01:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-08 14:42:16 +01:00
ragenix = {
url = "github:yaxitech/ragenix";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-08 15:18:44 +01:00
lanzaboote = {
url = "github:nix-community/lanzaboote";
2023-11-08 14:42:16 +01:00
inputs = {
nixpkgs.follows = "nixpkgs";
2023-11-08 15:18:44 +01:00
flake-parts.follows = "flake-parts";
2023-11-08 14:42:16 +01:00
};
};
2023-11-08 15:18:44 +01:00
getchvim = {
url = "github:getchoo/getchvim";
2023-11-08 14:42:16 +01:00
inputs = {
nixpkgs.follows = "nixpkgs";
2023-11-08 15:18:44 +01:00
parts.follows = "flake-parts";
2023-11-08 14:42:16 +01:00
};
2023-11-07 15:52:47 +01:00
};
2023-08-29 13:23:48 +02:00
};
2023-11-08 14:42:16 +01:00
outputs = {
nixpkgs,
ragenix,
2023-11-08 15:18:44 +01:00
lanzaboote,
2023-11-13 04:22:42 +01:00
home-manager,
2023-11-08 14:42:16 +01:00
...
2023-11-08 15:18:44 +01:00
} @ inputs: let
mkSystem = name:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./common.nix
./${name}
./${name}/hardware-configuration.nix
{networking.hostName = name;}
ragenix.nixosModules.default
lanzaboote.nixosModules.lanzaboote
2023-11-13 04:22:42 +01:00
home-manager.nixosModules.home-manager
];
specialArgs = inputs;
};
in {
nixosConfigurations = nixpkgs.lib.genAttrs ["fuji" "kilimandjaro"] mkSystem;
2023-11-05 22:49:25 +01:00
2023-11-07 19:01:37 +01:00
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
2023-08-29 13:23:48 +02:00
};
}