WIP!!!!!!!

This commit is contained in:
punkfairie 2024-11-14 21:59:08 -08:00
parent 5cf26ebf11
commit f48485cf90
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
4 changed files with 69 additions and 8 deletions

View file

@ -1,15 +1,17 @@
{
description = "marleyOS";
outputs = inputs: inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "marleyos";
title = "marleyOS";
}
};
snowfall = {
namespace = "marleyos";
title = "marleyOS";
};
};
old =
{ self, ... }@inputs:

View file

@ -0,0 +1,4 @@
{ ... }:
{
home.stateVersion = "24.05";
}

51
lib/module/default.nix Normal file
View file

@ -0,0 +1,51 @@
{ lib, ... }:
with lib;
rec {
## Create a NixOS module option.
##
## ```nix
## lib.mkOpt nixpkgs.lib.types.str "My default" "Description of my option."
## ```
##
#@ Type -> Any -> String
mkOpt =
type: default: description:
mkOption {
inherit
type
default
description
;
};
## Create a boolean NixOS module option.
##
## ```nix
## lib.mkBoolOpt true "Description of my option."
## ```
##
#@ Type -> Any -> String
mkBoolOpt = mkOpt types.bool;
enabled = {
## Quickly enable an option.
##
## ```nix
## services.nginx = enabled;
## ```
##
#@ true
enable = true;
};
disabled = {
## Quickly disable an option.
##
## ```nix
## services.nginx = enabled;
## ```
##
#@ false
enable = false;
};
}

View file

@ -0,0 +1,4 @@
{ namespace, lib, ... }:
{
}