change wifi service
This commit is contained in:
34
home.nix
34
home.nix
@@ -20,22 +20,22 @@
|
||||
];
|
||||
|
||||
# custom systemd services
|
||||
systemd.user.services.fix-wifi = {
|
||||
Unit = {
|
||||
Description = "Reset wifi adapter so that it works on boot consistently.";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "/home/matt/nix-config/scripts/reset_wifi";
|
||||
# ExecStart = "${pkgs.writeShellScript "fix-wifi" ''
|
||||
# #!/usr/bin/env bash
|
||||
# echo 1 | sudo -u root tee /sys/bus/pci/devices/0000\:09\:00.0/reset
|
||||
# sudo rmmod iwlwifi
|
||||
# sudo modprobe iwlwifi
|
||||
# ''}";
|
||||
};
|
||||
};
|
||||
# systemd.user.services.fix-wifi = {
|
||||
# Unit = {
|
||||
# Description = "Reset wifi adapter so that it works on boot consistently.";
|
||||
# };
|
||||
# Install = {
|
||||
# WantedBy = [ "default.target" ];
|
||||
# };
|
||||
# Service = {
|
||||
# ExecStart = "/home/matt/nix-config/scripts/reset_wifi";
|
||||
# # ExecStart = "${pkgs.writeShellScript "fix-wifi" ''
|
||||
# # #!/usr/bin/env bash
|
||||
# # echo 1 | sudo -u root tee /sys/bus/pci/devices/0000\:09\:00.0/reset
|
||||
# # sudo rmmod iwlwifi
|
||||
# # sudo modprobe iwlwifi
|
||||
# # ''}";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user