Don't set timezone
This commit is contained in:
parent
f896e89d35
commit
850d25a9ee
4 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
time.timeZone = "America/Toronto";
|
|
||||||
i18n.defaultLocale = "en_CA.UTF-8";
|
i18n.defaultLocale = "en_CA.UTF-8";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
modules/common/state-version.nix
Normal file
1
modules/common/state-version.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{system.stateVersion = "23.11";}
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
|
imports = [./monitor.nix];
|
||||||
networking.hostName = "quadraticpc";
|
networking.hostName = "quadraticpc";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
25
quadraticpc/monitor.nix
Normal file
25
quadraticpc/monitor.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
setvcp = "${lib.meta.getExe pkgs.ddcutil} setvcp D6";
|
||||||
|
in {
|
||||||
|
hardware.i2c.enable = true;
|
||||||
|
systemd.services = {
|
||||||
|
monitor-off = rec {
|
||||||
|
script = "${setvcp} 05";
|
||||||
|
wantedBy = ["sleep.target" "final.target"];
|
||||||
|
before = wantedBy;
|
||||||
|
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
unitConfig.DefaultDependencies = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
monitor-on = rec {
|
||||||
|
script = "${setvcp} 01";
|
||||||
|
wantedBy = ["sleep.target" "multi-user.target"];
|
||||||
|
after = wantedBy;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue