Flake lock file updates: • Updated input 'crane': 'github:ipetkov/crane/5245473d6638a96da540e44372da96eebb97735a?narHash=sha256-VX8M6arxQU05mipDmLjk0TJVRNzu%2BVQx3w1gVmyPkO4%3D' (2025-03-03) → 'github:ipetkov/crane/75390a36cd0c2cdd5f1aafd8a9f827d7107f2e53?narHash=sha256-EV8KUaIZ2/CdBXlutXrHoZYbWPeB65p5kKZk71gvDRI%3D' (2025-03-05) • Updated input 'home-manager': 'github:nix-community/home-manager/fcac3d6d88302a5e64f6cb8014ac785e08874c8d?narHash=sha256-AXEgFj3C0YJhu9k1OhbRhiA6FnDr81dQZ65U3DhaWpw%3D' (2025-03-01) → 'github:nix-community/home-manager/486b066025dccd8af7fbe5dd2cc79e46b88c80da?narHash=sha256-g/TrltIjFHIjtzKY5CJpoPANfHQWDD43G5U1a/v5oVg%3D' (2025-03-05) • Updated input 'mystia': 'github:soopyc/mystia/66eace36b797e354c0a153a9ee727dee198ecf1b?narHash=sha256-v27A%2BgS2u1Y1O6t4ljUduZFVoFE7lg6J08k9zoMNwo4%3D' (2025-03-03) → 'github:soopyc/mystia/f6f297ceebebbdf7267cf3ca80d2ef51e44b1373?narHash=sha256-nwP0O2Vnie/e6oJvXOtUxH%2Bs1KM7V7VsaESdPfXakX8%3D' (2025-03-06) • Added input 'mystia/treefmt-nix': follows '' • Updated input 'nixos-wsl': 'github:nix-community/NixOS-WSL/1f40b43d01626ce994eb47150afa0d7215f396ca?narHash=sha256-eTS2wrC1jKR6PKXC9jZqQy5PwqbIOBLSLF3dwLiFJ8M%3D' (2025-02-26) → 'github:nix-community/NixOS-WSL/0e4ccdb8181da2c6193c047b50ffee5f1a3b6dc1?narHash=sha256-wB140alXVla1Rw/kENerUoma2qO1Jy5IYWbmiSqmJu0%3D' (2025-03-05) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/ba487dbc9d04e0634c64e3b1f0d25839a0a68246?narHash=sha256-WZNlK/KX7Sni0RyqLSqLPbK8k08Kq7H7RijPJbq9KHM%3D' (2025-03-03) → 'github:NixOS/nixpkgs/d69ab0d71b22fa1ce3dbeff666e6deb4917db049?narHash=sha256-k7VSqvv0r1r53nUI/IfPHCppkUAddeXn843YlAC5DR0%3D' (2025-03-05)
138 lines
3.2 KiB
Nix
138 lines
3.2 KiB
Nix
{
|
|
description = "example flake idk";
|
|
|
|
outputs =
|
|
{
|
|
agenix,
|
|
flake-parts,
|
|
treefmt-nix,
|
|
...
|
|
}@inputs:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
imports = [
|
|
treefmt-nix.flakeModule
|
|
./systems
|
|
];
|
|
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
system,
|
|
...
|
|
}:
|
|
{
|
|
devShells.default = pkgs.mkShellNoCC {
|
|
packages = with pkgs; [
|
|
agenix.packages.${system}.default
|
|
just
|
|
nh
|
|
nixfmt-rfc-style
|
|
statix
|
|
];
|
|
};
|
|
|
|
treefmt = {
|
|
projectRootFile = "flake.nix";
|
|
|
|
settings.excludes = [
|
|
".envrc"
|
|
".gitignore"
|
|
"*.age"
|
|
"flake.lock"
|
|
"justfile"
|
|
"LICENSE"
|
|
];
|
|
|
|
programs = {
|
|
nixfmt.enable = true;
|
|
prettier.enable = true;
|
|
stylua.enable = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
nixpkgs-camasca.url = "github:NixOS/nixpkgs/73cf49b8ad837ade2de76f87eb53fc85ed5d4680";
|
|
|
|
camasca = {
|
|
url = "git+https://git.uku3lig.net/uku/camasca";
|
|
inputs.nixpkgs.follows = "nixpkgs-camasca";
|
|
};
|
|
|
|
agenix = {
|
|
url = "github:uku3lig/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
inputs.home-manager.follows = "home-manager";
|
|
inputs.darwin.follows = "";
|
|
};
|
|
|
|
crane.url = "github:ipetkov/crane";
|
|
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
inputs.crane.follows = "crane";
|
|
inputs.pre-commit-hooks-nix.follows = "";
|
|
inputs.flake-compat.follows = "";
|
|
};
|
|
|
|
mystia = {
|
|
url = "github:soopyc/mystia";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.nix-update-soopy.follows = "";
|
|
inputs.flake-compat.follows = "";
|
|
inputs.treefmt-nix.follows = "";
|
|
};
|
|
|
|
nixos-wsl = {
|
|
url = "github:nix-community/NixOS-WSL";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-compat.follows = "";
|
|
};
|
|
|
|
# nix's most elaborate, overcomplicated joke
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
treefmt-nix = {
|
|
url = "github:numtide/treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# ==== uku3lig stuff ====
|
|
api-rs = {
|
|
url = "github:uku3lig/api-rs";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
};
|
|
|
|
ukubot-rs = {
|
|
url = "github:uku3lig/ukubot-rs";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
};
|
|
};
|
|
}
|