2024-10-16 00:03:53 +01:00
|
|
|
{
|
|
|
|
description = "Alqueva is the largest lake in Portugal.";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nixos";
|
|
|
|
repo = "nixpkgs";
|
|
|
|
ref = "nixos-unstable";
|
|
|
|
};
|
|
|
|
flake-parts = {
|
|
|
|
type = "github";
|
|
|
|
owner = "hercules-ci";
|
|
|
|
repo = "flake-parts";
|
|
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
git-hooks-nix = {
|
|
|
|
type = "github";
|
|
|
|
owner = "cachix";
|
|
|
|
repo = "git-hooks.nix";
|
2024-12-10 15:12:00 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-10-16 00:03:53 +01:00
|
|
|
};
|
2024-10-16 01:47:33 +01:00
|
|
|
disko = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "disko";
|
2024-12-10 15:12:00 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-10-16 01:47:33 +01:00
|
|
|
};
|
2024-10-16 17:01:46 +01:00
|
|
|
wallpkgs = {
|
|
|
|
type = "github";
|
|
|
|
owner = "notashelf";
|
|
|
|
repo = "wallpkgs";
|
2024-12-10 15:12:00 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-10-29 15:37:11 +00:00
|
|
|
};
|
2024-11-02 17:48:54 +00:00
|
|
|
pankomacs = {
|
2024-10-29 15:37:11 +00:00
|
|
|
type = "git";
|
2024-11-02 17:48:54 +00:00
|
|
|
url = "https://codeberg.org/amadaluzia/pankomacs.git";
|
|
|
|
ref = "main";
|
2024-12-10 15:12:00 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-10-29 15:37:11 +00:00
|
|
|
};
|
2024-11-11 00:48:02 +00:00
|
|
|
rosepine-qutebrowser = {
|
|
|
|
type = "github";
|
|
|
|
owner = "aalbegr";
|
|
|
|
repo = "qutebrowser-rose-pine";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-11-25 21:04:18 +00:00
|
|
|
painless-neovim = {
|
|
|
|
type = "git";
|
|
|
|
url = "https://codeberg.org/amadaluzia/painless-neovim.git";
|
|
|
|
ref = "master";
|
2024-12-10 15:12:00 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-11-25 21:04:18 +00:00
|
|
|
};
|
2024-10-16 00:03:53 +01:00
|
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
|
|
nixpkgs,
|
|
|
|
flake-parts,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
lib = nixpkgs.lib.extend (import ./lib {inherit inputs;});
|
|
|
|
in
|
|
|
|
flake-parts.lib.mkFlake {
|
|
|
|
inherit inputs;
|
|
|
|
specialArgs = {inherit lib;};
|
|
|
|
} {
|
|
|
|
systems = ["x86_64-linux"];
|
|
|
|
imports = [
|
2024-11-30 15:18:36 +00:00
|
|
|
./hosts
|
2024-10-16 17:01:46 +01:00
|
|
|
./overlays
|
2024-10-16 00:03:53 +01:00
|
|
|
inputs.git-hooks-nix.flakeModule
|
|
|
|
];
|
2024-11-11 00:48:02 +00:00
|
|
|
flake = {inherit lib;};
|
2024-10-16 00:03:53 +01:00
|
|
|
perSystem = {
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
pre-commit = {
|
|
|
|
check.enable = true;
|
|
|
|
settings.hooks = {
|
|
|
|
alejandra.enable = true;
|
|
|
|
deadnix = {
|
|
|
|
enable = true;
|
|
|
|
args = ["-e"];
|
|
|
|
};
|
|
|
|
statix = {
|
|
|
|
enable = true;
|
|
|
|
args = ["fix"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
devShells.default = config.pre-commit.devShell;
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|