diff options
| author | Chris Wells <chris@mathematicaster.org> | 2026-10-28 01:20:16 -0400 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2026-10-28 01:20:16 -0400 |
| commit | f9bdbf51aa61503d77e387095e7a4e1f34acdde3 (patch) | |
| tree | 22623c6b8e43ff003de6079d7f70cef3dc2f7c13 /flake.nix | |
| download | ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.tar ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.tar.gz ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.tar.bz2 ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.tar.lz ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.tar.xz ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.tar.zst ko-manager-f9bdbf51aa61503d77e387095e7a4e1f34acdde3.zip | |
First few files
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ac79d55 --- /dev/null +++ b/flake.nix @@ -0,0 +1,49 @@ +{ + description = "Nix utilities to manage koreader"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-parts.url = "github:hercules-ci/flake-parts"; + systems.url = "github:nix-systems/default"; + treefmt-nix = { + url = "github:numtide/treefmt-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = inputs@{self, ...}: inputs.flake-parts.lib.mkFlake { inherit inputs self; } { + systems = import inputs.systems; + + flake.overlays.default = import ./overlays; + + imports = [ + inputs.treefmt-nix.flakeModule + ./modules + ]; + + perSystem = { pkgs, config, system, ... }: { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ self.overlays.default ]; + }; + + treefmt = { + programs = { + nixfmt = { + enable = true; + strict = true; + }; + }; + }; + + devShells.default = pkgs.mkShellNoCC { + inputsFrom = [ config.treefmt.build.devShell ]; + nativeBuildInputs = with pkgs; [ + nixd + statix + deadnix + ]; + }; + }; + }; +} |
