summaryrefslogtreecommitdiff
path: root/modules/examples
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-03-05 22:43:47 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-03-05 22:43:47 +0100
commit2bcccfab29d806d3999fe3181ca8dcab21b7dd0e (patch)
tree05f301dff880a761d320b843cdb8bf1d7c6754d7 /modules/examples
parentf1f6a81b9aa33aa5471e29b6bf71a30e5f4172c4 (diff)
ofborg: add more comments to the example
Diffstat (limited to 'modules/examples')
-rw-r--r--modules/examples/ofborg.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/examples/ofborg.nix b/modules/examples/ofborg.nix
index 08461da..3244b93 100644
--- a/modules/examples/ofborg.nix
+++ b/modules/examples/ofborg.nix
@@ -12,13 +12,15 @@ with lib;
# $ nix-channel --update
services.ofborg.package = (import <ofborg> {}).ofborg.rs;
+ # Keep nix-daemon updated.
services.nix-daemon.enable = true;
-
nix.package = pkgs.nixUnstable;
nix.gc.automatic = true;
nix.gc.options = "--max-freed $((25 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))";
+ # Manage user for ofborg, this enables creating/deleting users
+ # depending on what modules are enabled.
users.knownGroups = [ "ofborg" ];
users.knownUsers = [ "ofborg" ];