about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/multi/home/configs/whitby.nix2
-rw-r--r--users/multi/home/home-manager.nix10
-rw-r--r--users/multi/whitby/home-manager.nix68
3 files changed, 11 insertions, 69 deletions
diff --git a/users/multi/home/configs/whitby.nix b/users/multi/home/configs/whitby.nix
index 665c11bb878e..bd647cf604b5 100644
--- a/users/multi/home/configs/whitby.nix
+++ b/users/multi/home/configs/whitby.nix
@@ -44,7 +44,7 @@ in
     NIX_PATH =
       "nixpkgs=${pkgs.nixpkgsSrc}:" +
       "depot=${depot.depotPath}";
-    HOME_MANAGER_CONFIG = "${depot.depotPath}/users/multi/whitby/home-manager.nix";
+    HOME_MANAGER_CONFIG = "${depot.depotPath}/users/multi/home/home-manager.nix";
     EDITOR = "vim";
   };
 
diff --git a/users/multi/home/home-manager.nix b/users/multi/home/home-manager.nix
new file mode 100644
index 000000000000..a93a541a0840
--- /dev/null
+++ b/users/multi/home/home-manager.nix
@@ -0,0 +1,10 @@
+let
+  depot = import <depot> {};
+  pkgs = depot.third_party;
+
+  home = path: import path { inherit depot pkgs; };
+in
+  {
+    whitby = home ./configs/whitby.nix;
+  }
+
diff --git a/users/multi/whitby/home-manager.nix b/users/multi/whitby/home-manager.nix
deleted file mode 100644
index c034d83f5123..000000000000
--- a/users/multi/whitby/home-manager.nix
+++ /dev/null
@@ -1,68 +0,0 @@
-{ config ? throw "not a readTree target", ... }:
-
-let
-  depot = import <depot> {};
-  pkgs = import <nixpkgs> {};
-
-in
-
-{
-  programs = {
-    home-manager = {
-      enable = true;
-      path = toString pkgs.home-manager.src;
-    };
-
-    bash = {
-      enable = true;
-      initExtra = ''
-        bind '"\e[5~":history-search-backward'
-        bind '"\e[6~":history-search-forward'
-
-        PS1="[\\u@\\h:\\w]\\\$ "
-
-        _Z_CMD=d
-        source ~/.z.sh
-      '';
-    };
-
-    tmux = {
-      enable = true;
-      terminal = "tmux-256color";
-      escapeTime = 50;
-      extraConfig = ''
-        bind-key -n C-S-Left swap-window -t -1
-        bind-key -n C-S-Right swap-window -t +1
-      '';
-    };
-
-    vim = {
-      enable = true;
-      extraConfig = "set mouse=";
-    };
-  };
-
-  home.sessionVariables = {
-    NIX_PATH =
-      "nixpkgs=${depot.third_party.nixpkgsSrc}:" +
-      "depot=${depot.depotPath}";
-    HOME_MANAGER_CONFIG = "${depot.depotPath}/users/multi/whitby/home-manager.nix";
-    EDITOR = "vim";
-  };
-
-  home.packages = [
-    pkgs.lsof
-    pkgs.strace
-    pkgs.file
-    pkgs.pciutils
-  ] ++ (import ../pkgs { inherit pkgs; });
-
-  home.file = {
-    z = {
-      source = builtins.fetchurl "https://raw.githubusercontent.com/rupa/z/9f76454b32c0007f20b0eae46d55d7a1488c9df9/z.sh";
-      target = ".z.sh";
-    };
-  };
-
-  home.stateVersion = "20.03";
-}