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:
parent
5fa6f21d06
commit
e82885507b
1 changed files with 30 additions and 0 deletions
30
modules/examples/ofborg.nix
Normal file
30
modules/examples/ofborg.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue