working devShell!
This commit is contained in:
parent
72a136dbd6
commit
8e2371ddf6
11 changed files with 21 additions and 19 deletions
10
flake.nix
10
flake.nix
|
@ -4,14 +4,16 @@
|
|||
inputs.flake-parts.lib.mkFlake {inherit inputs;} (
|
||||
{withSystem, ...}: {
|
||||
systems = [
|
||||
"x86-64_linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
imports = [
|
||||
inputs.treefmt-nix.flakeModule
|
||||
#./flake/pre-commit
|
||||
./flake/shell.nix
|
||||
./flake/fmt.nix
|
||||
# inputs.flake-parts.flakeModules.easyOverlay
|
||||
# #./flake/pre-commit
|
||||
./parts/shell.nix
|
||||
./parts/fmt.nix
|
||||
];
|
||||
|
||||
flake = {
|
||||
nixosConfigurations = import ./hosts {inherit inputs withSystem;};
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@ in {
|
|||
enable = true;
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
flake = "/home/vali/repos/nichts";
|
||||
flake = "/home/vali/projects/nichts";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -51,4 +51,3 @@ in {
|
|||
# extraConfig = ./kakrc;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
_:{
|
||||
_: {
|
||||
programs.neovim-flake.settings.vim = {
|
||||
assistant.copilot = {
|
||||
enable = false;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
_:{
|
||||
_: {
|
||||
programs.neovim-flake.settings.vim = {
|
||||
autocomplete = {
|
||||
enable = true;
|
||||
|
@ -10,7 +10,6 @@ _:{
|
|||
previous = "<C-p>";
|
||||
scrollDocsDown = "<C-j>";
|
||||
scrollDocsUp = "<C-k>";
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
_:{
|
||||
_: {
|
||||
programs.neovim-flake.settings.vim = {
|
||||
binds = {
|
||||
whichKey.enable = true;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
formatter = config.treefmt.build.wrapper;
|
||||
treefmt = {
|
||||
projectRootFile = "flake.nix";
|
||||
enableDefaultExcludes = true;
|
||||
programs = {
|
||||
alejandra.enable = true;
|
||||
|
|
@ -6,16 +6,17 @@
|
|||
}: {
|
||||
devShells.default = pkgs.mkShellNoCC {
|
||||
name = "nichts";
|
||||
|
||||
shellHook = ''
|
||||
${config.pre-commit.installationScript}
|
||||
'';
|
||||
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
|
||||
#inputsFrom = [config.treefmt.build.devShell];
|
||||
packages = with pkgs; [
|
||||
inputsFrom = [config.treefmt.build.devShell];
|
||||
packages = [
|
||||
config.treefmt.build.wrapper # treewide formatter
|
||||
nil # nix language server
|
||||
alejandra
|
||||
git # take a guess
|
||||
statix # no idea
|
||||
deadnix # clean up unused nix code
|
||||
pkgs.git # take a guess
|
||||
|
||||
(pkgs.writeShellApplication {
|
||||
name = "update";
|
Loading…
Add table
Add a link
Reference in a new issue