From 9653971e3a3db935bf7f9197a9f97d4613703c99 Mon Sep 17 00:00:00 2001 From: Lyes Saadi Date: Sun, 12 Oct 2025 01:22:12 +0200 Subject: [PATCH] Some tweaks for zora --- hosts/zora/default.nix | 1 + hosts/zora/hardware.nix | 2 +- modules/common/system.nix | 5 ++--- modules/server/default.nix | 5 +++++ 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 modules/server/default.nix diff --git a/hosts/zora/default.nix b/hosts/zora/default.nix index b2e032c..4e19179 100644 --- a/hosts/zora/default.nix +++ b/hosts/zora/default.nix @@ -12,6 +12,7 @@ ../../users/lyes ../../modules + ../../modules/server # disko.nixosModules.disko agenix.nixosModules.default diff --git a/hosts/zora/hardware.nix b/hosts/zora/hardware.nix index 06205e9..a388bda 100644 --- a/hosts/zora/hardware.nix +++ b/hosts/zora/hardware.nix @@ -7,7 +7,7 @@ # Boot boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.configurationLimit = 10; - # boot.loader.efi.canTouchEfiVariables = true; + boot.loader.efi.canTouchEfiVariables = true; # boot.kernelParams = [ "quiet" ]; boot.initrd.systemd = { enable = true; diff --git a/modules/common/system.nix b/modules/common/system.nix index f62bf03..582c3a2 100644 --- a/modules/common/system.nix +++ b/modules/common/system.nix @@ -1,8 +1,8 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: { # Time - time.timeZone = "Europe/Paris"; + time.timeZone = lib.mkDefault "Europe/Paris"; # time.timeZone = "Africa/Tunis"; # Locale @@ -34,6 +34,5 @@ documentation.enable = true; documentation.man.enable = true; documentation.dev.enable = true; - # Fails for some reason documentation.nixos.enable = true; } diff --git a/modules/server/default.nix b/modules/server/default.nix new file mode 100644 index 0000000..8719ee0 --- /dev/null +++ b/modules/server/default.nix @@ -0,0 +1,5 @@ +{ }: + +{ + services.openssh.enable = true; +}