From bb0e4c7b5bbec7b8d8e3433a87683e9bb5ec307a Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 22 Oct 2024 23:17:33 +0200 Subject: Add compatibility scripts for nixos-option and other legacy nix tools Signed-off-by: Mel --- compat/nixos/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 compat/nixos/default.nix (limited to 'compat/nixos') diff --git a/compat/nixos/default.nix b/compat/nixos/default.nix new file mode 100644 index 0000000..3d547c2 --- /dev/null +++ b/compat/nixos/default.nix @@ -0,0 +1,13 @@ +# this file provides the current nixos configuration +# taken from the system flake. +# see `../default.nix` for explanation. +{ nixpkgs ? import {}, ... }: + +with builtins; +let + me = with builtins; + nixpkgs.lib.toLower (head (split "\n" (readFile /etc/hostname))); + + flake = import ../flake-compat.nix { src = ./../..; }; +in +flake.defaultNix.nixosConfigurations.${me} -- cgit 1.4.1