summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
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 00000000..f63095a4
--- /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 00000000..62bc9f24
--- /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 00000000..78268c04
--- /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 00000000..82a22b52
--- /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 00000000..a43ccadf
--- /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 00000000..6dcb31f2
--- /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 00000000..a6acf92f
--- /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 00000000..b96db87d
--- /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 00000000..05102153
--- /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 00000000..45c2f460
--- /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 00000000..4097598b
--- /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 00000000..d2ba55d9
--- /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 00000000..e0cec29e
--- /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 00000000..47a5b5fc
--- /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 00000000..f07850ed
--- /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 00000000..a4f3ba75
--- /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 00000000..475113de
--- /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 00000000..28e82293
--- /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;
+  };
+}