fix: missing values in profiles/core/nix

This commit is contained in:
Infinidoge 2021-09-08 09:39:02 -04:00
parent 05713cd876
commit 4fee15ce51

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { config, pkgs, self, lib, ... }: {
nix = { nix = {
systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
@ -26,24 +26,27 @@
environment = { environment = {
systemPackages = with pkgs; [ nix-index nixfmt nixpkgs-fmt ]; systemPackages = with pkgs; [ nix-index nixfmt nixpkgs-fmt ];
shellAliases = { shellAliases =
# nix let ifSudo = lib.mkIf config.security.sudo.enable;
n = "nix"; in
np = "n profile"; {
ni = "np install"; # nix
nr = "np remove"; n = "nix";
ns = "n search --no-update-lock-file"; np = "n profile";
nf = "n flake"; ni = "np install";
nepl = "n repl '<nixpkgs>'"; nr = "np remove";
srch = "ns nixos"; ns = "n search --no-update-lock-file";
orch = "ns override"; nf = "n flake";
nrb = ifSudo "sudo nixos-rebuild"; nepl = "n repl '<nixpkgs>'";
mn = '' srch = "ns nixos";
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix orch = "ns override";
''; nrb = ifSudo "sudo nixos-rebuild";
mn = ''
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix
'';
# fix nixos-option # fix nixos-option
nixos-option = "nixos-option -I nixpkgs=${self}/lib/compat"; nixos-option = "nixos-option -I nixpkgs=${self}/lib/compat";
}; };
}; };
} }