mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Move syncthing home stuff into a module
This commit is contained in:
parent
a176c88b5d
commit
7c5bd6ea1f
2 changed files with 14 additions and 6 deletions
14
modules/home/services/syncthing.nix
Normal file
14
modules/home/services/syncthing.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ config, lib, ... }@moduleArgs:
|
||||||
|
{
|
||||||
|
options.custom.services.syncthing.enable = lib.mkEnableOption "" // {
|
||||||
|
default = moduleArgs.osConfig.custom.services.syncthing.enable or false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.custom.services.syncthing.enable {
|
||||||
|
home.file."Projects/.stignore".text = ''
|
||||||
|
(?d)target/
|
||||||
|
(?d).direnv/
|
||||||
|
(?d)result
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -36,10 +36,4 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
home.file."Projects/.stignore".text = ''
|
|
||||||
(?d)target/
|
|
||||||
(?d).direnv/
|
|
||||||
(?d)result
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue