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. --- profiles/default.nix | 7 +++++++ profiles/server.nix | 6 ++++++ profiles/workstation.nix | 4 ++++ 3 files changed, 17 insertions(+) create mode 100644 profiles/default.nix create mode 100644 profiles/server.nix (limited to 'profiles') diff --git a/profiles/default.nix b/profiles/default.nix new file mode 100644 index 0000000..f415edf --- /dev/null +++ b/profiles/default.nix @@ -0,0 +1,7 @@ +{ pkgs, config, lib, ... }: +{ + # Select internationalisation properties. + i18n.defaultLocale = "en_US.UTF-8"; + + time.timeZone = "America/Los_Angeles"; +} diff --git a/profiles/server.nix b/profiles/server.nix new file mode 100644 index 0000000..5b96d56 --- /dev/null +++ b/profiles/server.nix @@ -0,0 +1,6 @@ +{ pkgs, config, lib, ... }: +{ + imports = [ + ./default.nix + ]; +} diff --git a/profiles/workstation.nix b/profiles/workstation.nix index ae9423b..fc888d3 100644 --- a/profiles/workstation.nix +++ b/profiles/workstation.nix @@ -1,5 +1,9 @@ { pkgs, config, lib, ... }: { + imports = [ + ./default.nix + ]; + virtualisation.docker.enable = false; virtualisation.podman.enable = true; virtualisation.podman.dockerCompat = true; -- cgit v1.2.3