Use nixpkgs from flake input as NIX_PATH

This commit is contained in:
Paul-Henri Froidmont 2022-07-31 22:40:10 +02:00
parent a2cca0d02d
commit 3ceff75ee5
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, nixpkgs, ... }:
{
environment.systemPackages = with pkgs; [
htop
@ -6,4 +6,10 @@
tmux
vim
];
nix = {
nixPath = [
"nixpkgs=${nixpkgs}"
];
};
}

View file

@ -44,6 +44,7 @@
nixosConfigurations = {
db1 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs; };
modules = [
sops-nix.nixosModules.sops
./profiles/db.nix
@ -61,6 +62,7 @@
};
backend1 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs; };
modules = [
sops-nix.nixosModules.sops
./profiles/backend.nix
@ -78,6 +80,7 @@
};
storage1 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs; };
modules = [
defaultModuleArgs
sops-nix.nixosModules.sops