fixes
This commit is contained in:
parent
fb70bd789e
commit
36d5e995f2
5 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ];
|
||||
home = {
|
||||
imports = [ ./hm ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./unison.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.services.unison';
|
||||
in
|
||||
{
|
||||
options.services.unison' = {
|
||||
enable = lib.mkEnableOption "Unison file synchronizer";
|
||||
pairs = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.str));
|
||||
default = { };
|
||||
description = "";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.file = lib.mapAttrs' (name: roots: {
|
||||
name = ".unison/${name}.prf";
|
||||
value.text =
|
||||
''
|
||||
watch = true
|
||||
logfile = /dev/null
|
||||
confirmbigdeletes = true
|
||||
confirmmerge = true
|
||||
''
|
||||
+ lib.concatStringsSep "\n" (map (root: "root = ${root}") roots.roots);
|
||||
}) cfg.pairs;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue