mv calibre to modules
All checks were successful
nix flake show / show-flake (push) Successful in 27s
All checks were successful
nix flake show / show-flake (push) Successful in 27s
This commit is contained in:
parent
763cd548f4
commit
85f0b82334
@ -18,7 +18,6 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
home-manager
|
||||
calibre
|
||||
tor
|
||||
tshark
|
||||
freecad-wayland
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
./utilities
|
||||
./flatpak
|
||||
./ide
|
||||
./ebook
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
15
modules/nix/ebook/calibre.nix
Normal file
15
modules/nix/ebook/calibre.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
6
modules/nix/ebook/default.nix
Normal file
6
modules/nix/ebook/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./calibre.nix
|
||||
];
|
||||
}
|
||||
@ -40,6 +40,7 @@ in
|
||||
gaming.enable = true;
|
||||
};
|
||||
arduino.enable = true;
|
||||
calibre.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -38,6 +38,7 @@ in
|
||||
media.enable = true;
|
||||
};
|
||||
arduino.enable = true;
|
||||
calibre.enable = true;
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user