[Nix-dev] why has each revision / generation not a own configuration.nix
Profpatsch
mail at profpatsch.de
Wed May 17 15:26:15 CEST 2017
On 17-05-16 04:43pm, zimbatm wrote:
> How do you find back which git revision was used to produce a given NixOS
> profile?
In my case it’s built by a hydra and the system name contains a hash.
>
> Maybe nixos-rebuild should be extended to include that in the revision
> name, and if the git repo is dirty.
You need to include all used paths.
So it’s probably best to write out a file like:
- <vuizvui>:
source: /home/philip/vuizvui
type: git
git:
dirty: yes
rev: 32847298abc
hash:
type: sha256
hash: deadbeef
- <nixpkgs>:
source: https://cache.nixos.org/…/nixpkgs.tar.gz
type: tgz
tgz:
…
hash:
…
- system:
source: user at machine
type: arg
arg:
type: string
val: "x86_64-linux"
Something like that.
YAML because I had to write it by hand.
--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
More information about the nix-dev
mailing list