feat: add github workflow - flake_check

This commit is contained in:
Ryan Yin
2023-12-19 21:02:53 +08:00
parent 2ac43c8a33
commit 809a68fa27
2 changed files with 4 additions and 9 deletions

View File

@@ -281,7 +281,7 @@
src = ./.;
hooks = {
alejandra.enable = true; # formatter
deadnix.enable = true; # detect unused variable bindings in `*.nix`
# deadnix.enable = true; # detect unused variable bindings in `*.nix`
statix.enable = true; # lints and suggestions for Nix code(auto suggestions)
};
};
@@ -446,6 +446,8 @@
};
# the nixConfig here only affects the flake itself, not the system configuration!
# for more information, see:
# https://nixos-and-flakes.thiscute.world/nixos-with-flakes/add-custom-cache-servers
nixConfig = {
# substituers will be appended to the default substituters when fetching packages
extra-substituters = [

View File

@@ -57,18 +57,11 @@
];
programs = {
# modern vim
neovim = {
enable = true;
defaultEditor = true;
vimAlias = true;
};
# A modern replacement for ls
# useful in bash/zsh prompt, not in nushell.
eza = {
enable = true;
enableAliases = true;
enableAliases = false; # do not enable aliases in nushell!
git = true;
icons = true;
};