feat: bundle external nixosModules with liminalOS module

This commit is contained in:
Youwen Wu 2024-12-25 23:11:43 -08:00
parent d66cce9fa1
commit e9c6c54ee1
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
11 changed files with 49 additions and 45 deletions

View file

@ -183,8 +183,8 @@ in
programs.fish.enable = true;
services.tlp.enable = lib.mkIf (cfg.formFactor == "laptop") true;
programs.light.enable = lib.mkIf (cfg.formFactor == "laptop") true;
services.tlp.enable = lib.mkIf (config.liminalOS.formFactor == "laptop") true;
programs.light.enable = lib.mkIf (config.liminalOS.formFactor == "laptop") true;
hardware.bluetooth = lib.mkIf cfg.bluetooth.enable {
enable = true;

View file

@ -12,10 +12,6 @@ let
cfg = config.liminalOS.programs.flatpak;
in
{
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
];
options.liminalOS.programs.flatpak = {
enable = lib.mkOption {
type = lib.types.bool;

View file

@ -26,10 +26,6 @@ in
};
};
imports = [
inputs.stylix.nixosModules.stylix
];
config = lib.mkIf cfg.enable {
stylix = {
enable = true;

View file

@ -8,10 +8,6 @@ let
cfg = config.liminalOS.wsl;
in
{
imports = [
inputs.nixos-wsl.nixosModules.default
];
options.liminalOS.wsl = {
enable = lib.mkEnableOption "WSL";
};