mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 21:35:34 +03:00
Update nix flake
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
type = types.attrsOf (types.submodule ({ name, ... }: {
|
type = types.attrsOf (types.submodule ({ name, ... }: {
|
||||||
|
# freeformType = settingsFormat.type;
|
||||||
options = {
|
options = {
|
||||||
source = mkOption {
|
source = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
@@ -82,8 +83,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.photocatalog.enable {
|
config = lib.mkIf config.photocatalog.enable {
|
||||||
environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ];
|
environment.systemPackages = [ pkgs.photocatalog ];
|
||||||
systemd.services = lib.mapAttrs' (name: sync: {
|
systemd.services = lib.mapAttrs' (name: sync: nameValuePair ("photocatalog${lib.replaceStrings ["/"] ["-"] sync.source}")
|
||||||
|
{
|
||||||
|
# name = "photocatalog${lib.replaceStrings ["/"] ["-"] sync.source}";
|
||||||
after = [ "local-fs.target" ];
|
after = [ "local-fs.target" ];
|
||||||
path = [
|
path = [
|
||||||
pkgs.photocatalog
|
pkgs.photocatalog
|
||||||
@@ -98,7 +101,8 @@
|
|||||||
Type="simple";
|
Type="simple";
|
||||||
Restart="no";
|
Restart="no";
|
||||||
};
|
};
|
||||||
}) config.photocatalog.syncs;
|
}
|
||||||
|
) config.photocatalog.syncs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user