From 877419bbde33127e9be27de59ae00de6612663c9 Mon Sep 17 00:00:00 2001 From: Julien Moutinho <julm+julm-nix@sourcephile.fr> Date: Thu, 5 May 2022 23:04:05 +0200 Subject: [PATCH] nixos: add profile builder --- nixos/profiles/builder.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nixos/profiles/builder.nix diff --git a/nixos/profiles/builder.nix b/nixos/profiles/builder.nix new file mode 100644 index 0000000..79622c0 --- /dev/null +++ b/nixos/profiles/builder.nix @@ -0,0 +1,21 @@ +{ inputs, pkgs, lib, config, ... }: +{ +nix.extraOptions = '' + experimental-features = nix-command flakes +''; +#nix.registry.self.flake = inputs.self; +# Pin the rev to the revision of the public Nixpkgs that the system was built from. +# This is the version which will be locked by flakes using flake:nixpkgs +nix.registry.nixpkgs = { + from = { id = "nixpkgs"; type = "indirect"; }; + to = { + owner = "NixOS"; + repo = "nixpkgs"; + rev = inputs.nixpkgs.rev; + type = "github"; + }; +}; +nix.nixPath = [ + "nixpkgs=${inputs.nixpkgs}" +]; +} -- 2.47.2