From fd3e694bd327b2ebd55c6bba40f009945726c91f Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 11 Apr 2021 15:51:15 +0200 Subject: Move packages from system wide nix config to home-manager and overlay --- nixhome/.config/nixpkgs/config.nix | 1 + nixhome/.config/nixpkgs/home.nix | 39 ++++++++++++++++++++++++++ nixhome/.config/nixpkgs/overlays/pythonEnv.nix | 15 ++++++++++ 3 files changed, 55 insertions(+) create mode 100644 nixhome/.config/nixpkgs/config.nix create mode 100644 nixhome/.config/nixpkgs/home.nix create mode 100644 nixhome/.config/nixpkgs/overlays/pythonEnv.nix (limited to 'nixhome') diff --git a/nixhome/.config/nixpkgs/config.nix b/nixhome/.config/nixpkgs/config.nix new file mode 100644 index 0000000..69baf10 --- /dev/null +++ b/nixhome/.config/nixpkgs/config.nix @@ -0,0 +1 @@ +{ allowUnfree = true; } diff --git a/nixhome/.config/nixpkgs/home.nix b/nixhome/.config/nixpkgs/home.nix new file mode 100644 index 0000000..9f0ecd9 --- /dev/null +++ b/nixhome/.config/nixpkgs/home.nix @@ -0,0 +1,39 @@ +{ config, pkgs, ... }: + +{ + # Yep makes sense + programs.home-manager.enable = true; + + home.packages = with pkgs; [ + stow pass gopass fzf + + # X stuff required by scripts + feh rofi xorg.xmodmap xss-lock xclip xorg.xkill + xdotool dunst xcompmgr scrot libnotify i3lock + xbindkeys + + # Developing + rustup gcc go clang-tools + gdb php python-language-server + + # Gui applications + firefox pavucontrol evince leafpad inkscape gimp + meld pinentry gnome3.gnome-system-monitor + termite quasselClient wireshark spotify + gnome3.file-roller gnome3.gnome-calculator + gnome3.simple-scan vlc mpv xorg.xev + gnome3.evolution evolution-data-server vimHugeX + (mumble.override { pulseSupport = true; }) + libreoffice-fresh liferea qutebrowser mate.caja + audacity gnome3.eog veracrypt xournal + + # Other stuff + texlive.combined.scheme-medium biber + youtube-dl sshpass python38Packages.pynvim + aspell aspellDicts.da aspellDicts.en + ffmpegthumbnailer tio imagemagick sox poppler_utils + + # The python env created in overlay + defaultPythonEnv + ]; +} diff --git a/nixhome/.config/nixpkgs/overlays/pythonEnv.nix b/nixhome/.config/nixpkgs/overlays/pythonEnv.nix new file mode 100644 index 0000000..b60b455 --- /dev/null +++ b/nixhome/.config/nixpkgs/overlays/pythonEnv.nix @@ -0,0 +1,15 @@ +self: super: { + defaultPythonEnv = super.buildEnv { + name = "defaultPythonEnv"; + paths = [ + (self.python3.withPackages ( + ps: with ps; [ + ipython + + # Math stuff + numpy scipy matplotlib + ] + )) + ]; + }; + } -- cgit v1.2.3