Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Pull in envrc and checker stuff from misaki

+22 -2
+1
.gitignore
··· 1 1 #hardware-configuration.nix 2 2 noah-password 3 3 .direnv/ 4 + .pre-commit-config.yaml
+16
default.nix
··· 1 + let 2 + nix-pre-commit-hooks = import (builtins.fetchTarball "https://github.com/cachix/pre-commit-hooks.nix/tarball/master"); 3 + in 4 + { 5 + # Configured with the module options defined in `modules/pre-commit.nix`: 6 + pre-commit-check = nix-pre-commit-hooks.run { 7 + src = ./.; 8 + # If your hooks are intrusive, avoid running on each commit with a default_states like this: 9 + # default_stages = ["manual" "push"]; 10 + hooks = { 11 + nixpkgs-fmt.enable = true; 12 + nil.enable = true; 13 + luacheck.enable = true; 14 + }; 15 + }; 16 + }
+5 -2
shell.nix
··· 1 - { pkgs ? import <nixos-unstable> {} }: 1 + { pkgs ? import <nixos-unstable> { } }: 2 2 pkgs.mkShell { 3 - packages = with pkgs; [ nil lua-language-server ]; 3 + packages = with pkgs; [ nil lua-language-server nixpkgs-fmt ]; 4 + shellHook = '' 5 + ${(import ./default.nix).pre-commit-check.shellHook} 6 + ''; 4 7 }