Added a startup script
This commit is contained in:
parent
fa7d42a070
commit
d5629e4363
4 changed files with 28 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
docker-compose
|
||||
dotnetCorePackages.sdk_8_0_1xx
|
||||
dotnetPackages.Nuget
|
||||
ethtool
|
||||
file
|
||||
fzf
|
||||
gcc
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
busybox
|
||||
direnv
|
||||
docker-compose
|
||||
fzf
|
||||
|
|
|
|||
|
|
@ -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
3
misc/startup.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/run/current-system/sw/bin/zsh
|
||||
|
||||
sudo ethtool -s eno1 wol g
|
||||
Loading…
Add table
Add a link
Reference in a new issue