mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-12 06:34:57 +03:00
Compare commits
7 Commits
v2.0.3
...
e66070383f
| Author | SHA1 | Date | |
|---|---|---|---|
| e66070383f | |||
| 438cd3d86f | |||
| 0cf9b85787 | |||
| a56c582068 | |||
| 3be92806b1 | |||
| 65baf34032 | |||
| 986d16addf |
13
flake.nix
13
flake.nix
@@ -6,7 +6,7 @@
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
||||
version = "2.0.2";
|
||||
version = "2.0.4";
|
||||
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||
@@ -77,7 +77,7 @@
|
||||
'';
|
||||
};
|
||||
mode = mkOption {
|
||||
type = types.str;
|
||||
type = types.enum [ "hardlink" "symlink" "move" "copy" ];
|
||||
default = "hardlink";
|
||||
description = ''
|
||||
Organization mode, one of [ hardlink symlink move copy ].
|
||||
@@ -100,11 +100,12 @@
|
||||
wantedBy = [
|
||||
"default.target"
|
||||
];
|
||||
preStart = if !sync.skipFullSync then ''
|
||||
preStart = ''
|
||||
mkdir -p ${sync.target}
|
||||
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode}
|
||||
'' else null;
|
||||
script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode}";
|
||||
'' + (if !sync.skipFullSync then (''
|
||||
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}
|
||||
'') else null);
|
||||
script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}";
|
||||
serviceConfig = {
|
||||
Type="simple";
|
||||
Restart="no";
|
||||
|
||||
Reference in New Issue
Block a user