From ad51b6af33c71e6b3d5be1cd16d7409501007584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 11 Apr 2019 07:52:05 +0200 Subject: [PATCH] krops: deploy from NIXPKGS_VERSION file --- NIXPKGS_VERSION | 1 + configs/shells.nix | 5 +++++ deploy.nix | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 NIXPKGS_VERSION diff --git a/NIXPKGS_VERSION b/NIXPKGS_VERSION new file mode 100644 index 0000000..0d40883 --- /dev/null +++ b/NIXPKGS_VERSION @@ -0,0 +1 @@ +22a606e20d662e2575552ab9b5e7c31aa8331e0e diff --git a/configs/shells.nix b/configs/shells.nix index 93fdb09..7095bd9 100644 --- a/configs/shells.nix +++ b/configs/shells.nix @@ -83,6 +83,11 @@ in { eval $(nix-build ~niveum/deploy.nix -A "$system") done } + + niveum-update() { + cd /var/src/nixpkgs + git rev-parse origin/nixos-18.09 > ~niveum/NIXPKGS_VERSION + } ''; promptInit = '' autoload -Uz vcs_info diff --git a/deploy.nix b/deploy.nix index 97c8189..07c5bce 100644 --- a/deploy.nix +++ b/deploy.nix @@ -13,7 +13,11 @@ let nixpkgs.git = { url = https://github.com/NixOS/nixpkgs-channels; # ref = "6a3f5bcb061e1822f50e299f5616a0731636e4e7"; # 18.09 - ref = "22a606e20d662e2575552ab9b5e7c31aa8331e0e"; + ref = builtins.readFile ./NIXPKGS_VERSION; + }; + nix-writers.git = { + url = https://cgit.krebsco.de/nix-writers/; + ref = "4d0829328e885a6d7163b513998a975e60dd0a72"; }; # stockholm.git = { # url = https://cgit.krebsco.de/stockholm;