|
|
@@ -0,0 +1,21 @@
|
|
|
+{ coreutils
|
|
|
+, git
|
|
|
+, lib
|
|
|
+, nix
|
|
|
+, writeShellScriptBin
|
|
|
+}:
|
|
|
+
|
|
|
+let
|
|
|
+ core = name: "${lib.getExe coreutils name}";
|
|
|
+ gitBin = lib.getExe git;
|
|
|
+ nixBin = lib.getExe nix;
|
|
|
+in
|
|
|
+
|
|
|
+writeShellScriptBin "quick-setup" ''
|
|
|
+ ${core "mkdir"} -p ~/workspace/control
|
|
|
+ ${core "cd"} ~/workspace/control
|
|
|
+ ${gitBin} clone [email protected]:control/home
|
|
|
+ ${core "cd"} home
|
|
|
+ ${nixBin} run github:nix-community/home-manager -- \
|
|
|
+ switch --flake .#$(whoami)@$(hostname)
|
|
|
+''
|