Add SystemLocalTime for duabloot
This commit is contained in:
parent
681877654d
commit
4d5638baca
2 changed files with 12 additions and 7 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue