Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: (125 commits) scummvm: fix eval tinycc: 0.9.27pre-20171016 -> 0.9.27 Update terraform provider versions vscode: 1.18.1 -> 1.19.0 linux: 4.14.6 -> 4.14.7 scummvm: 1.9.0 -> 2.0.0 cmst: 2017.03.18 -> 2017.09.19 albert: 0.14.7 -> 0.14.14 obs-studio: fix vlc plugin ffmpeg, ffmpeg-full: 3.4 -> 3.4.1 uchiwa: 0.26.3 -> 1.1.0 linux-testing: 4.15-rc3 -> 4.15-rc4 steam: override nss, nspr, fixes #32781 ponyc: 0.20.0 -> 0.21.0 pythonPackages.pwntools: disable tests gnome3.gnome-tweak-tool: 3.26.3 → 3.26.4 vim-rhubarb: init at 2017-06-28 atom: depend on libsecret nvidia-settings: Make sure binary can find libXv.so backblaze-b2: 0.6.2 -> 1.1.0 ...
- Loading branch information
Showing
152 changed files
with
3,471 additions
and
2,919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.services.davfs2; | ||
cfgFile = pkgs.writeText "davfs2.conf" '' | ||
dav_user ${cfg.davUser} | ||
dav_group ${cfg.davGroup} | ||
${cfg.extraConfig} | ||
''; | ||
in | ||
{ | ||
options.services.davfs2 = { | ||
enable = mkOption { | ||
type = types.bool; | ||
default = false; | ||
description = '' | ||
Whether to enable davfs2. | ||
''; | ||
}; | ||
|
||
davUser = mkOption { | ||
type = types.string; | ||
default = "davfs2"; | ||
description = '' | ||
When invoked by root the mount.davfs daemon will run as this user. | ||
Value must be given as name, not as numerical id. | ||
''; | ||
}; | ||
|
||
davGroup = mkOption { | ||
type = types.string; | ||
default = "davfs2"; | ||
description = '' | ||
The group of the running mount.davfs daemon. Ordinary users must be | ||
member of this group in order to mount a davfs2 file system. Value must | ||
be given as name, not as numerical id. | ||
''; | ||
}; | ||
|
||
extraConfig = mkOption { | ||
type = types.lines; | ||
default = ""; | ||
example = '' | ||
kernel_fs coda | ||
proxy foo.bar:8080 | ||
use_locks 0 | ||
''; | ||
description = '' | ||
Extra lines appended to the configuration of davfs2. | ||
'' ; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
environment.systemPackages = [ pkgs.davfs2 ]; | ||
environment.etc."davfs2/davfs2.conf".source = cfgFile; | ||
|
||
users.extraGroups = optionalAttrs (cfg.davGroup == "davfs2") (singleton { | ||
name = "davfs2"; | ||
gid = config.ids.gids.davfs2; | ||
}); | ||
|
||
users.extraUsers = optionalAttrs (cfg.davUser == "davfs2") (singleton { | ||
name = "davfs2"; | ||
createHome = false; | ||
group = cfg.davGroup; | ||
uid = config.ids.uids.davfs2; | ||
description = "davfs2 user"; | ||
}); | ||
}; | ||
|
||
} |
Oops, something went wrong.