forked from lix-project/lix-installer
don't duplicate substituter list
This commit is contained in:
parent
eb253d097d
commit
3bf2630935
|
@ -7,7 +7,7 @@ use crate::action::{
|
||||||
Action, ActionDescription, ActionError, ActionErrorKind, ActionTag, StatefulAction,
|
Action, ActionDescription, ActionError, ActionErrorKind, ActionTag, StatefulAction,
|
||||||
};
|
};
|
||||||
use crate::parse_ssl_cert;
|
use crate::parse_ssl_cert;
|
||||||
use crate::settings::UrlOrPathOrString;
|
use crate::settings::{UrlOrPathOrString, LIX_DEFAULT_SUBSTITUTERS, LIX_DEFAULT_SUBSTITUTER_KEYS};
|
||||||
use indexmap::map::Entry;
|
use indexmap::map::Entry;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -136,11 +136,11 @@ impl PlaceNixConfiguration {
|
||||||
// Set up our substituters.
|
// Set up our substituters.
|
||||||
settings.insert(
|
settings.insert(
|
||||||
"substituters".to_string(),
|
"substituters".to_string(),
|
||||||
"https://cache.nixos.org https://cache.lix.systems".to_string(),
|
LIX_DEFAULT_SUBSTITUTERS.join(" "),
|
||||||
);
|
);
|
||||||
settings.insert(
|
settings.insert(
|
||||||
"trusted-public-keys".to_string(),
|
"trusted-public-keys".to_string(),
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=".to_string()
|
LIX_DEFAULT_SUBSTITUTER_KEYS.join(" "),
|
||||||
);
|
);
|
||||||
|
|
||||||
if enable_flakes {
|
if enable_flakes {
|
||||||
|
|
Loading…
Reference in a new issue