Use only nixos.org channels if guess
This commit is contained in:
parent
d973179557
commit
40ef3fe50e
@ -58,8 +58,10 @@ func guessChannel() (channel string, err error) {
|
||||
for _, line := range channels {
|
||||
fields := strings.Fields(line)
|
||||
if len(fields) == 2 {
|
||||
channel = fields[0]
|
||||
return
|
||||
if strings.Contains(fields[1], "nixos.org/channels") {
|
||||
channel = fields[0]
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user