Skip to content

Commit

Permalink
feat(modules/homeManager/services/borgmatic): add service
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Feb 20, 2024
1 parent c2c0797 commit 2a145e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hosts/eachDefaultSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ inputs.homeManager.lib.homeManagerConfiguration {
../modules/homeManager/programs/zathura
../modules/homeManager/programs/zellij
../modules/homeManager/programs/zoxide
../modules/homeManager/services/borgmatic
../modules/homeManager/services/dunst
../modules/homeManager/services/easyeffects
../modules/homeManager/services/gammastep
Expand Down Expand Up @@ -189,6 +190,7 @@ inputs.homeManager.lib.homeManagerConfiguration {
};

services = {
borgmatic.enable = true;
dunst.enable = true;
easyeffects.enable = true;
gammastep.enable = true;
Expand Down
15 changes: 15 additions & 0 deletions modules/homeManager/services/borgmatic/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
config,
lib,
...
}: {
imports = [../../programs/borgmatic];

options.modules.homeManager.services.borgmatic.enable =
lib.mkEnableOption "borgmatic";

config = lib.mkIf config.modules.homeManager.services.borgmatic.enable {
modules.homeManager.programs.borgmatic.enable = true;
services.borgmatic.enable = true;
};
}

0 comments on commit 2a145e5

Please sign in to comment.