From 80951705f1ec80a85abf460680f4f6753d153311 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 15:19:20 +0300 Subject: [PATCH] add projects module --- hosts/sakotop/configuration.nix | 5 +++++ modules/dev/default.nix | 1 + modules/dev/projects/SakoEngine/default.nix | 17 +++++++++++++++++ modules/dev/projects/default.nix | 5 +++++ 4 files changed, 28 insertions(+) create mode 100644 modules/dev/projects/SakoEngine/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 8c6d06e5..fa26bd5e 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -18,6 +18,8 @@ bspwm.enable = true; browsers = { qutebrowser.enable = true; + # for those quick thinsg where i dont know how to do it on qutebrowser + firefox.enable = true; }; apps = { keepassxc.enable = true; @@ -44,6 +46,9 @@ javascript.enable = true; python.enable = true; rust.enable = true; + projects = { + sakoEngine.enable = true; + }; }; shell = { nix = { diff --git a/modules/dev/default.nix b/modules/dev/default.nix index 146c16a3..c7260414 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -5,5 +5,6 @@ ./javascript.nix ./python.nix ./rust.nix + ./projects ]; } diff --git a/modules/dev/projects/SakoEngine/default.nix b/modules/dev/projects/SakoEngine/default.nix new file mode 100644 index 00000000..2f407131 --- /dev/null +++ b/modules/dev/projects/SakoEngine/default.nix @@ -0,0 +1,17 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.dev.projects.sakoEngine; +in +{ + options.modules.dev.projects.sakoEngine = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + SDL2 + SDL2_image + ]; + }; +} diff --git a/modules/dev/projects/default.nix b/modules/dev/projects/default.nix index e69de29b..846c21bd 100644 --- a/modules/dev/projects/default.nix +++ b/modules/dev/projects/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./SakoEngine + ]; +}