common: provide a pinned nixpkgs on all infra machines

This commit is contained in:
Pierre Bourdon 2024-07-10 17:17:18 +02:00
parent 4e869a9f43
commit 70e608a8f7
Signed by untrusted user: delroth
GPG key ID: 6FB80DCD84DA0F1C
2 changed files with 18 additions and 3 deletions

View file

@ -1,10 +1,11 @@
{ {
imports = [ imports = [
./admins.nix ./admins.nix
./raito-vm.nix
./raito-proxy-aware-nginx.nix
./base-server.nix ./base-server.nix
./sysadmin
./hardening.nix ./hardening.nix
./nix.nix
./raito-proxy-aware-nginx.nix
./raito-vm.nix
./sysadmin
]; ];
} }

14
common/nix.nix Normal file
View file

@ -0,0 +1,14 @@
{ lib, pkgs, ... }:
{
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# Provision a useful nixpkgs in NIX_PATH and flake registry on infra
# machines.
nixpkgs.flake = {
source = lib.cleanSource pkgs.path;
setNixPath = true;
setFlakeRegistry = true;
};
}