Commit 2dec085abc1e

Vincent Demeester <vincent@sbr.pm>
2019-06-30 17:00:57
machines: add base.nixos.nix and a common base.nix
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c3bc185
machines/base.fedora.nix
@@ -1,24 +1,10 @@
 { pkgs, ...}:
 
 {
-  imports = [ ../modules/module-list.nix ];
+  imports = [ ./base.nix ];
   programs = {
-    home-manager = {
-      enable = true;
-    };
     man.enable = false;
   };
   profiles.bash.enable = false;
   home.extraOutputsToInstall = [ "man" ];
-  home.file.".nix-channels".source = ../assets/nix-channels;
-  home.packages = with pkgs; [
-    direnv
-    enchive
-    entr
-    exa
-    fd
-    htop
-    scripts
-    tree
-  ];
 }
machines/base.nix
@@ -5,7 +5,6 @@
   programs = {
     home-manager = {
       enable = true;
-      path = https://github.com/rycee/home-manager/archive/master.tar.gz;
     };
   };
   home.file.".nix-channels".source = ../assets/nix-channels;
@@ -13,12 +12,25 @@
     direnv
     enchive
     entr
-    envsubst
     exa
     fd
     htop
-    nur.repos.vdemeester.fhs-std
     scripts
     tree
   ];
+  xdg.configFile."nr/default" = {
+    text = builtins.toJSON [
+      {cmd = "ncdu";} {cmd = "sshfs";} {cmd = "gotop";} {cmd = "pandoc";} { cmd = "nix-review"; }
+      {cmd = "lspci"; pkg = "pciutils";}
+      {cmd = "lsusb"; pkg = "usbutils";}
+      {cmd = "9"; pkg = "plan9port"; }
+      {cmd = "wakeonlan"; pkg = "python36Packages.wakeonlan";}
+      {cmd = "beet"; pkg = "beets";}
+      {cmd = "http"; pkg = "httpie"; }
+      {cmd = "nix-prefetch-git"; pkg = "nix-prefetch-scripts";}
+      {cmd = "nix-prefetch-hg"; pkg = "nix-prefetch-scripts";}
+      {cmd = "op"; pkg = "_1password"; chan = "unstable";}
+    ];
+    onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr default";
+  };
 }
machines/base.nixos.nix
@@ -0,0 +1,9 @@
+{ pkgs, ...}:
+
+{
+  imports = [ ./base.nix ];
+  home.packages = with pkgs; [
+    envsubst
+    nur.repos.vdemeester.fhs-std
+  ];
+}