flake/home/applications/nix/default.nix

39 lines
740 B
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
# lsp
nil
alejandra
statix
deadnix
# nixpkgs PRs
nixfmt-rfc-style
nix-update
nix-init
# misc
nh
nix-output-monitor
nix-index
comma
sops
colmena
];
# for `nh`
# yes, i know, weird and long path
home.sessionVariables.FLAKE = "/home/guanranwang/Documents/Projects/git-repos/github.com/Guanran928/flake";
### VSCode
programs.vscode = {
extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide];
userSettings.nix = {
enableLanguageServer = true;
serverPath = "nil";
serverSettings.nil = {
formatting.command = ["alejandra"];
nix.flake.autoArchive = true;
};
};
};
}