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/calibre-web.nix
|
||||||
./services/glances.nix
|
./services/glances.nix
|
||||||
./services/fail2ban.nix
|
./services/fail2ban.nix
|
||||||
# ./services/transmission.nix
|
./services/transmission.nix
|
||||||
];
|
];
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -49,9 +49,17 @@
|
||||||
# ZFS
|
# ZFS
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
||||||
# Housekeeping: Garbage collection
|
# Nix settings
|
||||||
nix.gc.automatic = true;
|
nix = {
|
||||||
nix.optimise.automatic = true;
|
settings = {
|
||||||
|
#experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
download-buffer-size = "2G";
|
||||||
|
warn-dirty = false;
|
||||||
|
# garbage collection
|
||||||
|
gc.automatic = true;
|
||||||
|
optimise.automatic = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
networking.hostName = "knossos"; # Define your hostname.
|
networking.hostName = "knossos"; # Define your hostname.
|
||||||
|
|
|
@ -11,11 +11,12 @@
|
||||||
openRPCPort = true;
|
openRPCPort = true;
|
||||||
settings = {
|
settings = {
|
||||||
rpc-bind-address = "0.0.0.0";
|
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 = [
|
# environment.systemPackages = [
|
||||||
transmission
|
# pkgs.transmission
|
||||||
];
|
# ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue