diff options
author | Franck Cuny <franck@fcuny.net> | 2024-12-08 14:59:03 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-12-08 15:36:32 -0800 |
commit | 48ea2837adff1483d6d5e8dd6f65611914ddda88 (patch) | |
tree | 8adb236371b1b3db63d450bb98b583b5d0f67cc6 /nix/flake/devshell.nix | |
parent | refactor overall configuration (diff) | |
download | world-48ea2837adff1483d6d5e8dd6f65611914ddda88.tar.gz |
more refactoring
Diffstat (limited to '')
-rw-r--r-- | nix/flake/devshell.nix | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/nix/flake/devshell.nix b/nix/flake/devshell.nix deleted file mode 100644 index ae1d17d..0000000 --- a/nix/flake/devshell.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ inputs, ... }: { - imports = [ - inputs.devshell.flakeModule - inputs.treefmt-nix.flakeModule - inputs.pre-commit-hooks.flakeModule - ]; - - perSystem = { config, pkgs, ... }: { - devshells.default = { - name = "world"; - devshell.startup.pre-commit.text = config.pre-commit.installationScript; - packages = with pkgs; [ - (config.treefmt.build.wrapper) - just - nixos-rebuild - ]; - env = [{ - name = "DEVSHELL_NO_MOTD"; - value = "1"; - }]; - }; - - treefmt = { - - projectRootFile = ".git/config"; - - flakeFormatter = true; - flakeCheck = true; - - # list of supported programs - # https://github.com/numtide/treefmt-nix - programs = { - nixpkgs-fmt.enable = true; - shfmt.enable = true; - yamlfmt.enable = true; - }; - }; - - pre-commit = { - check.enable = true; - settings = { - hooks = { - deadnix.enable = true; - treefmt.enable = true; - }; - }; - }; - }; -} |