Try without syntax error
This commit is contained in:
parent
a5c4288b00
commit
5f01aa5490
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue