system: install busybox with low priority
it is a good fallback for common system commands
This commit is contained in:
parent
2fe138d88c
commit
0221b8e3b4
18
system/common/busybox.nix
Normal file
18
system/common/busybox.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.nixfiles.common.busybox;
|
||||||
|
in {
|
||||||
|
options.nixfiles.common.busybox.enable = lib.mkEnableOption "" // {
|
||||||
|
description = ''
|
||||||
|
Whether to install Busybox into the system environment as a very low
|
||||||
|
priority fallback for common commands. This should *never* override a
|
||||||
|
user-installed package.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; lib.mkOrder 50 [
|
||||||
|
busybox
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -6,5 +6,6 @@
|
|||||||
./wm.nix
|
./wm.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./bootnext.nix
|
./bootnext.nix
|
||||||
|
./busybox.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ in
|
|||||||
me.enable = lib.mkDefault true;
|
me.enable = lib.mkDefault true;
|
||||||
# Enable system Nix configuration
|
# Enable system Nix configuration
|
||||||
nix.enable = lib.mkDefault true;
|
nix.enable = lib.mkDefault true;
|
||||||
|
# busybox low-priority install
|
||||||
|
busybox.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# locale settings
|
# locale settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user