From b3df0f7bac5a6ca889c5e5acbdf0061df70c0a59 Mon Sep 17 00:00:00 2001 From: grimhilt Date: Sun, 7 May 2023 15:58:57 +0200 Subject: [PATCH] remove useless sym link and update --- .config/alacritty/alacritty | 1 - .config/alacritty/alacritty.yml | 1 + .config/nixpkgs/nvim-plugins.nix | 22 ++++++++++++++++++++++ .config/nixpkgs/nvim-profile.nix | 23 +++++++++++++++++++++++ .config/nixshell/c.nix | 3 +++ .config/nixshell/mongo.nix | 12 ++++++++++++ .config/nixshell/rust.nix | 1 + .config/nixshell/xmrig.nix | 17 +++++++++++++++++ nixos/configuration.nix | 3 +++ 9 files changed, 82 insertions(+), 1 deletion(-) delete mode 120000 .config/alacritty/alacritty create mode 100644 .config/nixpkgs/nvim-plugins.nix create mode 100644 .config/nixpkgs/nvim-profile.nix create mode 100644 .config/nixshell/mongo.nix create mode 100644 .config/nixshell/xmrig.nix diff --git a/.config/alacritty/alacritty b/.config/alacritty/alacritty deleted file mode 120000 index e29c17c..0000000 --- a/.config/alacritty/alacritty +++ /dev/null @@ -1 +0,0 @@ -/home/grimhilt/.config/alacritty \ No newline at end of file diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index a130ca7..6abfe63 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -893,3 +893,4 @@ font: # Highlight window damage information. #highlight_damage: false + diff --git a/.config/nixpkgs/nvim-plugins.nix b/.config/nixpkgs/nvim-plugins.nix new file mode 100644 index 0000000..aba475d --- /dev/null +++ b/.config/nixpkgs/nvim-plugins.nix @@ -0,0 +1,22 @@ +{ pkgs ? import {} }: +let + nvimPlugins = pkgs.stdenv.mkDerivation { + name = "nvim-plugins"; + buildInputs = [ pkgs.neovim pkgs.git pkgs.makeWrapper ]; + src = pkgs.fetchFromGitHub { + owner = "wbthomason"; + repo = "packer.nvim"; + rev = "e72cdfe4e2ca6a24b0306d2288b1651746d88bea"; + sha256 = "0nw3d1sycwhw8wlf0mfgv54zlmsh7b8jq6djgklf6cg7csl5q96m"; + }; + buildCommand = '' + cd packer.nvim + make install + wrapProgram $out/bin/packer.nvim --prefix PATH : ${pkgs.neovim}/bin + ''; + }; +in + { + nvimPlugins = nvimPlugins; + } + diff --git a/.config/nixpkgs/nvim-profile.nix b/.config/nixpkgs/nvim-profile.nix new file mode 100644 index 0000000..84be63a --- /dev/null +++ b/.config/nixpkgs/nvim-profile.nix @@ -0,0 +1,23 @@ +{ pkgs ? import {} }: +let + nvim = pkgs.neovim; + + # Install Packer.nvim + packer = pkgs.stdenv.mkDerivation { + name = "packer.nvim"; + buildInputs = [ pkgs.git ]; + src = pkgs.fetchFromGitHub { + owner = "wbthomason"; + repo = "packer.nvim"; + rev = "1d0cf98a561f7fd654c970c49f917d74fafe1530"; + sha256 = "sha256-YAhAFiR31aGl2SEsA/itP+KgkLyV58EJEwosdc+No9s="; + }; + installPhase = '' + install -Dm755 packer.nvim.lua $out/share/nvim/site/autoload/packer.nvim.lua + ''; + }; + +in { + environment.systemPackages = [ nvim packer ]; +} + diff --git a/.config/nixshell/c.nix b/.config/nixshell/c.nix index 4692f82..05b3cbf 100644 --- a/.config/nixshell/c.nix +++ b/.config/nixshell/c.nix @@ -12,6 +12,9 @@ in sqlite sqlite.dev libconfig + libinput + clang-tools_15 + valgrind ]; nativeBuildInputs = with pkgs; [ pkg-config diff --git a/.config/nixshell/mongo.nix b/.config/nixshell/mongo.nix new file mode 100644 index 0000000..a1c625e --- /dev/null +++ b/.config/nixshell/mongo.nix @@ -0,0 +1,12 @@ +let + pkgs = import {}; + unstable = import {config.allowUnfree=true;}; +in + pkgs.mkShell { + buildInputs = with pkgs; [ + unstable.mongodb + mongosh + ]; + shellHook = '' + ''; + } diff --git a/.config/nixshell/rust.nix b/.config/nixshell/rust.nix index 7ba2c10..d93470d 100644 --- a/.config/nixshell/rust.nix +++ b/.config/nixshell/rust.nix @@ -7,6 +7,7 @@ in unstable.rustc cargo libressl + rustfmt ]; nativeBuildInputs = with pkgs; [ pkg-config diff --git a/.config/nixshell/xmrig.nix b/.config/nixshell/xmrig.nix new file mode 100644 index 0000000..f5cb7e3 --- /dev/null +++ b/.config/nixshell/xmrig.nix @@ -0,0 +1,17 @@ +{ pkgs ? import {config.allowUnfree=true;} }: + +pkgs.mkShell { + name = "xmrig-nvidia-env"; + buildInputs = with pkgs; [ + cmake + libuv + openssl + pkgconfig + haskellPackages.cuda + cudaPackages.cudatoolkit + libmicrohttpd + ]; + shellHook = '' + ''; +} + diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 73e4610..58d1a87 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -141,6 +141,7 @@ in { tree htop putty + qdirstat # apps element-desktop @@ -150,6 +151,7 @@ in { onlyoffice-bin unstable.ledger-live-desktop ledger-udev-rules + monero-gui # media gimp @@ -161,6 +163,7 @@ in { docker-compose filezilla insomnia + libinput ]; fonts.fonts = [ pkgs.font-awesome ];