1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 08:46:25 +00:00

ofborg: add example configuration

This commit is contained in:
Daiderd Jordan 2018-01-29 22:43:55 +01:00
parent 5fa6f21d06
commit e82885507b
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
with lib;
{
# Logs are enabled by default.
# $ tail -f /var/log/ofborg.log
services.ofborg.enable = true;
services.ofborg.package = (import <ofborg> {}).ofborg.rs;
# services.ofborg.configFile = "/var/lib/ofborg/config.json";
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 }')))";
users.knownGroups = [ "ofborg" ];
users.knownUsers = [ "ofborg" ];
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 2;
# You should generally set this to the total number of logical cores in your system.
# $ sysctl -n hw.ncpu
nix.maxJobs = 1;
nix.buildCores = 1;
}