refactor: hosts/modules/roles/dev-machine: fewer file-level inherits
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkOption types;
|
|
||||||
cfg = config.sane.roles.dev-machine;
|
cfg = config.sane.roles.dev-machine;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.sane.roles.dev-machine = mkOption {
|
options.sane.roles.dev-machine = with lib; mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
@@ -14,13 +13,13 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkMerge [
|
config = with lib; mkMerge [
|
||||||
({
|
{
|
||||||
sane.programs.docsets.config.rustPkgs = [
|
sane.programs.docsets.config.rustPkgs = [
|
||||||
# "lemmy-server"
|
# "lemmy-server"
|
||||||
# "mx-sanebot"
|
# "mx-sanebot"
|
||||||
];
|
];
|
||||||
})
|
}
|
||||||
(mkIf cfg {
|
(mkIf cfg {
|
||||||
sane.programs.docsets.enableFor.system = true;
|
sane.programs.docsets.enableFor.system = true;
|
||||||
# sane.programs.ldd-aarch64.enableFor.user.colin = true; #< requires binfmt
|
# sane.programs.ldd-aarch64.enableFor.user.colin = true; #< requires binfmt
|
||||||
|
Reference in New Issue
Block a user