From c42de3037ec406fa834c6c1756a6f0b70dcdd38f Mon Sep 17 00:00:00 2001 From: Karel Kočí Date: Wed, 23 Sep 2026 08:09:45 +0200 Subject: treewise: cleanup and general update --- nixos/configurations/dean.nix | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) (limited to 'nixos/configurations/dean.nix') diff --git a/nixos/configurations/dean.nix b/nixos/configurations/dean.nix index a95d9f1..a1ec788 100644 --- a/nixos/configurations/dean.nix +++ b/nixos/configurations/dean.nix @@ -1,9 +1,17 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: { system.stateVersion = "24.05"; turris.board = "mox"; - deploy.enable = true; + deploy = { + enable = true; + configurationLimit = 8; + }; cynerd = { + devmin = true; wireguard = true; monitoring = { speedtest = true; @@ -15,9 +23,9 @@ hardware.enableAllFirmware = false; # No wifi so we do not need firmwares services = { - journald.extraConfig = '' - SystemMaxUse=512M - ''; + journald.settings.Journal = { + SystemMaxUse = "512M"; + }; btrfs.autoScrub = { enable = true; @@ -54,5 +62,29 @@ environment.systemPackages = with pkgs; [ #openocd tio + gnupg + ]; + + programs = { + fuse = { + enable = true; + userAllowOther = true; + }; + nix-ld.enable = true; + }; + boot.binfmt = { + emulatedSystems = ["x86_64-linux"]; + }; + environment.sessionVariables = { + NIX_LD_x86_64_linux = "${pkgs.buildPackages.glibc}/lib/ld-linux-x86-64.so.2"; + NIX_LD_LIBRARY_PATH_x86_64_linux = lib.makeLibraryPath (with pkgs.buildPackages; [ + stdenv.cc.cc + glibc + zlib + ]); + }; + systemd.tmpfiles.rules = [ + "d /lib64 0755 root root -" + "L+ /lib64/ld-linux-x86-64.so.2 - - - - ${pkgs.buildPackages.nix-ld}/libexec/nix-ld" ]; } -- cgit v1.3.1