This commit is contained in:
mjallen18
2024-12-12 13:00:21 -06:00
parent cd286b89b0
commit c259cb91de
7 changed files with 83 additions and 339 deletions

View File

@@ -14,18 +14,6 @@ let
passwordFile = config.sops.secrets."desktop/matt_password".path;
hostname = "matt-nixos";
resetNetworkScript = pkgs.writeScriptBin "reset-network" ''
#!/usr/bin/env bash
echo "checking network..."
if nmcli -t -f STATE general | grep -q "connected"; then
exit 0
else
echo "resetting network..."
echo 1 | tee /sys/bus/pci/devices/0000\:09\:00.0/reset
rmmod iwlwifi
modprobe iwlwifi
fi
'';
fixWifiScript = pkgs.writeScriptBin "fix-wifi" ''
#!/usr/bin/env python3
@@ -105,6 +93,7 @@ in
{
imports = [
# Include the results of the hardware scan.
../../modules/apps/discover-wrapped
./hardware-configuration.nix
./boot.nix
./filesystems.nix
@@ -113,7 +102,7 @@ in
../../share/amd
# specialisations
# ./cosmic
./hyprland
# ./hyprland
./gnome
];