From d0a6e83fbdb79db022d6f5058aec0854eeff6647 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Wed, 11 Feb 2026 16:39:10 +0100 Subject: Make the motd filesystems host-dependent --- modules/motd.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'modules/motd.nix') diff --git a/modules/motd.nix b/modules/motd.nix index f9f572c..b91a23c 100644 --- a/modules/motd.nix +++ b/modules/motd.nix @@ -33,6 +33,21 @@ let fi $1 ''; + + filesystems = { + "omega-relay" = { + root = "/"; + }; + "apocalypse" = { + root = "/"; + store = "/store2"; + ntfs = "/win_games"; + }; + "_default" = { + root = "/"; + }; + }; + current_fses = filesystems.${config.networking.hostName} or filesystems."_default"; in { environment.systemPackages = with pkgs; [ @@ -65,11 +80,7 @@ in {one:.02} , {five:.02} , {fifteen:.02} ''; }; - filesystems = { - root = "/"; - store = "/store2"; - ntfs = "/win_games"; - }; + filesystems = current_fses; memory = { swap_pos = "beside"; }; -- cgit v1.3.1