From eadd982a792d31031c6076a8fd177195fb631ce8 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 20 May 2023 22:34:57 +0100 Subject: [PATCH] rotuer: set hostname --- examples/rotuer.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/rotuer.nix b/examples/rotuer.nix index a7f40c5..0206112 100644 --- a/examples/rotuer.nix +++ b/examples/rotuer.nix @@ -36,7 +36,7 @@ in rec { ../modules/standard.nix ]; rootfsType = "jffs2"; - + hostname = "rotuer"; kernel = { config = { PPP = "y"; @@ -223,7 +223,7 @@ in rec { services.default = target { name = "default"; - contents = with services; [ + contents = with config.services; [ config.hardware.networkInterfaces.lo config.hardware.networkInterfaces.lan int @@ -236,7 +236,8 @@ in rec { dns resolvconf sshd + config.services.hostname ]; }; - defaultProfile.packages = with pkgs; [ nftables tcpdump ] ; + defaultProfile.packages = with pkgs; [min-collect-garbage nftables tcpdump] ; }