update
This commit is contained in:
parent
3501857f2a
commit
f1db3fcdfd
8 changed files with 38 additions and 6 deletions
|
|
@ -8,7 +8,7 @@
|
|||
./sd-image.nix
|
||||
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
||||
./hardware-configuration.nix
|
||||
../../../modules
|
||||
../../../modules/nixos
|
||||
];
|
||||
|
||||
osbmModules = {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../../modules
|
||||
../../../modules/nixos
|
||||
];
|
||||
|
||||
osbmModules = {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../../modules
|
||||
../../../modules/nixos
|
||||
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
|
||||
inputs.nixos-hardware.nixosModules.raspberry-pi-5
|
||||
];
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../../modules
|
||||
../../../modules/nixos
|
||||
];
|
||||
|
||||
osbmModules = {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../../modules
|
||||
../../../modules/nixos
|
||||
];
|
||||
osbmModules = {
|
||||
enableKDE = false;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../../modules
|
||||
../../../modules/nixos
|
||||
];
|
||||
|
||||
osbmModules = {
|
||||
|
|
|
|||
7
modules/default.nix
Normal file
7
modules/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Main module entry point
|
||||
# Import the new NixOS module system
|
||||
{
|
||||
imports = [
|
||||
./nixos
|
||||
];
|
||||
}
|
||||
25
modules/nixos/hardware/wakeOnLan.nix
Normal file
25
modules/nixos/hardware/wakeOnLan.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.osbmModules.hardware.wakeOnLan.enable {
|
||||
networking.interfaces.enp3s0.wakeOnLan.enable = true;
|
||||
# The services doesn't actually work atm, define an additional service
|
||||
# see https://github.com/NixOS/nixpkgs/issues/91352
|
||||
systemd.services.wakeonlan = {
|
||||
description = "Reenable wake on lan every boot";
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
RemainAfterExit = "true";
|
||||
ExecStart = "${pkgs.ethtool}/sbin/ethtool -s enp3s0 wol g";
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue