1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/to_system.sh
Stefan Ellmauthaler 0700681fb0 hw-config for dell, fixed to_system.sh script
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
2021-10-11 14:40:38 +02:00

13 lines
321 B
Bash
Executable File

#! /usr/bin/env nix-shell
#! nix-shell -i zsh -p zsh
cp configuration.nix /etc/nixos/.
cp -r programs /etc/nixos/.
mkdir -p /etc/nixos/machine
for machine in `ls -al machine | grep "^d" | rev | cut -d" " -f1 | rev`; do
cp -r machine/${machine} /etc/nixos/machine/
done
cp -r ./home/config/* /home/ellmau/.config/.