Add "reset-wifi-module" as a useful example of writeShellApplication
This commit is contained in:
parent
2c6484f66a
commit
8fb3ea82b7
1 changed files with 13 additions and 2 deletions
15
flake.nix
15
flake.nix
|
@ -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
|
||||
'';
|
||||
})
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue