| 12345678910111213141516171819202122232425 |
- {
- coreutils,
- git,
- lib,
- nix,
- writeShellScriptBin,
- }:
- let
- mkdirBin = lib.getExe' coreutils "mkdir";
- rmBin = lib.getExe' coreutils "rm";
- gitBin = lib.getExe git;
- nixBin = lib.getExe nix;
- in
- writeShellScriptBin "quick-setup" ''
- set -e
- ${mkdirBin} -p ~/workspace/control
- cd ~/workspace/control
- ${gitBin} clone [email protected]:control/home
- cd home
- ${rmBin} -r ~/.config/fish/
- ${nixBin} run github:nix-community/home-manager -- \
- switch --flake .#$(whoami)@$(hostname)
- ''
|