feat(nh): move to nixpkgs module from flake
This commit is contained in:
parent
f0eb6b6366
commit
e07a71f46b
1 changed files with 5 additions and 7 deletions
|
|
@ -1,19 +1,17 @@
|
||||||
{ inputs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.systemModules.nixOptions;
|
cfg = config.systemModules.nixOptions;
|
||||||
|
inherit (lib) mkIf;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
config = mkIf cfg.enable {
|
||||||
inputs.nh.nixosModules.default
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
environment.variables.FLAKE = "/home/ooks/.config/ooknix/";
|
environment.variables.FLAKE = "/home/ooks/.config/ooknix/";
|
||||||
|
|
||||||
nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.nh;
|
||||||
clean = {
|
clean = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraArgs = "--keep-since 30d";
|
extraArgs = "--keep-since 30d";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue