2024-01-12 15:59:57 +01:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-02-20 21:02:36 +01:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-01-12 15:59:57 +01:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-02-19 12:02:16 +01:00
|
|
|
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
2024-01-12 15:59:57 +01:00
|
|
|
home-manager = {
|
2024-02-11 02:01:29 +01:00
|
|
|
url = "github:nix-community/home-manager/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-12 15:59:57 +01:00
|
|
|
};
|
|
|
|
};
|
2024-03-03 12:34:10 +01:00
|
|
|
#inputs.agenix.url = "github:ryantm/agenix";
|
2024-02-11 02:01:29 +01:00
|
|
|
inputs.firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
2024-02-10 14:52:08 +01:00
|
|
|
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-01-28 22:51:43 +01:00
|
|
|
inputs.nixvim = {
|
|
|
|
# If you are not running an unstable channel of nixpkgs, select the corresponding branch of nixvim.
|
2024-03-07 17:45:15 +01:00
|
|
|
url = "github:nix-community/nixvim/22b587f3dc5c040eb1916aa2a67868f1918d9d17";
|
2024-01-12 15:59:57 +01:00
|
|
|
|
2024-01-28 22:51:43 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-03-03 12:34:10 +01:00
|
|
|
outputs = inputs @ {self, nixpkgs, nixpkgs-master, firefox-addons, home-manager, nixos-hardware, nixvim, ...}: let
|
2024-01-12 15:59:57 +01:00
|
|
|
lib = nixpkgs.lib;
|
|
|
|
util = (import ./overlays/util.nix {} {}).util;
|
|
|
|
system = "x86_64-linux";
|
2024-01-28 22:51:43 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; overlays =
|
|
|
|
util.nixFilesIn ./overlays; };
|
2024-01-12 15:59:57 +01:00
|
|
|
in {
|
|
|
|
nixosConfigurations = pkgs.util.mapHostAttrs (host: host) (host: lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-02-22 17:54:50 +01:00
|
|
|
modules = [
|
|
|
|
./hosts/${host}
|
2024-01-28 22:51:43 +01:00
|
|
|
];
|
2024-02-22 17:54:50 +01:00
|
|
|
specialArgs = { inherit inputs; };
|
2024-01-12 15:59:57 +01:00
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|