feat: added vscode config

This commit is contained in:
Lucy Hochkamp 2023-10-11 15:58:15 +02:00
parent c685ff4bb9
commit 95128333e3
No known key found for this signature in database
6 changed files with 20 additions and 59 deletions

6
.envrc
View file

@ -1,7 +1 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env)"
}
use flake

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
# Ignore configurable file with secrets
#/data/secrets.nix
.DS_Store
/.direnv
# Ignore build symlinks
result*

View file

@ -102,59 +102,6 @@
overlays = [
self.overlays.default
neovim-nightly-overlay.overlay
(final: prev: {
python3 = prev.python3.override {
packageOverrides = pyself: pysuper: {
notmuch2 = pysuper.notmuch2.overridePythonAttrs (old: {
postPatch = old.postPatch + ''sed -i "s|/private.*/notmuch-${old.version}/|$(pwd)/../../|g" _notmuch_config.py'';
meta.broken = false;
});
};
};
alot = prev.alot.overrideAttrs
(super: {
meta.platforms = lib.platforms.unix;
disabledTests = super.disabledTests ++ [
"test_returned_string_starts_with_pgp"
"test_returned_string_is_lower_case"
"test_raises_for_unknown_hash_name"
"test_valid_signature_generated"
"test_verify_signature_good"
"test_verify_signature_bad"
"test_valid"
"test_revoked"
"test_expired"
"test_invalid"
"test_encrypt"
"test_encrypt_no_check"
"test_sign"
"test_sign_no_check"
"test_valid_single"
"test_valid_multiple"
"test_invalid_email"
"test_invalid_revoked"
"test_invalid_invalid"
"test_invalid_not_enough_trust"
"test_list_no_hints"
"test_list_hint"
"test_list_keys_pub"
"test_list_keys_private"
"test_plain"
"test_validate"
"test_missing_key"
"test_invalid_key"
"test_signed_only_true"
"test_signed_only_false"
"test_ambiguous_one_valid"
"test_ambiguous_two_valid"
"test_ambiguous_no_valid"
"test_encrypt"
"test_decrypt"
];
});
})
];
genPkgsWithOverlays = system: import nixpkgs {
inherit system overlays;

View file

@ -0,0 +1,17 @@
{ pkgs, config, lib, ... }:
let
cfg = config.ragon.vscode;
in
{
options.ragon.vscode.enable = lib.mkOption { default = false; };
config = lib.mkIf cfg.enable {
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
vscodevim.vim # vim mode (hopefully good)
yzhang.markdown-all-in-one # markdown
jdinhlife.gruvbox # theme
];
};
};
}

View file

@ -65,6 +65,8 @@ with lib.my;
home.file.".hammerspoon/Spoons/MiroWindowsManager.spoon".source = "${inputs.miro}/MiroWindowsManager.spoon";
home.file.".finicky.js".source = ./finicky.js;
ragon.vscode.enable = true;
programs.home-manager.enable = true;
home.stateVersion = "21.11";