mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-21 10:13:55 +00:00
36 lines
533 B
Nix
36 lines
533 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.programs.common;
|
|
in
|
|
{
|
|
options = {
|
|
module.programs.common = {
|
|
enable = mkBool;
|
|
pkgs = mkOpt.list.pkgs;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ ] ++ (cfg.pkgs);
|
|
programs = {
|
|
nano = False;
|
|
light = True;
|
|
git = True // {
|
|
package = mkDefault pkgs.gitMinimal;
|
|
};
|
|
ryzen-monitor-ng = True;
|
|
nh = True // {
|
|
flake = flakeDir;
|
|
};
|
|
};
|
|
};
|
|
}
|