1
0
Fork 0
nixos-config/lib/update-home.nix

14 lines
358 B
Nix
Raw Normal View History

2020-05-16 13:59:02 +00:00
let inherit (import ./.) home-manager writeHaskellScript;
2019-07-31 21:56:52 +00:00
in {
update-home = configPath:
writeHaskellScript {
2019-07-26 13:54:30 +00:00
name = "update-home";
2020-05-16 13:59:02 +00:00
bins = [ home-manager ];
2019-07-31 21:56:52 +00:00
} ''
main = do
args <- getArgs
2020-05-16 13:59:02 +00:00
paths <- myNixPath "${configPath}/nix/sources.nix"
2020-01-19 16:40:02 +00:00
home_manager $ paths ++ ["switch"] ++ fmap toString args
2019-07-25 21:35:59 +00:00
'';
}