mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 01:08:32 +02:00
feat: disable nix channel
This commit is contained in:
@@ -23,9 +23,7 @@ in
|
|||||||
{
|
{
|
||||||
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
|
nix.channel.enable = false; # disable nix-channel, we use flakes instead.
|
||||||
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
|
|
||||||
nix.nixPath = ["/etc/nix/inputs"];
|
|
||||||
}
|
}
|
||||||
] ++ (if (home-module != null) then [
|
] ++ (if (home-module != null) then [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|||||||
@@ -14,14 +14,15 @@ in
|
|||||||
modules =
|
modules =
|
||||||
darwin-modules
|
darwin-modules
|
||||||
++ [
|
++ [
|
||||||
{
|
({lib, ...}: {
|
||||||
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
|
|
||||||
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
|
|
||||||
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
|
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
|
||||||
nix.nixPath = ["/etc/nix/inputs"];
|
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
|
||||||
}
|
# discard all the default paths, and only use the one from this flake.
|
||||||
|
nix.nixPath = lib.mkForce ["/etc/nix/inputs"];
|
||||||
|
})
|
||||||
|
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,10 +17,7 @@ in
|
|||||||
{
|
{
|
||||||
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
|
nix.channel.enable = false; # disable nix-channel, we use flakes instead.
|
||||||
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
|
|
||||||
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
|
|
||||||
nix.nixPath = ["/etc/nix/inputs"];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nixos-generators.nixosModules.all-formats
|
nixos-generators.nixosModules.all-formats
|
||||||
|
|||||||
Reference in New Issue
Block a user