From 329516eda4b4a1288ac5449c340bc0ee30c8f30d Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 28 Feb 2025 05:28:14 +0800 Subject: [PATCH] refactor: move nvf into home-editor.nix --- modules/home-editor.nix | 7 +++++++ modules/home-terminal.nix | 7 +++++++ users/rafiq/default.nix | 10 +++++----- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 modules/home-editor.nix create mode 100644 modules/home-terminal.nix diff --git a/modules/home-editor.nix b/modules/home-editor.nix new file mode 100644 index 0000000..704ba95 --- /dev/null +++ b/modules/home-editor.nix @@ -0,0 +1,7 @@ +{self, pkgs, ...}: + +{ + home.packages = [ + self.packages.${pkgs.stdenv.system}.nvf + ]; +} diff --git a/modules/home-terminal.nix b/modules/home-terminal.nix new file mode 100644 index 0000000..5096fe4 --- /dev/null +++ b/modules/home-terminal.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +{ + home.packages = with pkgs; [ + kitty # default terminal emulator for hyprland + ]; +} diff --git a/users/rafiq/default.nix b/users/rafiq/default.nix index d446985..f7d4923 100644 --- a/users/rafiq/default.nix +++ b/users/rafiq/default.nix @@ -2,10 +2,11 @@ { imports = [ - ../../modules/home-git.nix - ../../modules/home-tmux.nix - ../../modules/home-sh.nix - ../../modules/home-wm.nix + ../../modules/home-git.nix # git specific configs + ../../modules/home-tmux.nix # tmux specific configs (might move this) + ../../modules/home-sh.nix # bash and other shell specific configs + ../../modules/home-wm.nix # window manager configs + ../../modules/home-editor.nix # editor specific configs ]; home = { @@ -13,7 +14,6 @@ homeDirectory = "/home/rafiq"; packages = [ - self.packages.${pkgs.stdenv.system}.nvf pkgs.kitty pkgs.fastfetch pkgs.wl-clipboard