From 9eb8cdca9e5b253d16ab3f8a02fdf6ae3d991e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 3 Apr 2024 17:20:51 +0300 Subject: [PATCH] sdcard-based machines: move to a profile --- hosts/vno1-op5p/configuration.nix | 1 + hosts/vno3-rp3b/configuration.nix | 8 +++----- modules/profiles/sdcard/default.nix | 3 +++ 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 modules/profiles/sdcard/default.nix diff --git a/hosts/vno1-op5p/configuration.nix b/hosts/vno1-op5p/configuration.nix index f0aa0d7..c6e0cac 100644 --- a/hosts/vno1-op5p/configuration.nix +++ b/hosts/vno1-op5p/configuration.nix @@ -7,6 +7,7 @@ in { imports = [ ../../modules + ../../modules/profiles/sdcard ../../shared/platform/orangepi5plus.nix ]; diff --git a/hosts/vno3-rp3b/configuration.nix b/hosts/vno3-rp3b/configuration.nix index d3b3e42..63c0031 100644 --- a/hosts/vno3-rp3b/configuration.nix +++ b/hosts/vno3-rp3b/configuration.nix @@ -7,9 +7,9 @@ myData, ... }: { - # previously: - # imports = [(modulesPath + "/installer/scan/not-detected.nix")]; - # as of 23.05 that is: + imports = [ + ../../modules/profiles/sdcard + ]; boot = { initrd = { @@ -112,8 +112,6 @@ }; }; - services.journald.extraConfig = "Storage=volatile"; - environment.etc = { "datapool-passphrase.txt".source = config.age.secrets.datapool-passphrase.path; }; diff --git a/modules/profiles/sdcard/default.nix b/modules/profiles/sdcard/default.nix new file mode 100644 index 0000000..8dbf00f --- /dev/null +++ b/modules/profiles/sdcard/default.nix @@ -0,0 +1,3 @@ +_: { + services.journald.extraConfig = "Storage=volatile"; +}