mv calibre to modules
All checks were successful
nix flake show / show-flake (push) Successful in 27s

This commit is contained in:
smayzy 2025-07-21 14:40:21 +02:00
parent 763cd548f4
commit 85f0b82334
6 changed files with 24 additions and 1 deletions

View File

@ -18,7 +18,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
home-manager home-manager
calibre
tor tor
tshark tshark
freecad-wayland freecad-wayland

View File

@ -19,6 +19,7 @@
./utilities ./utilities
./flatpak ./flatpak
./ide ./ide
./ebook
]; ];
# Timzone and locales (same for all machines so I put it here) # Timzone and locales (same for all machines so I put it here)

View File

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.calibre.enable = mkOption {
type = types.bool;
default = false;
description = "enable calibre";
};
config = mkIf config.smayzy.calibre.enable {
environment.systemPackages = with pkgs; [ calibre ];
};
}

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./calibre.nix
];
}

View File

@ -40,6 +40,7 @@ in
gaming.enable = true; gaming.enable = true;
}; };
arduino.enable = true; arduino.enable = true;
calibre.enable = true;
}; };
}; };
} }

View File

@ -38,6 +38,7 @@ in
media.enable = true; media.enable = true;
}; };
arduino.enable = true; arduino.enable = true;
calibre.enable = true;
}; };
services.logind.lidSwitch = "ignore"; services.logind.lidSwitch = "ignore";
}; };