mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
add treefmt to devShell
This commit is contained in:
parent
59e724e9fd
commit
99818845b3
2 changed files with 8 additions and 7 deletions
13
flake.nix
13
flake.nix
|
|
@ -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', ... }: {
|
||||
|
|
@ -98,6 +98,7 @@
|
|||
|
||||
packages.default = self'.packages.activate;
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = [ config.treefmt.build.devShell ];
|
||||
packages = [
|
||||
pkgs.nixpkgs-fmt
|
||||
pkgs.sops
|
||||
|
|
|
|||
2
justfile
2
justfile
|
|
@ -2,7 +2,7 @@ default:
|
|||
@just --list
|
||||
|
||||
fmt:
|
||||
nix fmt
|
||||
treefmt
|
||||
|
||||
# Remote deploy to a host
|
||||
remote-deploy host='linux-builder':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue