summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-01-02 16:56:15 +0100
committerMartin Fischer <martin@push-f.com>2025-01-02 16:56:15 +0100
commit78590c8e329abc8a144eee5e4235b8e82e643c3b (patch)
treedc658fc461615c986f3cf85133d31ea780c8cb4e /nixos
parent30439c27155a05412c63d437f80262a67f3e206b (diff)
feat(workstation): use nix from git for --raw support in nix-instantiate --eval
Diffstat (limited to 'nixos')
-rw-r--r--nixos/profiles/workstation/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix
index 3be5c6c..7192687 100644
--- a/nixos/profiles/workstation/default.nix
+++ b/nixos/profiles/workstation/default.nix
@@ -2,6 +2,12 @@
let
npins = import ../../npins;
+ nixGit = import (pkgs.fetchFromGitHub {
+ owner = "NixOS";
+ repo = "nix";
+ rev = "7a8a28629c61c75af010ff0a5a88c16c4ce536c7";
+ sha256 = "sha256-oqG9AFPXBneKVmiWa9b9ai0hGZqHVKVFaFLdBZitSUA=";
+ });
in
{
imports = [
@@ -25,4 +31,8 @@ in
# Age defaults to this anyway when openssh is enabled.
# We're setting this here for workstations where openssh is disabled.
age.identityPaths = ["/etc/ssh/ssh_host_ed25519_key"];
+
+ # Using nix from git for --raw support in nix-instantiate --eval.
+ # FUTURE: remove once upgrading to NixOS 25.05
+ nix.package = nixGit.packages.${builtins.currentSystem}.default;
}