dev.fron.io rc / 2ecc259
flake(shell): switch to devshell Tony Olagbaiye 8 months ago
1 changed file(s) with 7 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
267267 inputs.wayland.overlay
268268 inputs.agenix.overlay
269269 inputs.apparmor.overlay
270 inputs.devshell.overlay
270271 inputs.self.overlay
271272 (pkgs: lib.const {
272273 inherit (inputs.small.legacyPackages.${system}) firefox firefox-unwrapped; # slow and broken
750751
751752 devShell = forAllSystems ({ system, ... }:
752753 let
753 pkgs = import channels.pkgs { inherit system; };
754 in pkgs.mkShell {
755 nativeBuildInputs = with pkgs; let
754 pkgs = import channels.pkgs { inherit system; overlays = [ inputs.devshell.overlay ]; };
755 in pkgs.mkDevShell {
756 packages = with pkgs; let
756757 git-crypt = pkgs.git-crypt.overrideAttrs (attrs: rec {
757758 worktreePatch = fetchurl {
758759 name = "support-worktree-simple-version.patch";
765766 git git-crypt git-secrets nixfmt
766767 ];
767768
768 shellHook = ''
769 mkdir -p secrets
770 '';
771
772 NIX_CONF_DIR = with pkgs; let
769 env.NIX_CONF_DIR = with pkgs; let
773770 nixConf = ''
774771 ${lib.optionalString (builtins.pathExists /etc/nix/nix.conf)
775772 (builtins.readFile /etc/nix/nix.conf)}
782779 { name = "registry.json"; path = /etc/nix/registry.json; }
783780 { name = "machines"; path = /etc/nix/machines; }
784781 ] );
782
783 motd = "";
785784 }
786785 );
787786