formatting, unfree unstable

This commit is contained in:
Peder Bergebakken Sundt 2023-07-03 02:23:35 +02:00
parent 6353eb962f
commit 324fa6c9d2
1 changed files with 11 additions and 11 deletions

View File

@ -87,21 +87,21 @@
networking.hostName = hostname; networking.hostName = hostname;
networking.domain = domain; networking.domain = domain;
networking.search = [ domain ]; networking.search = [ domain ];
nixpkgs.overlays = [ # TODO: consider nixpkgs.config.packageOverrides nixpkgs.overlays = [
(final: prev: { (final: prev: {
unstable = unstable.legacyPackages.${final.system}; #unstable = unstable.legacyPackages.${final.system};
unstable = import unstable { inherit system; config.allowUnfree = true; }; # TODO: inherit nixos config from stable
}) })
]; ];
# This makes commandline tools like 'nix run nixpkgs#hello' # This makes commandline tools like 'nix run nixpkgs#hello'
# and 'nix-shell -p hello' use the same channel as system was built with # and 'nix-shell -p hello' use the same channel as system was built with
nix.registry.nixpkgs.flake = inputs.nixpkgs; nix.registry.nixpkgs.flake = inputs.nixpkgs;
nix.registry.unstable.flake = inputs.unstable; #nix.registry.nixpkgs-unstable.flake = inputs.unstable;
nix.registry.nixpkgs-unstable.flake = inputs.unstable; nix.registry.nixpkgs-unstable.flake = "github:NixOS/nixpkgs/nixos-unstable";
nix.nixPath = [ nix.nixPath = [
"nixpkgs=${inputs.nixpkgs}" "nixpkgs=${inputs.nixpkgs}"
# TODO: are these needed? #"nixpkgs-unstable=${inputs.unstable}"
"unstable=${inputs.unstable}" "nixpkgs-unstable=github:NixOS/nixpkgs/nixos-unstable"
"nixpkgs-unstable=${inputs.unstable}"
]; ];
})]; })];
}; };
@ -154,7 +154,7 @@
in { in {
envrc-local = mkShell envrc-pkgs; envrc-local = mkShell envrc-pkgs;
envrc-remote = mkShell (envrc-pkgs ++ [ envrc-remote = mkShell (envrc-pkgs ++ [
flakes.unstable.pkgs.remote-exec flakes.unstable.pkgs.remote-exec # TODO: stable
pkgs.yq pkgs.yq
pkgs.rsync pkgs.rsync
]); ]);