13 lines
342 B
Nix
13 lines
342 B
Nix
let inherit (import ./.) home-manager writeHaskellScript;
|
|
in {
|
|
update-home = configPath:
|
|
writeHaskellScript {
|
|
name = "update-home";
|
|
bins = [ home-manager ];
|
|
} ''
|
|
main = do
|
|
args <- getArgs
|
|
paths <- myNixPath "${configPath}"
|
|
home_manager $ paths ++ ["switch"] ++ fmap toString args
|
|
'';
|
|
}
|