From cabf188ae487120d4b9ac1fe21fff45403a787b4 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 24 Aug 2026 01:09:49 -0400 Subject: various fixes to guix --- users/ryan/linux/foreign.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 users/ryan/linux/foreign.nix (limited to 'users/ryan/linux/foreign.nix') diff --git a/users/ryan/linux/foreign.nix b/users/ryan/linux/foreign.nix new file mode 100644 index 0000000..b1b06ab --- /dev/null +++ b/users/ryan/linux/foreign.nix @@ -0,0 +1,25 @@ +{ inputs, ... }: + +# Applies to any standalone (non-NixOS) home-manager install, where +# home-manager owns the user profile on its own instead of being wired in +# via a NixOS module. NixOS manages nix.conf/the flake registry and doesn't +# need the genericLinux target at all, so this is skipped on NixOS hosts. +{ + targets.genericLinux.enable = true; + + xdg.configFile."nix/nix.conf".text = "experimental-features = nix-command flakes\n"; + xdg.configFile."nix/registry.json".text = builtins.toJSON { + version = 2; + flakes = [ + { + from = { type = "indirect"; id = "nixpkgs"; }; + to = { + type = "path"; + path = inputs.nixpkgs.outPath; + lastModified = inputs.nixpkgs.lastModified; + narHash = inputs.nixpkgs.narHash; + }; + } + ]; + }; +} -- cgit v1.3.1