fix: reconfigure modules to build successfully on demeter

This commit is contained in:
Youwen Wu 2024-12-23 04:29:01 -08:00
parent ce89f8149e
commit 180741ec71
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
11 changed files with 54 additions and 63 deletions

View file

@ -5,7 +5,7 @@
...
}:
let
cfg = config.liminalOS.system.printing;
cfg = config.liminalOS.system;
inherit (lib) mkIf;
in
{
@ -17,7 +17,13 @@ in
Whether to set up default options for printing and printer discover on UNIX.
'';
};
fonts.enable = lib.mkEnableOption "fonts";
fonts.enable = lib.mkOption {
type = lib.types.bool;
default = config.liminalOS.enable;
description = ''
Whether to set up some nice default fonts, including a Nerd Font, Noto Fonts, and CJK.
'';
};
distrobox.enable = lib.mkEnableOption "distrobox and podman";
};
@ -45,11 +51,11 @@ in
]);
};
virtualisation.podman = cfg.distrobox.enable {
virtualisation.podman = mkIf cfg.distrobox.enable {
enable = true;
dockerCompat = true;
};
environment.systemPackages = cfg.distrobox.enable [ pkgs.distrobox ];
environment.systemPackages = mkIf cfg.distrobox.enable [ pkgs.distrobox ];
};
}