refactor: hosts/modules/roles/dev-machine: fewer file-level inherits
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user