NixOS-Configuration/update-config.sh

10 lines
178 B
Bash
Raw Permalink Normal View History

2023-06-30 22:06:14 +00:00
#!/usr/bin/env bash
cp /etc/nixos/hardware-configuration.nix /tmp
2023-06-30 22:38:56 +00:00
rm /etc/nixos/*.nix
2023-06-30 22:06:14 +00:00
cp /tmp/hardware-configuration.nix /etc/nixos/
2023-06-30 22:38:56 +00:00
cp *.nix /etc/nixos/
nixos-rebuild switch