summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-10-01 22:09:51 +0200
committerAlan Pearce2019-10-01 22:17:40 +0200
commitb710b6058767cf1d7c780f7e93aea6f52ad021c5 (patch)
tree401e40c720ddf7d11b96f79a23788782870650cf /modules
parentd0200a6b07e497d07dff2cfe0857f4dceb724b58 (diff)
downloaddotfiles-b710b6058767cf1d7c780f7e93aea6f52ad021c5.tar.lz
dotfiles-b710b6058767cf1d7c780f7e93aea6f52ad021c5.tar.zst
dotfiles-b710b6058767cf1d7c780f7e93aea6f52ad021c5.zip
Create shim home-manager modules
Diffstat (limited to 'modules')
-rw-r--r--modules/autorandr.nix8
-rw-r--r--modules/base.nix6
-rw-r--r--modules/dunst.nix8
-rw-r--r--modules/emacs.nix9
-rw-r--r--modules/git.nix8
-rw-r--r--modules/gnupg.nix8
-rw-r--r--modules/i3.nix12
-rw-r--r--modules/isync.nix5
-rw-r--r--modules/ledger.nix5
-rw-r--r--modules/msmtp.nix5
-rw-r--r--modules/nix.nix6
-rw-r--r--modules/npm.nix5
-rw-r--r--modules/rofi.nix12
-rw-r--r--modules/sxhkd.nix8
-rw-r--r--modules/tabnine.nix8
-rw-r--r--modules/trezor.nix9
-rw-r--r--modules/xresources.nix8
-rw-r--r--modules/zsh.nix12
18 files changed, 142 insertions, 0 deletions
diff --git a/modules/autorandr.nix b/modules/autorandr.nix
new file mode 100644
index 0000000..f63095a
--- /dev/null
+++ b/modules/autorandr.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.autorandr = {
+    recursive = true;
+    source = ../autorandr/.config/autorandr;
+  };
+}
diff --git a/modules/base.nix b/modules/base.nix
new file mode 100644
index 0000000..62bc9f2
--- /dev/null
+++ b/modules/base.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, ... }:
+
+{
+  # Let Home Manager install and manage itself.
+  programs.home-manager.enable = true;
+}
diff --git a/modules/dunst.nix b/modules/dunst.nix
new file mode 100644
index 0000000..78268c0
--- /dev/null
+++ b/modules/dunst.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.dunst = {
+    recursive = true;
+    source = ../dunst/.config/dunst;
+  };
+}
diff --git a/modules/emacs.nix b/modules/emacs.nix
new file mode 100644
index 0000000..82a22b5
--- /dev/null
+++ b/modules/emacs.nix
@@ -0,0 +1,9 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".emacs.d" = {
+    recursive = true;
+    source = ../emacs/.emacs.d;
+  };
+  home.file.".local/share/applications/emacsclient.desktop".source = ../emacs/.local/share/applications/emacsclient.desktop;
+}
diff --git a/modules/git.nix b/modules/git.nix
new file mode 100644
index 0000000..a43ccad
--- /dev/null
+++ b/modules/git.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.git = {
+    recursive = true;
+    source = ../git/.config/git;
+  };
+}
diff --git a/modules/gnupg.nix b/modules/gnupg.nix
new file mode 100644
index 0000000..6dcb31f
--- /dev/null
+++ b/modules/gnupg.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".gnupg" = {
+    recursive = true;
+    source = ../gnupg/.gnupg;
+  };
+}
diff --git a/modules/i3.nix b/modules/i3.nix
new file mode 100644
index 0000000..a6acf92
--- /dev/null
+++ b/modules/i3.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.i3 = {
+    recursive = true;
+    source = ../i3/.config/i3;
+  };
+  xdg.configFile.i3status = {
+    recursive = true;
+    source = ../i3/.config/i3status;
+  };
+}
diff --git a/modules/isync.nix b/modules/isync.nix
new file mode 100644
index 0000000..b96db87
--- /dev/null
+++ b/modules/isync.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".mbsyncrc".source = ../isync/.mbsyncrc;
+}
diff --git a/modules/ledger.nix b/modules/ledger.nix
new file mode 100644
index 0000000..0510215
--- /dev/null
+++ b/modules/ledger.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".ledgerrc".source = ../ledger/.ledgerrc;
+}
diff --git a/modules/msmtp.nix b/modules/msmtp.nix
new file mode 100644
index 0000000..45c2f46
--- /dev/null
+++ b/modules/msmtp.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".msmtprc".source = ../msmtp/.msmtprc;
+}
diff --git a/modules/nix.nix b/modules/nix.nix
new file mode 100644
index 0000000..4097598
--- /dev/null
+++ b/modules/nix.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, ... }:
+
+{
+  nixpkgs.config = import ../nix/.config/nixpkgs/config.nix;
+  xdg.configFile."nixpkgs.config.nix".source = ../nix/.config/nixpkgs/config.nix;
+}
diff --git a/modules/npm.nix b/modules/npm.nix
new file mode 100644
index 0000000..d2ba55d
--- /dev/null
+++ b/modules/npm.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".npmrc".source = ../javascript/.npmrc;
+}
diff --git a/modules/rofi.nix b/modules/rofi.nix
new file mode 100644
index 0000000..e0cec29
--- /dev/null
+++ b/modules/rofi.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.rofi = {
+    recursive = true;
+    source = ../rofi/.config/rofi;
+  };
+  xdg.configFile.rofi-pass = {
+    recursive = true;
+    source = ../rofi/.config/rofi-pass;
+  };
+}
diff --git a/modules/sxhkd.nix b/modules/sxhkd.nix
new file mode 100644
index 0000000..47a5b5f
--- /dev/null
+++ b/modules/sxhkd.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.sxhkd = {
+    recursive = true;
+    source = ../sxhkd/.config/sxhkd;
+  };
+}
diff --git a/modules/tabnine.nix b/modules/tabnine.nix
new file mode 100644
index 0000000..f07850e
--- /dev/null
+++ b/modules/tabnine.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.TabNine = {
+    recursive = true;
+    source = ../tabnine/.config/TabNine;
+  };
+}
diff --git a/modules/trezor.nix b/modules/trezor.nix
new file mode 100644
index 0000000..a4f3ba7
--- /dev/null
+++ b/modules/trezor.nix
@@ -0,0 +1,9 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".ssh/agent.config" = {
+    text = ''
+      ecdsa-curve-name = ed25519
+    '';
+  };
+}
diff --git a/modules/xresources.nix b/modules/xresources.nix
new file mode 100644
index 0000000..475113d
--- /dev/null
+++ b/modules/xresources.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".xresources" = {
+    recursive = true;
+    source = ../xresources/.xresources;
+  };
+}
diff --git a/modules/zsh.nix b/modules/zsh.nix
new file mode 100644
index 0000000..28e8229
--- /dev/null
+++ b/modules/zsh.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+
+{
+  home.file = {
+    ".rm_recycle_home".text = ""; # use trash automatically in home directory
+    ".zshenv".text = builtins.readFile ../zsh/.zshenv;
+  };
+  xdg.configFile.zsh = {
+    recursive = true;
+    source = ../zsh/.config/zsh;
+  };
+}