mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add module template
This commit is contained in:
parent
7e19a91f06
commit
a6dcf54097
1 changed files with 16 additions and 0 deletions
16
modules/_template.nix
Normal file
16
modules/_template.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.sconfig._options_name_;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.sconfig._options_name_ = lib.mkEnableOption "Do a Barrel Roll";
|
||||||
|
options.sconfig._options_name_ = lib.mkOption {
|
||||||
|
default = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "Do a Barrel Roll";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg {
|
||||||
|
environment.systemPackages = with pkgs; [ hello ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue