Use nixosModules and homeManagerModules for config
This commit is contained in:
parent
88a054f3b4
commit
2de0e1a2d6
46 changed files with 151 additions and 190 deletions
|
|
@ -9,12 +9,12 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.homelab.beaverhabits;
|
||||
cfg = config.nixosModules.beaverhabits;
|
||||
|
||||
port = 8084;
|
||||
in
|
||||
{
|
||||
options.features.homelab.beaverhabits.enable = mkEnableOption "Enable beaverhabits";
|
||||
options.nixosModules.beaverhabits.enable = mkEnableOption "Enable beaverhabits";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.homelab.freshrss;
|
||||
cfg = config.nixosModules.freshrss;
|
||||
port = 4003;
|
||||
in
|
||||
{
|
||||
options.features.homelab.freshrss.enable = mkEnableOption "Enable freshrss";
|
||||
options.nixosModules.freshrss.enable = mkEnableOption "Enable freshrss";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Auto-generated using compose2nix v0.3.2-pre.
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ let
|
|||
port = 8082;
|
||||
in
|
||||
{
|
||||
options.features.homelab.pihole.enable = mkEnableOption "Enable pihole";
|
||||
options.nixosModules.pihole.enable = mkEnableOption "Enable pihole";
|
||||
|
||||
config = mkIf config.features.homelab.pihole.enable {
|
||||
config = mkIf config.nixosModules.pihole.enable {
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.homelab.tubearchivist-container;
|
||||
cfg = config.nixosModules.tubearchivist-container;
|
||||
|
||||
port = 8085;
|
||||
url = "tubearchivist.oliverdavies.uk";
|
||||
in
|
||||
{
|
||||
options.features.homelab.tubearchivist-container = {
|
||||
options.nixosModules.tubearchivist-container = {
|
||||
enable = mkEnableOption "Enable the tubearchivist-container service.";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue