diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2024-11-14 19:11:37 +0100 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2024-11-14 19:44:03 +0100 |
commit | 2c89cbb5cae2cd90be95700935a4c3e40ed08907 (patch) | |
tree | f9009d5390e864935fc320480acf1a30d93d7934 /home-manager/common.nix | |
parent | 7f993934b00fbbe2deca59edbedc993eaf76a05c (diff) |
Remove and move some unused stuff
Diffstat (limited to 'home-manager/common.nix')
-rw-r--r-- | home-manager/common.nix | 153 |
1 files changed, 12 insertions, 141 deletions
diff --git a/home-manager/common.nix b/home-manager/common.nix index 42989ad..d42fac0 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -1,10 +1,7 @@ { lib, pkgs, inputs, ... }: { - # # You can also create simple shell scripts directly inside your - # # configuration. For example, this adds a command 'my-hello' to your - # # environment: - # (pkgs.writeShellScriptBin "my-hello" '' - # echo "Hello, ${config.home.username}!" - # '') + imports = [ + ./compositor/hyprland.nix + ]; home.packages = [ pkgs.gnumake pkgs.git-crypt @@ -39,35 +36,15 @@ pkgs.python313 pkgs.black pkgs.ruff - ]; - # # Building this configuration will create a copy of 'dotfiles/screenrc' in - # # the Nix store. Activating the configuration will then make '~/.screenrc' a - # # symlink to the Nix store copy. - # ".screenrc".source = dotfiles/screenrc; + pkgs.font-awesome + pkgs.pinentry-gnome3 + ]; - # # You can also set the file content immediately. - # ".gradle/gradle.properties".text = '' - # org.gradle.console=verbose - # org.gradle.daemon.idletimeout=3600000 - # ''; - home.file = { }; - # You can also manage environment variables but you will have to manually - # source - # - # ~/.nix-profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # /etc/profiles/per-user/jras/etc/profile.d/hm-session-vars.sh - # - # if you don't want to manage your shell through Home Manager. home.sessionVariables = { EDITOR = "hx"; }; home.sessionPath = [ "$GOBIN" ]; - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; programs.ripgrep.enable = true; programs.bat.enable = true; programs.btop.enable = true; @@ -76,6 +53,11 @@ goPath = "go"; goBin = "go/bin"; }; + programs.rbw.enable = true; + programs.rbw.settings = { + email = "jaspert.ras@gmail.com"; + pinentry = pkgs.pinentry-gnome3; + }; programs.zoxide = { enable = true; @@ -130,118 +112,6 @@ }; }; - programs.tmux = { - enable = true; - shortcut = "a"; - newSession = true; - terminal = "tmux-256color"; - extraConfig = '' - # Recommended by NeoVim's checkhealth - set-option -sg escape-time 10 - set-option -g default-shell ${pkgs.zsh}/bin/zsh - - # # Set vim keymode - set-window-option -g mode-keys vi - bind-key -T copy-mode-vi v send -X begin-selection - bind-key -T copy-mode-vi V send -X select-line - bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard' - ''; - plugins = with pkgs.tmuxPlugins; [ - vim-tmux-navigator - - { - plugin = catppuccin; - extraConfig = '' - set -g @catppuccin_flavour 'frappe' - set -g @catppuccin_powerline_theme_enabled 'on' - set -g @catppuccin_l_left_separator '' - set -g @catppuccin_l_right_separator '' - set -g @catppuccin_r_left_separator '' - set -g @catppuccin_r_right_separator '' - ''; - } - ]; - }; - - programs.neovim = { - enable = true; - vimAlias = true; - plugins = with pkgs.vimPlugins; [ - gleam-vim - plenary-nvim - telescope-file-browser-nvim - vim-tmux-navigator - nui-nvim - # Colors - catppuccin-nvim - # LSP - nvim-lspconfig - trouble-nvim - # Completion - luasnip - nvim-cmp - cmp-nvim-lsp - cmp-nvim-lua - cmp-buffer - cmp-path - cmp_luasnip - - { - plugin = lsp-zero-nvim; - type = "lua"; - config = builtins.readFile (./neovim/lsp-zero-nvim.lua); - } - { - plugin = nvim-web-devicons; - type = "lua"; - config = builtins.readFile (./neovim/nvim-web-devicons.lua); - } - { - plugin = nvim-treesitter.withAllGrammars; - type = "lua"; - config = builtins.readFile (./neovim/nvim-treesitter.lua); - } - { - plugin = telescope-nvim; - type = "lua"; - config = builtins.readFile (./neovim/telescope-nvim.lua); - } - { - plugin = harpoon; - type = "lua"; - config = builtins.readFile (./neovim/harpoon.lua); - } - #{ - # plugin = copilot-vim; - # type = "lua"; - # config = builtins.readFile (./neovim/copilot-vim.lua); - #} - ]; - extraLuaConfig = builtins.readFile (./neovim/init.lua); - extraConfig = '' - set shiftwidth=4 smarttab - set expandtab - set tabstop=4 softtabstop=0 - - inoremap jk <ESC> - let mapleader=" " " remap the mapleader - - syntax on " syntax highlighting - set number " show line numbers - set relativenumber " relative line numbers - set noswapfile " disable the swap file - set hlsearch " highlight all results - set ignorecase " ignore case in search - set incsearch " show search results as you type - - " disable mouse - set mouse= - - autocmd BufWritePost *.nix !nixfmt % - autocmd BufWritePost *.go !gofmt -w % - ''; - }; - programs.starship = { enable = true; settings = { @@ -356,6 +226,7 @@ }; programs.alacritty = { + enable = true; settings = { window = { padding = { x = 5; y = 2; }; |