Skip to content

Commit

Permalink
add treefmt to devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Feb 25, 2024
1 parent 59e724e commit 9981884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
];

flake = {
# Configurations for my NixOS VM (running on Mac)
nixosConfigurations.linux-builder =
self.nixos-flake.lib.mkLinuxSystem
./systems/linux-builder.nix;

# Configurations for my (only) macOS machine (using nix-darwin)
# Configuration for my M1 Macbook Max (using nix-darwin)
darwinConfigurations.appreciate =
self.nixos-flake.lib.mkMacosSystem
./systems/darwin.nix;

# Configuration for a NixOS VM (running on my Mac)
nixosConfigurations.linux-builder =
self.nixos-flake.lib.mkLinuxSystem
./systems/linux-builder.nix;
};

perSystem = { self', system, pkgs, lib, config, inputs', ... }: {
Expand All @@ -98,6 +98,7 @@

packages.default = self'.packages.activate;
devShells.default = pkgs.mkShell {
inputsFrom = [ config.treefmt.build.devShell ];
packages = [
pkgs.nixpkgs-fmt
pkgs.sops
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default:
@just --list

fmt:
nix fmt
treefmt

# Remote deploy to a host
remote-deploy host='linux-builder':
Expand Down

0 comments on commit 9981884

Please sign in to comment.