From 2fe677e959a65024fef92c8b0994826818cc3aed Mon Sep 17 00:00:00 2001 From: sils Date: Sat, 18 Nov 2023 12:30:25 +0100 Subject: feat(flake): declare devShell and formatter for i686-linux --- flake.nix | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index ce2ce0a..1ad7ecb 100644 --- a/flake.nix +++ b/flake.nix @@ -125,8 +125,10 @@ impermanence, wl-togglescreens, sops-nix, + flake-utils, ... } @ attrs: let + utils = flake-utils.lib; system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; @@ -147,36 +149,37 @@ }; } ]; - in { - nixosConfigurations = { - thinklappi = nixpkgs.lib.nixosSystem { - inherit system; - specialArgs = attrs; - modules = - [ - ./hosts/thinklappi - ] - ++ defaultModules; - }; - thinklappi-bootstrap = nixpkgs.lib.nixosSystem { - inherit system; - specialArgs = attrs; - modules = [ - ./hosts/thinklappi-bootstrap - lanzaboote.nixosModules.lanzaboote - ]; + in + { + nixosConfigurations = { + thinklappi = nixpkgs.lib.nixosSystem { + inherit system; + specialArgs = attrs; + modules = + [ + ./hosts/thinklappi + ] + ++ defaultModules; + }; + thinklappi-bootstrap = nixpkgs.lib.nixosSystem { + inherit system; + specialArgs = attrs; + modules = [ + ./hosts/thinklappi-bootstrap + lanzaboote.nixosModules.lanzaboote + ]; + }; }; - }; - devShells."${system}" = { - default = pkgs.mkShell { + } + // utils.eachDefaultSystem (system: { + devShell = pkgs.mkShell { packages = with pkgs; [ nil statix alejandra ]; }; - }; - formatter."${system}" = pkgs.alejandra; - }; + formatter = pkgs.alejandra; + }); } -- cgit 1.4.1