NixOS-Configuration/update-config.sh

10 lines
178 B
Bash
Executable File

#!/usr/bin/env bash
cp /etc/nixos/hardware-configuration.nix /tmp
rm /etc/nixos/*.nix
cp /tmp/hardware-configuration.nix /etc/nixos/
cp *.nix /etc/nixos/
nixos-rebuild switch