From cd412906a83c9a3e98a2e9ba61418045a3aed9d6 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 8 Jul 2024 14:54:54 +0200 Subject: [PATCH] Add virtualbox --- home/programs/graphical/apps/default.nix | 1 + home/programs/graphical/apps/virtualbox.nix | 16 ++++++++++++++++ hosts/voyager/default.nix | 3 +++ options/home/programs/default.nix | 1 + 4 files changed, 21 insertions(+) create mode 100644 home/programs/graphical/apps/virtualbox.nix diff --git a/home/programs/graphical/apps/default.nix b/home/programs/graphical/apps/default.nix index bbb1780..d6b33cb 100644 --- a/home/programs/graphical/apps/default.nix +++ b/home/programs/graphical/apps/default.nix @@ -10,5 +10,6 @@ _: { ./stremio.nix ./qbittorrent.nix ./qalculate-gtk.nix + ./virtualbox.nix ]; } diff --git a/home/programs/graphical/apps/virtualbox.nix b/home/programs/graphical/apps/virtualbox.nix new file mode 100644 index 0000000..757f9ae --- /dev/null +++ b/home/programs/graphical/apps/virtualbox.nix @@ -0,0 +1,16 @@ +{ + lib, + pkgs, + osConfig, + ... +}: let + inherit (lib) mkIf; + + cfg = osConfig.myOptions.home-manager.programs.applications.virtualbox; +in { + config = mkIf cfg.enable { + home.packages = with pkgs; [ + virtualbox + ]; + }; +} diff --git a/hosts/voyager/default.nix b/hosts/voyager/default.nix index 25f9581..1702653 100644 --- a/hosts/voyager/default.nix +++ b/hosts/voyager/default.nix @@ -65,6 +65,8 @@ ".local/share/Smart Code ltd/Stremio" ".config/obs-studio" ".local/share/PrismLauncher" + ".config/VirtualBox" + ".local/share/VirtulBox VMs" # Tools ".ssh" @@ -210,6 +212,7 @@ }; }; qalculate-gtk.enable = true; + virtualbox.enable = true; }; file-managers = { pcmanfm-qt.enable = true; diff --git a/options/home/programs/default.nix b/options/home/programs/default.nix index 4135ce3..1f637ce 100644 --- a/options/home/programs/default.nix +++ b/options/home/programs/default.nix @@ -47,6 +47,7 @@ in obs.enable = mkEnableOption "OBS (Free and oepn source software for video recording and live streaming)"; mpv.enable = mkEnableOption "MPV (General-purpose media player)"; qalculate-gtk.enable = mkEnableOption "qalculate-gtk (The ultimate desktop calculator)"; + virtualbox.enable = mkEnableOption "VirtualBox"; }; file-managers = {