AquaticOS/modules/programs/nixdev.nix

57 lines
No EOL
1.5 KiB
Nix

{ inputs, ... }:
{
flake.modules.nixos.nixdev =
{ pkgs, ... }:
{
home-manager.sharedModules = with inputs.self.modules.homeManager; [
nixdev
];
environment.systemPackages = with pkgs; [
nil
];
};
flake.modules.homeManager.nixdev =
{ pkgs, ... }:
{
nixpkgs.config.allowUnfreePackages = [
"vscode"
];
programs.vscode = {
enable = true;
package = pkgs.vscode-with-extensions.override {
vscodeExtensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
catppuccin.catppuccin-vsc
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "qt-qml";
publisher = "TheQtCompany";
version = "1.4.0";
sha256 = "sha256-9C0EC4vnulg0OjGNU0SfMA2R6+OaHVCqDsipY2TAqxo=";
}
{
name = "opencode";
publisher = "sst-dev";
version = "0.0.13";
sha256 = "sha256-6adXUaoh/OP5yYItH3GAQ7GpupfmTGaxkKP6hYUMYNQ=";
}
];
};
profiles.default.userSettings = {
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nil";
"nix.serverSettings" = {
"nil" = {
"formatting".command = [ "nixfmt" ];
};
};
"workbench.colorTheme" = "Catppuccin Mocha";
"terminal.integrated.stickyScroll.enabled" = false;
"git.confirmSync" = false;
"chat.disableAIFeatures" = true;
};
};
};
}