sodium: build kernel with ccache
All checks were successful
flake / flake (push) Successful in 1m13s

This commit is contained in:
Jake Hillion 2024-05-31 22:34:30 +01:00 committed by JakeHillion
parent cde6bdd498
commit a724826217
3 changed files with 41 additions and 3 deletions

View File

@ -41,6 +41,19 @@
# }; # };
# }; # };
## Use ccache for building the Linux kernel
programs.ccache.enable = true;
nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ];
fileSystems."${config.programs.ccache.cacheDir}" = {
device = "${config.custom.dns.authoritative.ipv4.uk.co.hillion.ts.storage.tywin}:/ccache";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
};
programs.ccache.packageNames = [
# linux_rpi5 overrides from linux_rpi4
"linux_rpi4"
];
## Custom Services ## Custom Services
custom.locations.autoServe = true; custom.locations.autoServe = true;

View File

@ -67,6 +67,15 @@
interval = "Wed, 02:00"; interval = "Wed, 02:00";
}; };
## NFS
services.nfs.server = {
enable = true;
exports = ''
/export ${config.custom.dns.authoritative.ipv4.uk.co.hillion.ts.pop.sodium}(ro,fsid=0,no_subtree_check)
/export/ccache ${config.custom.dns.authoritative.ipv4.uk.co.hillion.ts.pop.sodium}(rw,no_subtree_check)
'';
};
## Backups ## Backups
### Git ### Git
age.secrets."git/git_backups_ecdsa".file = ../../secrets/git/git_backups_ecdsa.age; age.secrets."git/git_backups_ecdsa".file = ../../secrets/git/git_backups_ecdsa.age;
@ -238,8 +247,19 @@
## Networking ## Networking
networking.nameservers = lib.mkForce [ ]; # Trust the DHCP nameservers networking.nameservers = lib.mkForce [ ]; # Trust the DHCP nameservers
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ networking.firewall = {
80 # Caddy (restic.tywin.storage.ts.) trustedInterfaces = [ "tailscale0" ];
]; allowedTCPPorts = lib.mkForce [
];
allowedUDPPorts = lib.mkForce [ ];
interfaces = {
eth0 = {
allowedTCPPorts = lib.mkForce [
];
allowedUDPPorts = lib.mkForce [
];
};
};
};
}; };
} }

View File

@ -67,6 +67,11 @@
fsType = "btrfs"; fsType = "btrfs";
}; };
fileSystems."/export/ccache" = {
device = "/data/ccache";
options = [ "bind" ];
};
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking