flake/home/applications/nix/default.nix

35 lines
763 B
Nix
Raw Normal View History

2023-11-06 11:23:58 +00:00
{pkgs, ...}: {
home.packages = with pkgs; [
2023-12-16 07:26:27 +00:00
# LSP / Formatters / Linters
nil
alejandra
statix
deadnix
2024-02-04 04:03:57 +00:00
nixpkgs-fmt # for nixpkgs PRs
2023-12-16 07:26:27 +00:00
2024-02-01 23:18:17 +00:00
# Nix helper
nh
2023-12-16 07:26:27 +00:00
# Secret management
2023-11-29 10:18:56 +00:00
sops
2023-12-16 07:26:27 +00:00
# Additional information while building
2023-11-29 10:18:56 +00:00
nix-output-monitor
2023-11-06 11:23:58 +00:00
];
2024-02-04 04:03:57 +00:00
### nh
# yes, i know, weird and long path
home.sessionVariables.FLAKE = "/home/guanranwang/Documents/Projects/git-repos/github.com/Guanran928/flake";
2023-11-06 11:23:58 +00:00
### VSCode
programs.vscode = {
2024-02-04 04:03:57 +00:00
extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide];
userSettings.nix = {
enableLanguageServer = true;
serverPath = "nil";
serverSettings.nil = {
2023-11-17 12:00:28 +00:00
formatting.command = ["alejandra"];
nix.flake.autoArchive = true;
};
2023-11-06 11:23:58 +00:00
};
};
}