mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 20:17:45 +00:00
Add aliases for nix commands
This commit is contained in:
parent
22de075ea9
commit
91377c54ee
1 changed files with 15 additions and 3 deletions
|
@ -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 = {
|
nix = {
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -44,4 +56,4 @@ systemConfiguration {
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nix-ld = enabled {};
|
programs.nix-ld = enabled {};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue