Merge branch 'main' of github.com:JulienMalka/nix-config

This commit is contained in:
Julien Malka 2023-04-06 22:42:04 +02:00
commit d6d83122b2
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 10 additions and 12 deletions

View file

@ -60,10 +60,8 @@
};
outputs = { self, home-manager, nixpkgs, unstable, deploy-rs, sops-nix, nixos-apple-silicon, ... }@inputs:
outputs = { self, nixpkgs, deploy-rs, ... }@inputs:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
pkgsrpi = import nixpkgs { system = "aarch64-linux"; };
lib = nixpkgs.lib.extend (import ./lib inputs);
machines_plats = lib.mapAttrsToList (name: value: value.arch) lib.luj.machines;
@ -74,7 +72,6 @@
})
machines_plats);
in
with lib;
rec {
nixosModules = builtins.listToAttrs (map
(x: {

View file

@ -40,10 +40,14 @@ with lib;
};
nix = {
command = "rnix-lsp";
filetypes = [
"nix"
];
command = "nil";
filetypes = [ "nix" ];
rootPatterns = [ "flake.nix" ];
settings = {
nil = {
formatting = { command = [ "nixpkgs-fmt" ]; };
};
};
};
};
};
@ -51,9 +55,6 @@ with lib;
withPython3 = true;
plugins = with pkgs.vimPlugins; [
# LSP
nvim-lspconfig
plenary-nvim
#Telescope
@ -90,7 +91,7 @@ with lib;
rust-vim
];
extraPackages = with pkgs; [ rust-analyzer rnix-lsp pyright haskell-language-server ];
extraPackages = with pkgs; [ rust-analyzer pkgs.unstable.nil pyright haskell-language-server nixpkgs-fmt ];
extraConfig = ''
luafile ${./settings.lua}