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 2d57419dee 2nd script and setup for work monitors
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
2021-10-11 10:54:54 +02:00

13 lines
307 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 `exa --all -l machine | grep "^d" | cut -d" " -f8`; do
cp -r machine/$machine /etc/nixos/machine/.
done
cp -r ./home/config/* $HOME/.config/.