Fix channel path
This commit is contained in:
parent
5f01aa5490
commit
aefb9a428c
|
@ -9,8 +9,8 @@ let
|
||||||
haskellBody = name: commandline: ''
|
haskellBody = name: commandline: ''
|
||||||
main = do
|
main = do
|
||||||
(configDir:hostname:args) <- getArgs
|
(configDir:hostname:args) <- getArgs
|
||||||
(decodeUtf8 -> homeManagerChannel) <- nix_instantiate "--eval" "-E" ([i|(import ./channels.nix).#{hostname}.home-manager-channel|] :: String) |> captureTrim
|
(decodeUtf8 -> homeManagerChannel) <- nix_instantiate "--eval" "-E" ([i|(import #{configDir}/channels.nix).#{hostname}.home-manager-channel|] :: String) |> captureTrim
|
||||||
(decodeUtf8 -> nixpkgsChannel) <- nix_instantiate "--eval" "-E" ([i|(import ./channels.nix).#{hostname}.nixpkgs-channel|] :: String) |> captureTrim
|
(decodeUtf8 -> nixpkgsChannel) <- nix_instantiate "--eval" "-E" ([i|(import #{configDir}/channels.nix).#{hostname}.nixpkgs-channel|] :: String) |> captureTrim
|
||||||
paths <- aNixPath homeManagerChannel nixpkgsChannel (toText configDir)
|
paths <- aNixPath homeManagerChannel nixpkgsChannel (toText configDir)
|
||||||
logFile <- mktemp |> captureTrim
|
logFile <- mktemp |> captureTrim
|
||||||
let command = (${commandline}) &!> StdOut &> Append logFile
|
let command = (${commandline}) &!> StdOut &> Append logFile
|
||||||
|
|
Loading…
Reference in a new issue