reorganize nix settings
This commit is contained in:
parent
fa33f258fc
commit
2c6cec5178
2 changed files with 16 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
|||
./services/calibre-web.nix
|
||||
./services/glances.nix
|
||||
./services/fail2ban.nix
|
||||
# ./services/transmission.nix
|
||||
./services/transmission.nix
|
||||
];
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -49,9 +49,17 @@
|
|||
# ZFS
|
||||
services.zfs.autoScrub.enable = true;
|
||||
|
||||
# Housekeeping: Garbage collection
|
||||
nix.gc.automatic = true;
|
||||
nix.optimise.automatic = true;
|
||||
# Nix settings
|
||||
nix = {
|
||||
settings = {
|
||||
#experimental-features = [ "nix-command" "flakes" ];
|
||||
download-buffer-size = "2G";
|
||||
warn-dirty = false;
|
||||
# garbage collection
|
||||
gc.automatic = true;
|
||||
optimise.automatic = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Networking
|
||||
networking.hostName = "knossos"; # Define your hostname.
|
||||
|
|
|
@ -11,11 +11,12 @@
|
|||
openRPCPort = true;
|
||||
settings = {
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
rpc-whitelist = "127.0.0.1,100.86.169.8,100.120.170.60"; #Whitelist your remote machine (10.0.0.1 in this example)
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
transmission
|
||||
];
|
||||
# environment.systemPackages = [
|
||||
# pkgs.transmission
|
||||
# ];
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue