From f4d8ab880a58e00af5a7fcda112baa7de2f8f0df Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 11 Feb 2024 02:11:21 +0900 Subject: feat(project)!: support nixos-rebuild and hydra --- default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 63f1796..f620865 100644 --- a/default.nix +++ b/default.nix @@ -1,8 +1,10 @@ -{ inputs, lib, ... }: -with lib; -with lib.my; -{ - imports = mapModulesRec' (toString ./modules) import; - - networking.useDHCP = mkDefault false; -} +(import + ( + let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in + fetchTarball { + url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + } + ) + { src = ./.; } +).defaultNix -- cgit 1.4.1