bonfire/flake.nix

61 lines
2.1 KiB
Nix
Raw Normal View History

2023-06-06 23:18:09 +05:00
{
description = "Derivation lit";
2023-06-06 23:18:09 +05:00
2023-12-20 13:55:15 +05:00
nixConfig = {
extra-substituters = ["https://bonfire.cachix.org"];
extra-trusted-public-keys = ["bonfire.cachix.org-1:mzAGBy/Crdf8NhKail5ciK7ZrGRbPJJobW6TwFb7WYM="];
};
2023-06-06 23:18:09 +05:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; };
cachix = { url = "github:cachix/devenv/v0.6.3"; inputs.nixpkgs.follows = "nixpkgs"; };
crane = { url = "github:ipetkov/crane"; inputs.nixpkgs.follows = "nixpkgs"; };
nixgl = { url = "github:guibou/nixGL"; inputs.nixpkgs.follows = "nixpkgs"; };
2023-06-06 23:18:09 +05:00
};
outputs = inputs @ { self, nixpkgs, home-manager, crane, nixgl, ... }: {
2023-12-19 11:52:26 +05:00
lib = import ./lib {};
nixosConfigurations = {
astora = with nixpkgs; lib.nixosSystem {
system = "x86_64-linux";
2023-12-15 19:49:42 +05:00
modules = [
home-manager.nixosModules.home-manager
./nixosConfigurations/astora
./nixosModules/bonfire.nix
self.nixosModules.spoofdpi
2023-12-15 19:49:42 +05:00
];
specialArgs = { inherit inputs; };
2023-06-06 23:18:09 +05:00
};
2024-01-06 18:08:40 +05:00
2024-01-06 18:09:34 +05:00
catarina = with nixpkgs; lib.nixosSystem {
2024-01-06 18:08:40 +05:00
system = "x86_64-linux";
modules = [
./nixosConfigurations/catarina
./nixosModules/bonfire.nix
self.nixosModules.spoofdpi
];
specialArgs = { inherit inputs; };
};
2023-06-06 23:18:09 +05:00
};
nixosModules = {
bonfire = import ./nixosModules/bonfire.nix;
spoofdpi = import ./nixosModules/spoofdpi { inherit self; };
2023-06-06 23:18:09 +05:00
};
2023-12-15 16:08:32 +05:00
templates = {
rust = { path = ./templates/rust; description = "Basic Rust template"; };
};
2023-12-19 11:52:26 +05:00
packages = import ./packages { inherit self nixpkgs; };
apps = import ./apps { inherit self nixpkgs; };
2023-12-19 12:36:54 +05:00
devShells = import ./devShells { inherit self nixpkgs crane; };
2023-06-06 23:18:09 +05:00
};
}