Commit d9e6a67f4c39

Vincent Demeester <vincent@sbr.pm>
2019-01-27 13:26:38
Update nr configuration ๐ŸŒƒ
โ€ฆ and move it from shikoku to actual profiles. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c22d608
Changed files (4)
machines/shikoku.nix
@@ -36,15 +36,4 @@
     obs-studio
     virtmanager
   ];
-
-  xdg.configFile."nr" = {
-    text = builtins.toJSON [
-      {cmd = "mr";}
-      {cmd = "sshfs";}
-      {cmd = "lspci"; pkg = "pciutils";}
-      {cmd = "lsusb"; pkg = "usbutils";}
-      {cmd = "wakeonlan"; pkg = "python36Packages.wakeonlan";}
-    ];
-    onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr";
-  };
 }
modules/profiles/dev.go.nix
@@ -45,6 +45,12 @@ in
         nur.repos.vdemeester.esc
         nur.repos.vdemeester.yaspell
       ];
+      xdg.configFile."nr/go" = {
+        text = builtins.toJSON [
+          {cmd = "pprof"; chan = "unstable";}
+        ];
+        onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr go";
+      };
     }
     (mkIf config.profiles.fish.enable {
       xdg.configFile."fish/conf.d/go.fish".source = ./assets/fish/go.fish;
modules/profiles/fish.nix
@@ -37,5 +37,21 @@ in
     xdg.configFile."fish/functions/sudope.fish".source = ./assets/fish/sudope.function.fish;
     xdg.configFile."fish/functions/fish_prompt.fish".source = ./assets/fish/fish_prompt.fish;
     xdg.configFile."fish/functions/fish_right_prompt.fish".source = ./assets/fish/fish_right_prompt.fish;
+    xdg.configFile."nr/default" = {
+      text = builtins.toJSON [
+        {cmd = "ncdu";} {cmd = "sshfs";} {cmd = "gotop";} {cmd = "pandoc";}
+        {cmd = "lspci"; pkg = "pciutils";}
+        {cmd = "lsusb"; pkg = "usbutils";}
+        {cmd = "wakeonlan"; pkg = "python36Packages.wakeonlan";}
+        {cmd = "beet"; pkg = "beets";}
+        {cmd = "virt-manager"; pkg = "virtmanager";}
+        {cmd = "nix-prefetch-git"; pkg = "nix-prefetch-scripts";}
+        {cmd = "nix-prefetch-hg"; pkg = "nix-prefetch-scripts";}
+        {cmd = "op"; pkg = "_1password"; chan = "unstable";}
+        {cmd = "update-desktop-database"; pkg = "desktop-file-utils"; chan = "unstable";}
+        {cmd = "lgogdownloader"; chan = "unstable";}
+      ];
+      onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr default";
+    };
   };
 }
modules/profiles/git.nix
@@ -152,7 +152,16 @@ in
           "*~" "#*#" ".makefile" ".clean"
         ];
       };
-      xdg.configFile."git/config.d/redhat.gitconfig".source = ./assets/git/redhat.gitconfig;    
+      xdg.configFile."git/config.d/redhat.gitconfig".source = ./assets/git/redhat.gitconfig;
+      xdg.configFile."nr/git" = {
+        text = builtins.toJSON [
+          {cmd = "mr";}
+          {cmd = "grv"; pkg = "gitAndTools.grv";}
+          {cmd = "git-annex"; pkg = "gitAndTools.git-annex";}
+          {cmd = "git-appraise"; pkg = "gitAndTools.git-appraise"; chan = "unstable";}
+        ];
+        onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr git";
+      };
     }
     (mkIf config.profiles.fish.enable{
       xdg.configFile."fish/conf.d/git.fish".source = ./assets/fish/git.fish;