feat: add automatic timezone daemon to laptop module
This commit is contained in:
7
modules/common/features/laptop.nix
Normal file
7
modules/common/features/laptop.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ ... }: {
|
||||||
|
flake.nixosModules.commonFeatureLaptop = { ... }: {
|
||||||
|
services.upower.enable = true;
|
||||||
|
services.logind.settings.Login.HandlePowerKey = "ignore";
|
||||||
|
services.automatic-timezoned.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
self.nixosModules.commonUnstablePkgsOverlay
|
self.nixosModules.commonUnstablePkgsOverlay
|
||||||
|
|
||||||
|
self.nixosModules.commonFeatureLaptop
|
||||||
|
|
||||||
self.nixosModules.commonFeatureEmail
|
self.nixosModules.commonFeatureEmail
|
||||||
self.nixosModules.commonFeatureFont
|
self.nixosModules.commonFeatureFont
|
||||||
self.nixosModules.commonFeatureLocale
|
self.nixosModules.commonFeatureLocale
|
||||||
@@ -39,9 +41,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.upower.enable = true;
|
|
||||||
services.logind.settings.Login.HandlePowerKey = "ignore";
|
|
||||||
|
|
||||||
networking.networkmanager = {
|
networking.networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
@@ -143,8 +142,6 @@
|
|||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
time.timeZone = "America/New_York";
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
|
|||||||
Reference in New Issue
Block a user