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,14 +1,16 @@
{ {
description = "marleyOS"; description = "marleyOS";
outputs = inputs: inputs.snowfall-lib.mkFlake { outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs; inherit inputs;
src = ./.; src = ./.;
snowfall = { snowfall = {
namespace = "marleyos"; namespace = "marleyos";
title = "marleyOS"; title = "marleyOS";
} };
}; };
old = old =

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, ... }:
{
}