about summary refs log tree commit diff
path: root/nix/flake/devshell.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-08 14:59:03 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-08 15:36:32 -0800
commit48ea2837adff1483d6d5e8dd6f65611914ddda88 (patch)
tree8adb236371b1b3db63d450bb98b583b5d0f67cc6 /nix/flake/devshell.nix
parentrefactor overall configuration (diff)
downloadworld-48ea2837adff1483d6d5e8dd6f65611914ddda88.tar.gz
more refactoring
Diffstat (limited to '')
-rw-r--r--nix/flake/devshell.nix49
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;
-        };
-      };
-    };
-  };
-}