From b1ffabc10483067a2a402a945821ead78bfa4f84 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 2 May 2023 07:51:56 -0700 Subject: profiles: create default and server The NAS and the router are "servers", and we create a base profile for them. We add a default profile that will set things that are common to all my hosts, and we start with the locales. Update tahoe/carmel to use the server profile. --- hosts/tahoe/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hosts/tahoe') diff --git a/hosts/tahoe/default.nix b/hosts/tahoe/default.nix index f31135b..4b0408b 100644 --- a/hosts/tahoe/default.nix +++ b/hosts/tahoe/default.nix @@ -1,9 +1,15 @@ -{ config, pkgs, hostname, ... }: +{ config, pkgs, hostname, self, ... }: let sshPub = builtins.fromTOML (builtins.readFile ../../configs/ssh-pubkeys.toml); in { - imports = [ ./boot.nix ./hardware.nix ./networking.nix ./services.nix ]; + imports = [ + ./boot.nix + ./hardware.nix + ./networking.nix + ./services.nix + "${self}/profiles/server.nix" + ]; users.groups.nas.gid = 5000; users.users.nas = { -- cgit 1.4.1