1
0
Fork 0

Try without syntax error

This commit is contained in:
Malte Brandy 2020-12-07 04:15:11 +01:00
parent a5c4288b00
commit 5f01aa5490

View file

@ -9,8 +9,8 @@ let
haskellBody = name: commandline: ''
main = do
(configDir:hostname:args) <- getArgs
(decodeUtf8 -> homeManagerChannel) <- nix_instantiate "--eval" "-E" ([i|(import ./channels.nix).#{hostname}.home-manager-channel)|] :: String) |> captureTrim
(decodeUtf8 -> nixpkgsChannel) <- nix_instantiate "--eval" "-E" ([i|(import ./channels.nix).#{hostname}.nixpkgs-channel)|] :: String) |> captureTrim
(decodeUtf8 -> homeManagerChannel) <- nix_instantiate "--eval" "-E" ([i|(import ./channels.nix).#{hostname}.home-manager-channel|] :: String) |> captureTrim
(decodeUtf8 -> nixpkgsChannel) <- nix_instantiate "--eval" "-E" ([i|(import ./channels.nix).#{hostname}.nixpkgs-channel|] :: String) |> captureTrim
paths <- aNixPath homeManagerChannel nixpkgsChannel (toText configDir)
logFile <- mktemp |> captureTrim
let command = (${commandline}) &!> StdOut &> Append logFile