Add tmuxinator; install mongodb-compass
diff --git a/flake.lock b/flake.lock
index dd60ea1..47aaaf0 100644
--- a/flake.lock
+++ b/flake.lock
@@ -96,6 +96,22 @@
"type": "github"
}
},
+ "nixpkgs-mongodb-fix": {
+ "locked": {
+ "lastModified": 1652288027,
+ "narHash": "sha256-d3s0kKrxFHrURFoE79rhzoC0VwAzlvY671uziQJVcfc=",
+ "owner": "bryanasdev000",
+ "repo": "nixpkgs",
+ "rev": "5f33996bd186702a3fbe55a92589f407edf11696",
+ "type": "github"
+ },
+ "original": {
+ "owner": "bryanasdev000",
+ "ref": "mongodb-fixes",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1654230545,
@@ -148,6 +164,7 @@
"comma": "comma",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2",
+ "nixpkgs-mongodb-fix": "nixpkgs-mongodb-fix",
"nixpkgs-unstable": "nixpkgs-unstable",
"nurpkgs": "nurpkgs"
}
diff --git a/flake.nix b/flake.nix
index 0ea01ec..b204d18 100644
--- a/flake.nix
+++ b/flake.nix
@@ -36,7 +36,7 @@
inherit system;
specialArgs = extraInputs // {
- inherit nixpkgs;
+ inherit nixpkgs system;
};
modules = [
@@ -49,7 +49,7 @@
"${variables.username}" = home-manager.lib.homeManagerConfiguration rec {
inherit system pkgs;
- extraSpecialArgs = extraInputs // { inherit pkgs-unstable; };
+ extraSpecialArgs = extraInputs // { inherit pkgs-unstable system; };
username = variables.username;
homeDirectory = "/home/${username}";
diff --git a/scripts/ide.sh b/scripts/ide.sh
new file mode 100755
index 0000000..23b624b
--- /dev/null
+++ b/scripts/ide.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+tmuxinator start ide
diff --git a/src/apps/personal/mongo.nix b/src/apps/personal/mongo.nix
new file mode 100644
index 0000000..14a3027
--- /dev/null
+++ b/src/apps/personal/mongo.nix
@@ -0,0 +1,5 @@
+{ pkgs, ... }: {
+ home.packages = [
+ pkgs.mongodb-compass
+ ];
+}
diff --git a/src/apps/personal/tmux.nix b/src/apps/personal/tmux.nix
new file mode 100644
index 0000000..6c65005
--- /dev/null
+++ b/src/apps/personal/tmux.nix
@@ -0,0 +1,16 @@
+{ pkgs, ... }: {
+ programs.tmux = {
+ enable = true;
+ newSession = true;
+ tmuxinator.enable = true;
+ extraConfig = ''
+ bind k confirm-before kill-session
+ '';
+ };
+
+ home.packages = [
+ pkgs.elinks
+ ];
+
+ home.file.".config/tmuxinator/ide.yml".source = ./tmux/ide.yml;
+}
diff --git a/src/apps/personal/tmux/ide.yml b/src/apps/personal/tmux/ide.yml
new file mode 100644
index 0000000..003f22d
--- /dev/null
+++ b/src/apps/personal/tmux/ide.yml
@@ -0,0 +1,56 @@
+# /home/minion/.config/tmuxinator/ide.yml
+
+name: ide
+root: ~/
+
+# Optional tmux socket
+# socket_name: foo
+
+# Note that the pre and post options have been deprecated and will be replaced by
+# project hooks.
+
+# Project hooks
+
+# Runs on project start, always
+# on_project_start: command
+
+# Run on project start, the first time
+# on_project_first_start: command
+
+# Run on project start, after the first time
+# on_project_restart: command
+
+# Run on project exit ( detaching from tmux session )
+# on_project_exit: command
+
+# Run on project stop
+# on_project_stop: command
+
+# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
+# pre_window: rbenv shell 2.0.0-p247
+
+# Pass command line options to tmux. Useful for specifying a different tmux.conf.
+# tmux_options: -f ~/.tmux.mac.conf
+
+# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
+# tmux_command: byobu
+
+# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
+# startup_window: editor
+
+# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
+# startup_pane: 1
+
+# Controls whether the tmux session should be attached to automatically. Defaults to true.
+# attach: false
+
+windows:
+ - editor:
+ layout: main-vertical
+ # Synchronize all panes of this window, can be enabled before or after the pane commands run.
+ # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
+ # synchronize: after
+ panes:
+ - ranger
+ - elinks
+ - server: zsh
diff --git a/src/apps/system/mongo.nix b/src/apps/system/mongo.nix
index e95f8b5..c94a22d 100644
--- a/src/apps/system/mongo.nix
+++ b/src/apps/system/mongo.nix
@@ -1,4 +1,4 @@
-{ nixpkgs-mongodb-fix, ... }: {
+{ nixpkgs-mongodb-fix, system, ... }: {
services.mongodb = {
package = (import nixpkgs-mongodb-fix { inherit system; config = { allowUnfree = true; }; }).mongodb-4_4;
enable = true;