mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: lurching towards relative usability
This commit is contained in:
parent
a0fb7eb402
commit
961ec369ba
51 changed files with 1349 additions and 407 deletions
9
shells/nix.nix
Normal file
9
shells/nix.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}:
|
||||
with pkgs;
|
||||
mkShell {
|
||||
nativeBuildInputs = [
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
];
|
||||
}
|
||||
15
shells/repo.nix
Normal file
15
shells/repo.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{pkgs, inputs, system, ...}: with pkgs; let
|
||||
repo = import ../outputs.nix (inputs // { inherit inputs system; });
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
in
|
||||
mkShell {
|
||||
nativeBuildInputs = [
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
] ++ mapAttrsToList (name: _:
|
||||
(pkgs.writeShellScriptBin "${name}-rebuild" ''
|
||||
darwin-rebuild switch --flake ${toString ../.}#${name}
|
||||
''))
|
||||
repo.darwinConfigurations;
|
||||
}
|
||||
12
shells/rust.nix
Normal file
12
shells/rust.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{pkgs, ...}:
|
||||
with pkgs;
|
||||
mkShell {
|
||||
nativeBuildInputs = [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
rustPackages.clippy
|
||||
rust-analyzer
|
||||
];
|
||||
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue