Avoid packages rebuilds and decrease ZFS ARC cache
This commit is contained in:
parent
5bcda20414
commit
7927cc183f
|
@ -6,7 +6,7 @@
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
|
|
||||||
# A bunch of boot parameters needed for optimal runtime on RPi 3B
|
# A bunch of boot parameters needed for optimal runtime on RPi 3B
|
||||||
boot.kernelParams = ["cma=32M"];
|
boot.kernelParams = ["cma=32M" "zfs.zfs_arc_max=12884901888"];
|
||||||
boot.loader.raspberryPi = {
|
boot.loader.raspberryPi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
version = 3;
|
version = 3;
|
||||||
|
@ -54,10 +54,12 @@
|
||||||
time.timeZone = "Europe/Brussels";
|
time.timeZone = "Europe/Brussels";
|
||||||
services.timesyncd.enable = true;
|
services.timesyncd.enable = true;
|
||||||
|
|
||||||
# Enable zfs support
|
# Enable ZFS support
|
||||||
networking.hostId = "bb26c304";
|
networking.hostId = "bb26c304";
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot = {
|
||||||
boot.zfs.extraPools = [ "vault" ];
|
supportedFilesystems = [ "zfs" ];
|
||||||
|
zfs.extraPools = [ "vault" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Scrub zpool monthly
|
# Scrub zpool monthly
|
||||||
services.zfs.autoScrub = {
|
services.zfs.autoScrub = {
|
||||||
|
@ -71,11 +73,16 @@
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Run Nix garbage collector daily
|
# Run Nix garbage collector, while avoiding compiling
|
||||||
nix.gc = {
|
nix = {
|
||||||
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "03:15";
|
options = "--delete-older-than 30d";
|
||||||
options = "--delete-older-than 14d";
|
};
|
||||||
|
extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
gc-keep-outputs = true
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure fish shell
|
# Configure fish shell
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
id = "cjhmu-avy9v";
|
id = "cjhmu-avy9v";
|
||||||
type = "receiveonly";
|
type = "receiveonly";
|
||||||
path = "/vault/syncthing/Projects";
|
path = "/vault/syncthing/Projects";
|
||||||
|
watch = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
# Software development configuration
|
# Software development configuration
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gitea
|
||||||
|
];
|
||||||
|
|
||||||
# Gitea setup with daily backup
|
# Gitea setup with daily backup
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
avahi
|
||||||
|
ddclient
|
||||||
wireguard
|
wireguard
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
];
|
];
|
||||||
|
|
|
@ -133,8 +133,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Restart nginx after
|
# Restart nginx after
|
||||||
systemd.services.nginx.after = [ "gitea.service" "syncthing.service" "miniflux.service" ];
|
systemd.services.nginx.after = [ "gitea.service" "syncthing.service" "miniflux.service" "radicale.service" ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue