init
This commit is contained in:
commit
4d6de9beb2
7 changed files with 1016 additions and 0 deletions
32
module.nix
Normal file
32
module.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
self:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.nini;
|
||||
inherit (lib) types;
|
||||
in
|
||||
{
|
||||
options.programs.nini = {
|
||||
enable = lib.mkEnableOption "nini";
|
||||
package = lib.mkPackageOption self.packages.${pkgs.system} "nini" { };
|
||||
flakeref = lib.mkOption {
|
||||
type = types.str;
|
||||
description = ''
|
||||
The flake reference for nini.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment = {
|
||||
systemPackages = [
|
||||
cfg.package
|
||||
];
|
||||
sessionVariables.NINI_FLAKEREF = cfg.flakeref;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue