From 9039641929d9c0bf0815cab82007e6ed42806faa Mon Sep 17 00:00:00 2001 From: Matthew Ess Date: Fri, 3 Jan 2020 01:06:04 -0500 Subject: [PATCH] User tweaks --- home.nix | 13 +++++++++++++ i3.nix | 3 +++ 2 files changed, 16 insertions(+) diff --git a/home.nix b/home.nix index 514e03a..ef11034 100644 --- a/home.nix +++ b/home.nix @@ -5,6 +5,10 @@ let email = "daringseal@gmail.com"; workEmail = "mess@yelp.com"; lockCmd = "i3lock -i ~/.lockscreen-image"; + niv = import (builtins.fetchTarball { + url = "https://github.com/nmattia/niv/tarball/abd0de3269fd712955d27b70e32921841c7b8bb7"; + sha256 = "0b38n1ad00s1qqyw3ml3pypf8i1pw4aqw0bpa02qq9iv7sp3x0gz"; + }) { }; in { home = { @@ -15,6 +19,8 @@ in { }; packages = with pkgs; [ # nix utilities + cachix + niv.niv nixfmt nix-prefetch-git # command line utilities @@ -22,17 +28,21 @@ in { jq tldr imagemagick + # command line applications + weechat # graphical applications alacritty atom enpass firefox + steam # graphical utilities clipmenu clipnotify dmenu i3lock rofi + xclip ]; file = { ".background-image".source = ./assets/background-image; @@ -158,6 +168,8 @@ in { alias sys="sudo systemctl" alias rebuild="sudo nixos-rebuild switch" alias upgrade="sudo nixos-rebuild switch --upgrade" + alias clip="xclip -selection c" + alias cxuse="sudo cachix use -d ~/dotfiles.nix" ''; }; git = { @@ -188,6 +200,7 @@ in { nerdtree nerdtree-git-plugin vim-colorschemes + vim-nix lightline-vim ]; extraConfig = '' diff --git a/i3.nix b/i3.nix index d247904..4603bc5 100644 --- a/i3.nix +++ b/i3.nix @@ -4,6 +4,8 @@ assigns = { "1: web" = [{ class = "Firefox"; }]; "2: devel" = [ { class = "Alacritty"; } { class = "Atom"; } ]; + "3: admin" = [{ class = "Enpass"; }]; + "4: other" = [{ class = ".*"; }]; }; fonts = [ "Fira Code" "FontAwesome 12" ]; colors = { @@ -105,5 +107,6 @@ exec --no-startup-id atom exec --no-startup-id alacritty for_window [class="Firefox"] focus + exec --no-startup-id Enpass ''; }