feat(nh): move to nixpkgs module from flake

This commit is contained in:
ooks-io 2024-04-19 17:56:48 +12:00
parent f0eb6b6366
commit e07a71f46b

View file

@ -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";