refactor: hosts/modules/roles/dev-machine: fewer file-level inherits

This commit is contained in:
2024-09-28 09:53:59 +00:00
parent 674699bf05
commit 09cd3ec2a5

View File

@@ -1,11 +1,10 @@
{ config, lib, ... }:
let
inherit (lib) mkIf mkMerge mkOption types;
cfg = config.sane.roles.dev-machine;
in
{
options.sane.roles.dev-machine = mkOption {
options.sane.roles.dev-machine = with lib; mkOption {
type = types.bool;
default = false;
description = ''
@@ -14,13 +13,13 @@ in
'';
};
config = mkMerge [
({
config = with lib; mkMerge [
{
sane.programs.docsets.config.rustPkgs = [
# "lemmy-server"
# "mx-sanebot"
];
})
}
(mkIf cfg {
sane.programs.docsets.enableFor.system = true;
# sane.programs.ldd-aarch64.enableFor.user.colin = true; #< requires binfmt