diff options
| author | Karel Kočí <cynerd@email.cz> | 2026-09-23 08:09:45 +0200 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2026-09-23 08:09:45 +0200 |
| commit | c42de3037ec406fa834c6c1756a6f0b70dcdd38f (patch) | |
| tree | 0d195492fc3f24c9742567f5bff8c157ec72baa0 /nixos/configurations/dean.nix | |
| parent | b0af9c76e1687f2afad15ba7a0de1d24331868c8 (diff) | |
| download | nixos-personal-c42de3037ec406fa834c6c1756a6f0b70dcdd38f.tar.gz nixos-personal-c42de3037ec406fa834c6c1756a6f0b70dcdd38f.tar.bz2 nixos-personal-c42de3037ec406fa834c6c1756a6f0b70dcdd38f.zip | |
Diffstat (limited to 'nixos/configurations/dean.nix')
| -rw-r--r-- | nixos/configurations/dean.nix | 42 |
1 files changed, 37 insertions, 5 deletions
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" ]; } |
