@@ -26,6 +26,7 @@ import Obelisk.App (MonadObelisk)
2626import Obelisk.CLI (Severity (..), callProcessAndLogOutput, failWith, withSpinner)
2727import Obelisk.CLI.Logging
2828import Obelisk.Command.Nix
29+import Obelisk.Command.Project
2930import Obelisk.Command.Thunk
3031import Obelisk.Command.Utils
3132
@@ -54,8 +55,15 @@ deployInit thunkPtr configDir deployDir sshKeyPath hostnames = do
5455 verifyHostKey (deployDir </> "backend_known_hosts") localKey hostname
5556 liftIO $ do
5657 createThunk (deployDir </> "src") thunkPtr
58+ liftIO $ setupObeliskImpl deployDir
5759 initGit deployDir
5860
61+setupObeliskImpl :: FilePath -> IO ()
62+setupObeliskImpl deployDir = do
63+ let implDir = toImplDir deployDir
64+ createDirectoryIfMissing True implDir
65+ writeFile (implDir </> "default.nix") "(import ../../src {}).obelisk"
66+
5967deployPush :: MonadObelisk m => FilePath -> m ()
6068deployPush deployPath = do
6169 let backendHosts = deployPath </> "backend_hosts"