Nixfmt Tree

This commit is contained in:
Lorenzo Good 2026-02-24 00:00:35 -08:00
parent d6bcf1a468
commit f173b9d236
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
23 changed files with 381 additions and 224 deletions

View file

@ -3,10 +3,17 @@
pkgs,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption mkOption types;
}:
let
inherit (lib)
mkIf
mkEnableOption
mkOption
types
;
cfg = config.foehammer.backups.restic;
in {
in
{
options.foehammer.backups.restic = {
enable = mkEnableOption "Enable restic backups";
@ -24,17 +31,17 @@ in {
paths = mkOption {
type = lib.types.nullOr (lib.types.listOf lib.types.str);
default = [];
default = [ ];
};
exclude = mkOption {
type = lib.types.nullOr (lib.types.listOf lib.types.str);
default = [];
default = [ ];
};
};
config = mkIf cfg.enable {
users.groups.restic = {};
users.groups.restic = { };
users.users.restic = {
isSystemUser = true;
group = "restic";