From 66627bbe9db2d89bd02223a44740b43222f40f69 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 9 Jun 2022 02:02:44 +0200 Subject: [PATCH] rpi-netboot: move r/o nix/store config --- hosts/rpi-netboot/default.nix | 8 ++++++++ modules/rpi-netboot.nix | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hosts/rpi-netboot/default.nix b/hosts/rpi-netboot/default.nix index d57b4cde..188e0438 100644 --- a/hosts/rpi-netboot/default.nix +++ b/hosts/rpi-netboot/default.nix @@ -74,6 +74,14 @@ programs.tmux.enable = true; + systemd = { + # r/o /nix/store + services.nix-daemon.enable = false; + sockets.nix-daemon.enable = false; + services.nix-gc.enable = false; + }; + nix.gc.automatic = lib.mkForce false; + # Do not log to flash: services.journald.extraConfig = '' Storage=volatile diff --git a/modules/rpi-netboot.nix b/modules/rpi-netboot.nix index 4b93f108..b807ef1f 100644 --- a/modules/rpi-netboot.nix +++ b/modules/rpi-netboot.nix @@ -43,13 +43,6 @@ libraspberrypi raspberrypi-eeprom ]; - systemd = { - # r/o /nix/store - services.nix-daemon.enable = false; - sockets.nix-daemon.enable = false; - services.nix-gc.enable = false; - }; - nix.gc.automatic = lib.mkForce false; services.journald.extraConfig = '' Storage=volatile '';