zeal/docsets: ship on desko too
This commit is contained in:
parent
24364992e1
commit
d5ffa6d796
|
@ -6,6 +6,7 @@
|
|||
|
||||
sane.roles.build-machine.enable = true;
|
||||
sane.roles.client = true;
|
||||
sane.roles.dev-machine = true;
|
||||
sane.services.wg-home.enable = true;
|
||||
sane.services.wg-home.ip = config.sane.hosts.by-name."desko".wg-home.ip;
|
||||
sane.services.duplicity.enable = true;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
sane.yggdrasil.enable = true;
|
||||
|
||||
sane.roles.client = true;
|
||||
sane.roles.dev-machine = true;
|
||||
sane.services.wg-home.enable = true;
|
||||
sane.services.wg-home.ip = config.sane.hosts.by-name."lappy".wg-home.ip;
|
||||
|
||||
|
@ -19,11 +20,6 @@
|
|||
"desktopGuiApps"
|
||||
"stepmania"
|
||||
];
|
||||
sane.programs.docsets.config.rustPkgs = [
|
||||
"lemmy-server"
|
||||
"mx-sanebot"
|
||||
];
|
||||
sane.programs.docsets.enableFor.system = true;
|
||||
|
||||
sops.secrets.colin-passwd = {
|
||||
sopsFile = ../../../secrets/lappy.yaml;
|
||||
|
|
|
@ -235,7 +235,6 @@ let
|
|||
signal-desktop
|
||||
spotify
|
||||
tor-browser-bundle-bin
|
||||
zeal-qt5 # programming docs viewer. TODO: switch to zeal-qt6
|
||||
zecwallet-lite
|
||||
;
|
||||
};
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
imports = [
|
||||
./build-machine.nix
|
||||
./client
|
||||
./dev-machine.nix
|
||||
];
|
||||
}
|
||||
|
|
30
hosts/modules/roles/dev-machine.nix
Normal file
30
hosts/modules/roles/dev-machine.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf mkMerge mkOption types;
|
||||
cfg = config.sane.roles.dev-machine;
|
||||
in
|
||||
{
|
||||
options.sane.roles.dev-machine = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
enable if this machine is used generally for "development"
|
||||
and you want tools to support that (e.g. docs).
|
||||
'';
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
({
|
||||
sane.programs.docsets.config.rustPkgs = [
|
||||
"lemmy-server"
|
||||
"mx-sanebot"
|
||||
];
|
||||
})
|
||||
(mkIf cfg {
|
||||
sane.programs.docsets.enableFor.system = true;
|
||||
# TODO: migrate this to `sane.user.programs.zeal-qt5.enable = true`
|
||||
sane.programs.zeal-qt5.enableFor.user.colin = true;
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user