1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Add aliases for nix commands

This commit is contained in:
RGBCube 2024-03-06 15:22:40 +03:00
parent 22de075ea9
commit 91377c54ee
No known key found for this signature in database

View file

@ -1,6 +1,18 @@
{ inputs, lib, ulib, upkgs, ... }: with ulib;
{ inputs, lib, ulib, upkgs, ... }: with ulib; merge
systemConfiguration {
(homeConfiguration {
programs.nushell = {
shellAliases.ns = "nix shell";
configFile.text = lib.mkAfter ''
def --wrapped nr [program: string = "", ...arguments] {
nix run $program -- ...$arguments
}
'';
};
})
(systemConfiguration {
nix = {
gc = {
automatic = true;
@ -44,4 +56,4 @@ systemConfiguration {
};
programs.nix-ld = enabled {};
}
})