A .envrc => .envrc +1 -0
M flake.nix => flake.nix +10 -0
@@ 38,6 38,10 @@
let # Variables that can be used in the config files.
user = "ruther";
location = "$HOME/.setup";
+
+ pkgs = import nixpkgs {
+ system = "x86_64-linux";
+ };
in # Use above variables in ...
{
nixosConfigurations = ( # NixOS configurations
@@ 53,5 57,11 @@
inherit inputs nixpkgs nixpkgs-stable home-manager nixgl user location;
}
);
+
+ devShells.x86_64-linux.default = pkgs.mkShell {
+ packages = [
+ pkgs.nil
+ ];
+ };
};
}
M modules/editors/emacs/doom.d/config.el => modules/editors/emacs/doom.d/config.el +2 -0
@@ 80,6 80,8 @@
(setq doom-localleader-key ",")
+(add-hook 'nix-mode-hook #'lsp)
+
(map! :leader
"c d" 'lsp-ui-doc-show
"c m" #'+make/run)