nix-config/flake.nix

75 lines
2.0 KiB
Nix
Raw Normal View History

2024-01-04 00:23:45 +01:00
{
2024-01-08 12:15:27 +01:00
description = "λ simple and configureable Nix-Flake repository!";
2024-01-04 00:23:45 +01:00
inputs = {
2024-01-08 12:15:27 +01:00
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "nixpkgs/nixpkgs-unstable";
2024-01-04 00:23:45 +01:00
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hardware.url = "github:nixos/nixos-hardware";
nix-colors.url = "github:misterio77/nix-colors";
2024-01-07 16:07:03 +01:00
catppuccin-vsc.url = "github:catppuccin/vscode";
2024-01-20 16:53:26 +01:00
crystal-flake.url = "github:manveru/crystal-flake";
waybar.url = "github:Alexays/Waybar";
hyprland.url = "github:hyprwm/Hyprland";
hyprlock.url = "github:hyprwm/hyprlock";
hypridle.url = "github:hyprwm/hypridle";
2024-03-17 11:26:33 +01:00
hyprpaper.url = "github:hyprwm/hyprpaper";
waybar-catppuccin.url = "github:catppuccin/waybar";
waybar-catppuccin.flake = false;
hyprland-catppuccin.url = "github:catppuccin/hyprland";
hyprland-catppuccin.flake = false;
2024-01-04 00:23:45 +01:00
};
2024-01-08 12:15:27 +01:00
outputs = inputs @ {
2024-01-04 00:23:45 +01:00
self,
nixpkgs,
2024-01-08 12:15:27 +01:00
nixpkgs-unstable,
2024-01-04 00:23:45 +01:00
...
2024-01-08 12:15:27 +01:00
}: let
inherit (lib.my) mapModules mapModulesRec mapHosts;
system = "x86_64-linux";
mkPkgs = pkgs: extraOverlays:
import pkgs {
inherit system;
config.allowUnfree = true;
config.allowAliases = false;
overlays = extraOverlays ++ (lib.attrValues self.overlays);
};
pkgs = mkPkgs nixpkgs [ self.overlays.default inputs.catppuccin-vsc.overlays.default ];
pkgs-unstable = mkPkgs nixpkgs-unstable [];
lib = nixpkgs.lib.extend (final: prev: {
my = import ./lib {
inherit pkgs inputs;
lib = final;
};
});
2024-01-04 00:23:45 +01:00
in {
2024-01-08 12:15:27 +01:00
lib = lib.my;
overlays =
(mapModules ./overlays import)
// {
default = final: prev: {
unstable = pkgs-unstable;
my = self.packages.${system};
};
};
2024-01-04 00:23:45 +01:00
packages."${system}" = mapModules ./packages (p: pkgs.callPackage p {});
2024-01-04 00:23:45 +01:00
2024-01-08 12:15:27 +01:00
nixosModules = mapModulesRec ./modules import;
2024-01-04 00:23:45 +01:00
2024-01-08 12:15:27 +01:00
nixosConfigurations = mapHosts ./hosts {};
2024-01-04 00:23:45 +01:00
};
}