options follow my.schema to avoid conflicts
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
{ config, pkgs, lib, unstable, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
myArt.enable = lib.mkEnableOption "enable";
|
||||
myGameDev.enable = lib.mkEnableOption "enable";
|
||||
let
|
||||
unstable = import
|
||||
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
|
||||
config = config.nixpkgs.config;
|
||||
};
|
||||
in {
|
||||
options.my = {
|
||||
apps.art.enable = lib.mkEnableOption "enable";
|
||||
dev.gameDev.enable = lib.mkEnableOption "enable";
|
||||
};
|
||||
config = lib.mkIf config.myArt.enable {
|
||||
config = lib.mkIf config.my.apps.art.enable {
|
||||
users.users.jawz.packages = with pkgs;
|
||||
([
|
||||
gimp # the coolest bestest art program to never exist
|
||||
@@ -16,7 +20,7 @@
|
||||
# drawpile # arty party with friends!!
|
||||
pureref # create inspiration/reference boards
|
||||
blender # cgi animation and sculpting
|
||||
]) ++ (if config.myGameDev.enable then [
|
||||
]) ++ (if config.my.dev.gameDev.enable then [
|
||||
godot_4 # game development
|
||||
unstable.gdtoolkit # gdscript language server
|
||||
] else
|
||||
|
||||
Reference in New Issue
Block a user