mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
WIP wakeonlan
This commit is contained in:
parent
ae371c06bf
commit
e9ad6f9cda
3 changed files with 19 additions and 2 deletions
14
features/server/wakeonlan.nix
Normal file
14
features/server/wakeonlan.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.tlp = {
|
||||
settings = {
|
||||
# https://wiki.archlinux.org/title/Wake-on-LAN#Enable_WoL_in_TLP
|
||||
WOL_DISABLE = "N";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ethtool
|
||||
];
|
||||
}
|
||||
|
|
@ -65,6 +65,7 @@
|
|||
./features/server/harden.nix
|
||||
./features/server/devserver.nix
|
||||
./features/server/unlaptop.nix
|
||||
./features/server/wakeonlan.nix
|
||||
./features/ema/emanote.nix
|
||||
./features/lxd.nix
|
||||
./features/docker.nix
|
||||
|
|
|
|||
|
|
@ -19,12 +19,14 @@
|
|||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/25d3748c-b6fc-43d6-819a-e916821bd06e";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/25d3748c-b6fc-43d6-819a-e916821bd06e";
|
||||
fsType = "ext4";
|
||||
};
|
||||
boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/ccc661bc-c59f-4172-b6e0-2ba54d34de5c";
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/A782-D559";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/A782-D559";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue