Skip to content

Commit

Permalink
nixos: separate between packages needed for CLI and for GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
chenlijun99 committed Apr 14, 2023
1 parent d16b8d6 commit b06a1b8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/nixos/modules/common/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@

lm_sensors

############################################################################
# Neovim
############################################################################
# Every system deserves a vim
vim
# To support neovim clipboard
xclip
wl-clipboard
];
environment.variables.EDITOR = "nvim";
environment.variables.EDITOR = "vim";

programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
Expand Down
1 change: 1 addition & 0 deletions src/nixos/users/common/lijun-base/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in {
./autostart.nix
./desktop.nix
../networking/gui.nix
../vim/gui.nix
];
home = {
# See https://nix-community.github.io/home-manager/options.html#opt-home.stateVersion
Expand Down
4 changes: 2 additions & 2 deletions src/nixos/users/common/lijun-cli-base/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ in {
nixpkgs.config.allowUnfree = true;
imports = [
./tmux.nix
./vim.nix
./shell.nix
../this.nix
../vim/cli.nix
../networking/cli.nix
# My custom scripts
./../../../../local/bin/scripts.nix
../networking/cli.nix
];
home = {
# See https://nix-community.github.io/home-manager/options.html#opt-home.stateVersion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This module contains every CLI tool that I need for Neovim
{
config,
pkgs,
Expand Down
16 changes: 16 additions & 0 deletions src/nixos/users/common/vim/gui.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This module contains every package that I need for Neovim
# when I work in a graphical environment
{
config,
pkgs,
inputs,
...
}: {
home = {
packages = with pkgs; [
# To support neovim clipboard
xclip
wl-clipboard
];
};
}

0 comments on commit b06a1b8

Please sign in to comment.