Commit db2e895dc535

Vincent Demeester <vincent@sbr.pm>
2020-05-06 07:04:11
Update overlays, add my pkgs and some config
- Remove duplicate overlays - Use my for my pkgs (to be changed) and start migrating to using it - Add machine.base.{debian,fedora,ubuntu} to act about it in configs Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 50f7e93
machines/base.nix
@@ -34,6 +34,6 @@
       { cmd = "wakeonlan"; pkg = "python36Packages.wakeonlan"; }
       { cmd = "beet"; pkg = "beets"; }
     ];
-    onChange = "${pkgs.nur.repos.vdemeester.nr}/bin/nr default";
+    onChange = "${pkgs.my.nr}/bin/nr default";
   };
 }
machines/fedora-base.nix
@@ -2,6 +2,7 @@
 
 {
   imports = [ ./base.nix ];
+  machine.base.fedora = true;
   programs = {
     man.enable = false;
   };
machines/naruhodo.nix
@@ -5,10 +5,8 @@ with import ../assets/machines.nix;{
     ./fedora-base.nix
   ];
   home.packages = with pkgs; [
-    kubectx
-    kustomize
     golangci-lint
-    nur.repos.vdemeester.ram
+    my.ram
   ];
   profiles.containers.kubernetes = {
     enable = true;
machines/nixos-base.nix
@@ -1,9 +1,8 @@
-{ pkgs, ...}:
+{ pkgs, ... }:
 
 {
   imports = [ ./base.nix ];
   home.packages = with pkgs; [
     envsubst
-    nur.repos.vdemeester.fhs-std
   ];
 }
machines/sakhalin.nixos.nix
@@ -121,7 +121,7 @@ with import ../assets/machines.nix; {
 
     path = with pkgs; [ git ];
     script = ''
-      ${pkgs.nur.repos.vdemeester.ape}/bin/ape up /home/vincent/var/mirrors
+      ${pkgs.my.ape}/bin/ape up /home/vincent/var/mirrors
     '';
 
     startAt = "hourly";
machines/wakasu.nix
@@ -42,7 +42,6 @@
     krb5
     libosinfo
     virtmanager
-    nur.repos.vdemeester.tkn
     thunderbird
     asciinema
     gnome3.zenity # use rofi instead
modules/profiles/containerd.nixos.nix
@@ -13,7 +13,7 @@ in
         type = types.bool;
       };
       package = mkOption {
-        default = pkgs.nur.repos.vdemeester.containerd;
+        default = pkgs.my.containerd;
         description = "containerd package to be used";
         type = types.package;
       };
modules/profiles/kubernetes.nix
@@ -37,12 +37,12 @@ in
           kustomize
           kube-prompt
           kubectx
-          nur.repos.vdemeester.oc
-          #nur.repos.vdemeester.openshift-install
-          nur.repos.vdemeester.operator-sdk
-          nur.repos.vdemeester.ko
-          nur.repos.vdemeester.kss
-          nur.repos.vdemeester.kubernix
+          my.oc
+          #my.openshift-install
+          my.operator-sdk
+          my.ko
+          my.kss
+          my.kubernix
         ];
       }
       (
modules/services/athens.nixos.nix
@@ -12,7 +12,7 @@ in
       '';
       package = mkOption {
         type = types.package;
-        default = pkgs.nur.repos.vdemeester.athens;
+        default = pkgs.my.athens;
         description = ''
           Athens package to use.
         '';
modules/services/govanityurl.nixos.nix
@@ -12,7 +12,7 @@ in
       '';
       package = mkOption {
         type = types.package;
-        default = pkgs.nur.repos.vdemeester.govanityurl;
+        default = pkgs.my.govanityurl;
         description = ''
           govanityurl package to use.
         '';
modules/machines.nix
@@ -5,6 +5,11 @@ with lib; {
     machine = {
       home-manager = mkEnableOption "It is a home-manager configuration";
       nixos = mkEnableOption "It is a nixos configuration";
+      base = {
+        fedora = mkEnableOption "The base OS is Fedora";
+        debian = mkEnableOption "The base OS is Debian";
+        ubuntu = mkEnableOption "The base OS is Ubuntu";
+      };
     };
   };
 }
overlays/sbr.nix
@@ -12,6 +12,14 @@ rec {
   vscodeliveshare = import ../pkgs/vscodeliveshare {
     inherit (self) stdenv vscode-utils autoPatchelfHook xorg gnome3 utillinux openssl icu zlib curl lttng-ust libsecret libkrb5 gcc libunwind binutils;
   };
+  vrsync = import ../pkgs/vrsync {
+    inherit (self) stdenv lib;
+  };
+  vde-thinkpad = import ../pkgs/vde-thinkpad {
+    inherit (self) stdenv lib;
+  };
+
+  my = import ../pkgs {};
 
   emacs27 = (self.emacs.override { srcRepo = true; }).overrideAttrs (
     old: {
overlays/sbr.overlay.nix
@@ -1,8 +0,0 @@
-self: super: {
-  vrsync = import ../pkgs/vrsync {
-    inherit (self) stdenv lib;
-  };
-  vde-thinkpad = import ../pkgs/vde-thinkpad {
-    inherit (self) stdenv lib;
-  };
-}