diff --git a/base/common_hardware.nix b/base/common_hardware.nix index 6f3c94d..e5b9029 100644 --- a/base/common_hardware.nix +++ b/base/common_hardware.nix @@ -59,25 +59,23 @@ in { ++ config.conf.bootParams; }; - # Enable networking networking = { useDHCP = lib.mkDefault true; networkmanager.enable = true; hostName = hostName; }; - # Set your time zone. - time.timeZone = config.conf.timezone; + time = { + timeZone = config.conf.timezone; + hardwareClockInLocalTime = config.conf.systemLocalTime; + }; - # Select internationalisation properties. i18n.defaultLocale = config.conf.locale; - # Enable the X11 windowing system. services = { lorri.enable = true; xserver.enable = true; fstrim.enable = lib.mkDefault true; - # Enable sound with pipewire. pulseaudio.enable = false; pipewire = { enable = true; diff --git a/modules/conf.nix b/modules/conf.nix index 5189e92..d7a8dc2 100644 --- a/modules/conf.nix +++ b/modules/conf.nix @@ -1,7 +1,6 @@ { lib, config, - pkgs, options, ... }: { @@ -20,6 +19,14 @@ ''; }; + systemLocalTime = lib.mkOption { + default = false; + example = true; + description = '' + System time for dualbooting + ''; + }; + wsl = lib.mkOption { default = false; example = true;