mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
58aa5bf185
Since named entries can be overridden now based on ordering now merging is only a problem for removing one of the default search paths, in which case a higher priority eg. mkForce can be used. { nix.nixPath = [{ darwin-config = "/darwin.nix"; }]; } Will result in [ "darwin-config=/darwin.nix" "/nix/var/nix/profiles/per-user/root/channels" "$HOME/.nix-defexpr/channels" ] Fixes #137
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
# Logs are enabled by default.
|
|
# $ tail -f /var/log/ofborg.log
|
|
services.ofborg.enable = true;
|
|
# services.ofborg.configFile = "/var/lib/ofborg/config.json";
|
|
|
|
# $ nix-channel --add https://github.com/NixOS/ofborg/archive/released.tar.gz ofborg
|
|
# $ nix-channel --update
|
|
services.ofborg.package = (import <ofborg> {}).ofborg.rs;
|
|
|
|
# Keep nix-daemon updated.
|
|
services.nix-daemon.enable = true;
|
|
|
|
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" ];
|
|
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
system.stateVersion = 4;
|
|
|
|
# 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;
|
|
}
|