From e07a71f46b08645ec2a4ef745319530f26fd1807 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Fri, 19 Apr 2024 17:56:48 +1200 Subject: [PATCH] feat(nh): move to nixpkgs module from flake --- system/modules/nix/nh.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/system/modules/nix/nh.nix b/system/modules/nix/nh.nix index 0eb393d..b31e99a 100644 --- a/system/modules/nix/nh.nix +++ b/system/modules/nix/nh.nix @@ -1,19 +1,17 @@ -{ inputs, lib, config, ... }: +{ pkgs, lib, config, ... }: let cfg = config.systemModules.nixOptions; + inherit (lib) mkIf; in { - imports = [ - inputs.nh.nixosModules.default - ]; - - config = lib.mkIf cfg.enable { + config = mkIf cfg.enable { environment.variables.FLAKE = "/home/ooks/.config/ooknix/"; - nh = { + programs.nh = { enable = true; + package = pkgs.nh; clean = { enable = true; extraArgs = "--keep-since 30d";