Compare commits
1 Commits
old-master
...
e57b1b5fd8
| Author | SHA1 | Date | |
|---|---|---|---|
| e57b1b5fd8 |
@@ -5,9 +5,12 @@
|
|||||||
../common/xeon.nix
|
../common/xeon.nix
|
||||||
../common/ssf/hosts.nix
|
../common/ssf/hosts.nix
|
||||||
../module/ceph.nix
|
../module/ceph.nix
|
||||||
|
../module/power-policy.nix
|
||||||
./nfs.nix
|
./nfs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
power.policy = "always-on";
|
||||||
|
|
||||||
# Don't install grub MBR for now
|
# Don't install grub MBR for now
|
||||||
boot.loader.grub.device = "nodev";
|
boot.loader.grub.device = "nodev";
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
../../module/power-policy.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Turn on as soon as we have power
|
|
||||||
power.policy = "always-on";
|
|
||||||
}
|
|
||||||
9
m/common/base/power-policy.nix
Normal file
9
m/common/base/power-policy.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../module/power-policy.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# By default, keep the machines off as we don't know if the AC will be working
|
||||||
|
# once the electricity comes back.
|
||||||
|
power.policy = "always-off";
|
||||||
|
}
|
||||||
@@ -6,8 +6,11 @@
|
|||||||
../common/xeon/console.nix
|
../common/xeon/console.nix
|
||||||
../module/emulation.nix
|
../module/emulation.nix
|
||||||
../module/nvidia.nix
|
../module/nvidia.nix
|
||||||
|
../module/power-policy.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
power.policy = "always-on";
|
||||||
|
|
||||||
# Don't turn off on August as UPC has different dates.
|
# Don't turn off on August as UPC has different dates.
|
||||||
# Fox works fine on power cuts.
|
# Fox works fine on power cuts.
|
||||||
systemd.timers.august-shutdown.enable = false;
|
systemd.timers.august-shutdown.enable = false;
|
||||||
|
|||||||
@@ -7,9 +7,12 @@
|
|||||||
../module/debuginfod.nix
|
../module/debuginfod.nix
|
||||||
../module/ssh-hut-extern.nix
|
../module/ssh-hut-extern.nix
|
||||||
../module/nvidia.nix
|
../module/nvidia.nix
|
||||||
|
../module/power-policy.nix
|
||||||
../eudy/kernel/perf.nix
|
../eudy/kernel/perf.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
power.policy = "always-on";
|
||||||
|
|
||||||
# Don't install Grub on the disk yet
|
# Don't install Grub on the disk yet
|
||||||
boot.loader.grub.device = "nodev";
|
boot.loader.grub.device = "nodev";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user