implemented nixos and home-manager nix modules for the flake

This commit is contained in:
2026-02-19 17:30:21 -05:00
parent 982d11f21b
commit 934c41714a
4 changed files with 283 additions and 136 deletions

21
nix/module.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.fern;
in
{
options.programs.fern = {
enable = lib.mkEnableOption "fern shell";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.fern;
description = "The fern package to use";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
environment.shells = [ cfg.package ];
};
}