oizys/flake.nix
2024-02-02 16:43:44 -06:00

38 lines
1.3 KiB
Nix

{
description = "nix begat oizys";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
hyprland.url = "github:hyprwm/Hyprland/main";
hyprland.inputs.nixpkgs.follows = "nixpkgs";
hyprland-contrib.url = "github:hyprwm/contrib";
hyprland-contrib.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
nixpkgs-wayland.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs-wayland.inputs.nix-eval-jobs.follows = "nix-eval-jobs";
nix-eval-jobs.url = "github:nix-community/nix-eval-jobs";
nix-eval-jobs.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig = {
extra-substituters = [
"https://hyprland.cachix.org"
"https://nixpkgs-wayland.cachix.org"
"https://daylin.cachix.org"
];
extra-trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k="
];
};
outputs = inputs @ {nixpkgs, ...}: let
lib = import ./lib {inherit inputs nixpkgs;};
inherit (lib) findModules mapHosts buildOizys;
in {
nixosModules = findModules ./modules;
nixosConfigurations = mapHosts ./hosts;
packages = buildOizys {};
};
}