summaryrefslogtreecommitdiff
path: root/roles/server.nix
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-02-01 14:57:39 +0100
committerJasper Ras <jaspert.ras@gmail.com>2025-02-01 14:57:39 +0100
commit24eb87d36b150f6364b843bbd9483c8586755354 (patch)
tree21a5153db1abf964005d54278c867485e3d5524c /roles/server.nix
parent6906281953c068a16ef4da4f2febacf2ef171610 (diff)
roles & snorlex
Diffstat (limited to 'roles/server.nix')
-rw-r--r--roles/server.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/roles/server.nix b/roles/server.nix
new file mode 100644
index 0000000..c7321ee
--- /dev/null
+++ b/roles/server.nix
@@ -0,0 +1,41 @@
+{ pkgs, ... }:
+{
+ imports = [ ./base.nix ];
+
+ users.users.jras = {
+ createHome = true;
+ isNormalUser = true;
+ extraGroups = [ "wheel" ];
+ shell = pkgs.zsh;
+ packages = with pkgs; [ git helix curl ];
+ };
+
+ programs.mtr.enable = true;
+
+ services.openssh = {
+ enable = true;
+ allowSFTP = false;
+ settings = {
+ PermitRootLogin = "no";
+ AllowUsers = [ "jras" ];
+ };
+ };
+
+ i18n.defaultLocale = "en_US.UTF-8";
+ i18n.extraLocaleSettings = {
+ LC_ADDRESS = "nl_NL.UTF-8";
+ LC_IDENTIFICATION = "nl_NL.UTF-8";
+ LC_MEASUREMENT = "nl_NL.UTF-8";
+ LC_MONETARY = "nl_NL.UTF-8";
+ LC_NAME = "nl_NL.UTF-8";
+ LC_NUMERIC = "nl_NL.UTF-8";
+ LC_PAPER = "nl_NL.UTF-8";
+ LC_TELEPHONE = "nl_NL.UTF-8";
+ LC_TIME = "nl_NL.UTF-8";
+ };
+
+ services.xserver = {
+ layout = "us";
+ xkbVariant = "";
+ };
+}