From b87ced9a95fd0de4e3631e67cc5a7a929adee464 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Wed, 28 Oct 2026 11:49:51 -0400 Subject: Working concept with an instance for my pocketbook --- flake.nix | 62 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 28 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index ac79d55..ebd0c77 100644 --- a/flake.nix +++ b/flake.nix @@ -11,39 +11,45 @@ }; }; - outputs = inputs@{self, ...}: inputs.flake-parts.lib.mkFlake { inherit inputs self; } { - systems = import inputs.systems; + 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 + ]; - imports = [ - inputs.treefmt-nix.flakeModule - ./modules - ]; + perSystem = + { + pkgs, + config, + system, + ... + }: + { + treefmt = { + programs = { + nixfmt = { + enable = true; + strict = true; + }; + }; + }; - perSystem = { pkgs, config, system, ... }: { - _module.args.pkgs = import inputs.nixpkgs { - inherit system; - overlays = [ self.overlays.default ]; - }; + devShells.default = pkgs.mkShellNoCC { + inputsFrom = [ config.treefmt.build.devShell ]; + nativeBuildInputs = with pkgs; [ + nixd + statix + deadnix + ]; + }; - treefmt = { - programs = { - nixfmt = { - enable = true; - strict = true; + koreader = { + pocketbook = ./instances/pocketbook.nix; }; }; - }; - - devShells.default = pkgs.mkShellNoCC { - inputsFrom = [ config.treefmt.build.devShell ]; - nativeBuildInputs = with pkgs; [ - nixd - statix - deadnix - ]; - }; }; - }; } -- cgit v1.3.1