Added a startup script

This commit is contained in:
KoenDR06 2024-11-24 18:03:16 +01:00
parent fa7d42a070
commit d5629e4363
4 changed files with 28 additions and 0 deletions

View file

@ -36,6 +36,7 @@
docker-compose
dotnetCorePackages.sdk_8_0_1xx
dotnetPackages.Nuget
ethtool
file
fzf
gcc

View file

@ -28,6 +28,7 @@
};
home.packages = with pkgs; [
busybox
direnv
docker-compose
fzf

View file

@ -38,6 +38,29 @@
networking.hostName = "terra";
systemd.timers."enable-wol" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "1m";
Unit = "enable-wol.service";
};
};
systemd.services."enable-wol" = {
script = ''
/home/horseman/nix-config/misc/startup.sh
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
environment.systemPackages = with pkgs; [
ethtool
];
environment.plasma6.excludePackages = with pkgs.kdePackages; [
kate
konsole

3
misc/startup.sh Executable file
View file

@ -0,0 +1,3 @@
#!/run/current-system/sw/bin/zsh
sudo ethtool -s eno1 wol g