nix-conf/flake.nix

45 lines
1,013 B
Nix
Raw Normal View History

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-04-22 05:58:04 +00:00
master.url = "github:akr2002/nixpkgs/master";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-28 09:22:32 +00:00
nv = {
url = "github:akr2002/nv";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-02 04:04:39 +00:00
nyaa = {
url = "github:akr2002/nyaa";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-04-02 04:04:39 +00:00
outputs = {
self,
nixpkgs,
...
} @ inputs: let
2024-04-22 05:58:04 +00:00
inherit (self) outputs;
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
2024-04-02 04:04:39 +00:00
in {
2024-04-22 05:58:04 +00:00
overlays = import ./overlays {inherit inputs;};
nixosConfigurations.bridge = nixpkgs.lib.nixosSystem {
2024-04-22 05:58:04 +00:00
specialArgs = {inherit inputs outputs;};
2024-04-02 04:04:39 +00:00
modules = [
2024-04-11 06:22:21 +00:00
./hosts/default/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
}