- channel = Channel(url='https://channels.nixos.org/nixos-20.03',
- git_repo='https://github.com/NixOS/nixpkgs.git',
- git_ref='nixos-20.03')
+ config = configparser.ConfigParser()
+ config.read_file(open(argv[1]), argv[1])
+ channel = Channel(**dict(config['nixos'].items()))