2016-02-01 20:58:19 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2021-03-12 19:08:43 +00:00
|
|
|
# nix-shell -p wol --run 'wol C8:CB:B8:CF:E4:DC --passwd=CA-FE-BA-BE-13-37'
|
2016-02-01 20:58:19 +00:00
|
|
|
let
|
2021-03-12 19:08:43 +00:00
|
|
|
itf = config.makefu.server.primary-itf;
|
2016-02-01 20:58:19 +00:00
|
|
|
in {
|
2015-11-06 10:01:49 +00:00
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
2021-03-12 19:08:43 +00:00
|
|
|
./hw.nix
|
2017-07-15 17:01:02 +00:00
|
|
|
<stockholm/makefu>
|
2021-03-12 19:08:43 +00:00
|
|
|
<stockholm/makefu/2configs/home-manager>
|
2017-07-15 17:01:02 +00:00
|
|
|
<stockholm/makefu/2configs/fs/single-partition-ext4.nix>
|
|
|
|
<stockholm/makefu/2configs/smart-monitor.nix>
|
|
|
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
|
|
|
<stockholm/makefu/2configs/filepimp-share.nix>
|
2015-11-06 10:01:49 +00:00
|
|
|
];
|
2016-10-19 10:31:13 +00:00
|
|
|
|
2015-11-06 10:01:49 +00:00
|
|
|
krebs.build.host = config.krebs.hosts.filepimp;
|
2016-10-19 10:31:13 +00:00
|
|
|
|
2021-03-12 19:08:43 +00:00
|
|
|
networking.firewall.trustedInterfaces = [ itf ];
|
2016-10-19 10:31:13 +00:00
|
|
|
|
2016-07-30 16:42:57 +00:00
|
|
|
services.wakeonlan.interfaces = [
|
|
|
|
{
|
2021-03-12 19:08:43 +00:00
|
|
|
interface = itf ;
|
2016-07-30 16:42:57 +00:00
|
|
|
method = "password";
|
|
|
|
password = "CA:FE:BA:BE:13:37";
|
|
|
|
}
|
|
|
|
];
|
2015-11-06 10:01:49 +00:00
|
|
|
}
|