Add SystemLocalTime for duabloot

This commit is contained in:
DashieTM 2025-05-06 21:49:40 +02:00
parent 681877654d
commit 4d5638baca
2 changed files with 12 additions and 7 deletions

View file

@ -59,25 +59,23 @@ in {
++ config.conf.bootParams; ++ config.conf.bootParams;
}; };
# Enable networking
networking = { networking = {
useDHCP = lib.mkDefault true; useDHCP = lib.mkDefault true;
networkmanager.enable = true; networkmanager.enable = true;
hostName = hostName; hostName = hostName;
}; };
# Set your time zone. time = {
time.timeZone = config.conf.timezone; timeZone = config.conf.timezone;
hardwareClockInLocalTime = config.conf.systemLocalTime;
};
# Select internationalisation properties.
i18n.defaultLocale = config.conf.locale; i18n.defaultLocale = config.conf.locale;
# Enable the X11 windowing system.
services = { services = {
lorri.enable = true; lorri.enable = true;
xserver.enable = true; xserver.enable = true;
fstrim.enable = lib.mkDefault true; fstrim.enable = lib.mkDefault true;
# Enable sound with pipewire.
pulseaudio.enable = false; pulseaudio.enable = false;
pipewire = { pipewire = {
enable = true; enable = true;

View file

@ -1,7 +1,6 @@
{ {
lib, lib,
config, config,
pkgs,
options, options,
... ...
}: { }: {
@ -20,6 +19,14 @@
''; '';
}; };
systemLocalTime = lib.mkOption {
default = false;
example = true;
description = ''
System time for dualbooting
'';
};
wsl = lib.mkOption { wsl = lib.mkOption {
default = false; default = false;
example = true; example = true;