Add "reset-wifi-module" as a useful example of writeShellApplication

This commit is contained in:
Daniel Flanagan 2024-07-14 22:16:45 -05:00
parent 2c6484f66a
commit 8fb3ea82b7

View file

@ -242,7 +242,7 @@
./nixos/foxtrot.nix
{
({pkgs, ...}: {
home-manager.users.daniel = {
imports = with homeManagerModules; [
senpai
@ -252,7 +252,18 @@
linux-desktop-environment-config
];
};
}
environment.systemPackages = [
(pkgs.writeShellApplication
{
name = "reset-wifi-module";
runtimeInputs = with pkgs; [kmod];
text = ''
modprobe -rv mt7921e
modprobe -v mt7921e
'';
})
];
})
];
};