# SPDX-FileCopyrightText: 2025 Ethan Reece # # SPDX-License-Identifier: LGPL-3.0-or-later { description = "Nix Flake template"; inputs = { flake-lib = { url = "git+https://git.sudoer777.dev/me/nix-flake-base.git?ref=main"; flake = true; inputs = { devshell.follows = "devshell"; flake-parts.follows = "flake-parts"; git-hooks-nix.follows = "git-hooks-nix"; lix-module.follows = "lix-module"; nixgl.follows = "nixgl"; nixpkgs.follows = "nixpkgs"; treefmt-nix.follows = "treefmt-nix"; }; }; devshell.url = "github:numtide/devshell"; flake-parts = { url = "github:hercules-ci/flake-parts"; inputs.nixpkgs-lib.follows = "nixpkgs"; }; git-hooks-nix.url = "github:cachix/git-hooks.nix"; lix-module = { url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"; inputs.nixpkgs.follows = "nixpkgs"; }; nixgl = { url = "github:nix-community/nixGL"; inputs.nixpkgs.follows = "nixpkgs"; }; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; treefmt-nix.url = "github:numtide/treefmt-nix"; }; outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } ( { lib, withSystem, ... }: { systems = [ "aarch64-linux" ]; imports = [ ./flake-module.nix ]; flake.flakeModule = ./flake-module.nix; perSystem = { pkgs, system, ... }: { invoice.company = "Library"; editors.helix.enable = true; settings.reuse.enable = lib.mkForce true; languages = { en-us = { enable = true; dictionary = [ "Reece" ]; vale."README.md".packages = { RedHat.enable = true; proselint.enable = true; write-good.enable = true; alex.enable = true; }; }; markdown.enable = true; nix.enable = true; plain-text.enable = true; toml.enable = true; yaml.enable = true; }; devshells.default = { packages = [ pkgs.forgejo-cli ]; }; }; } ); }