feat: add nix-update+nvd script

This commit is contained in:
Jacob Bachmann 2024-01-22 00:11:16 +01:00
parent 307ae1bac9
commit d3150b5a5a
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
7 changed files with 56 additions and 11 deletions

View file

@ -17,7 +17,6 @@
nec = "nvim --cmd \"cd $(readlink -f /etc/nixos)\"";
ncc = "sudo nixos-rebuild switch --upgrade-all --flake \"$(readlink -f /etc/nixos)\"";
nup = "sudo nix-channel --update";
nuf = "sudo nix flake update --nix-path /etc/nixos";
ngc = "sudo nix-collect-garbage -d";
dcup = "docker-compose up --detach --remove-orphans";

View file

@ -1,7 +1,11 @@
{ ... }: {
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
{ pkgs, ... }: {
nix = {
# TODO remove once 24.05 is released
package = pkgs.nixVersions.unstable;
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
};
nixpkgs.overlays = [

View file

@ -14,6 +14,7 @@
unzip
libsecret
xidel # xml parser
nvd # nix diff package versions between two store paths
] ++ lib.optionals (devenv.enable) [
# languages
gcc13