summary refs log tree commit diff stats
path: root/user/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-10-02 16:55:23 +0200
committerAlan Pearce2019-10-02 16:55:23 +0200
commitec7f1357d16ff2f4aa7430a2940a0b9519018595 (patch)
tree28f4b022aff0ec38e7891ec677703a074dfd89f8 /user/modules
parent8a65ab00b625139984aeb6c3a1a93f8bc9d3fc85 (diff)
parenta261579a74bc3bf9ec673ef190f1ec4bb625b86b (diff)
downloadnixfiles-ec7f1357d16ff2f4aa7430a2940a0b9519018595.tar.lz
nixfiles-ec7f1357d16ff2f4aa7430a2940a0b9519018595.tar.zst
nixfiles-ec7f1357d16ff2f4aa7430a2940a0b9519018595.zip
Add 'user/' from commit 'a261579a74bc3bf9ec673ef190f1ec4bb625b86b'
git-subtree-dir: user
git-subtree-mainline: 8a65ab00b625139984aeb6c3a1a93f8bc9d3fc85
git-subtree-split: a261579a74bc3bf9ec673ef190f1ec4bb625b86b
Diffstat (limited to 'user/modules')
-rw-r--r--user/modules/autorandr.nix8
-rw-r--r--user/modules/base.nix6
-rw-r--r--user/modules/dunst.nix8
-rw-r--r--user/modules/emacs.nix9
-rw-r--r--user/modules/git.nix8
-rw-r--r--user/modules/gnupg.nix8
-rw-r--r--user/modules/i3.nix12
-rw-r--r--user/modules/isync.nix5
-rw-r--r--user/modules/ledger.nix5
-rw-r--r--user/modules/msmtp.nix5
-rw-r--r--user/modules/nix.nix6
-rw-r--r--user/modules/npm.nix5
-rw-r--r--user/modules/rofi.nix12
-rw-r--r--user/modules/sxhkd.nix8
-rw-r--r--user/modules/tabnine.nix8
-rw-r--r--user/modules/trezor.nix9
-rw-r--r--user/modules/xresources.nix8
-rw-r--r--user/modules/zsh.nix12
18 files changed, 142 insertions, 0 deletions
diff --git a/user/modules/autorandr.nix b/user/modules/autorandr.nix
new file mode 100644
index 00000000..f63095a4
--- /dev/null
+++ b/user/modules/autorandr.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.autorandr = {
+    recursive = true;
+    source = ../autorandr/.config/autorandr;
+  };
+}
diff --git a/user/modules/base.nix b/user/modules/base.nix
new file mode 100644
index 00000000..62bc9f24
--- /dev/null
+++ b/user/modules/base.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, ... }:
+
+{
+  # Let Home Manager install and manage itself.
+  programs.home-manager.enable = true;
+}
diff --git a/user/modules/dunst.nix b/user/modules/dunst.nix
new file mode 100644
index 00000000..78268c04
--- /dev/null
+++ b/user/modules/dunst.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.dunst = {
+    recursive = true;
+    source = ../dunst/.config/dunst;
+  };
+}
diff --git a/user/modules/emacs.nix b/user/modules/emacs.nix
new file mode 100644
index 00000000..82a22b52
--- /dev/null
+++ b/user/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/user/modules/git.nix b/user/modules/git.nix
new file mode 100644
index 00000000..a43ccadf
--- /dev/null
+++ b/user/modules/git.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.git = {
+    recursive = true;
+    source = ../git/.config/git;
+  };
+}
diff --git a/user/modules/gnupg.nix b/user/modules/gnupg.nix
new file mode 100644
index 00000000..6dcb31f2
--- /dev/null
+++ b/user/modules/gnupg.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".gnupg" = {
+    recursive = true;
+    source = ../gnupg/.gnupg;
+  };
+}
diff --git a/user/modules/i3.nix b/user/modules/i3.nix
new file mode 100644
index 00000000..a6acf92f
--- /dev/null
+++ b/user/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/user/modules/isync.nix b/user/modules/isync.nix
new file mode 100644
index 00000000..b96db87d
--- /dev/null
+++ b/user/modules/isync.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".mbsyncrc".source = ../isync/.mbsyncrc;
+}
diff --git a/user/modules/ledger.nix b/user/modules/ledger.nix
new file mode 100644
index 00000000..05102153
--- /dev/null
+++ b/user/modules/ledger.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".ledgerrc".source = ../ledger/.ledgerrc;
+}
diff --git a/user/modules/msmtp.nix b/user/modules/msmtp.nix
new file mode 100644
index 00000000..45c2f460
--- /dev/null
+++ b/user/modules/msmtp.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".msmtprc".source = ../msmtp/.msmtprc;
+}
diff --git a/user/modules/nix.nix b/user/modules/nix.nix
new file mode 100644
index 00000000..4097598b
--- /dev/null
+++ b/user/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/user/modules/npm.nix b/user/modules/npm.nix
new file mode 100644
index 00000000..d2ba55d9
--- /dev/null
+++ b/user/modules/npm.nix
@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".npmrc".source = ../javascript/.npmrc;
+}
diff --git a/user/modules/rofi.nix b/user/modules/rofi.nix
new file mode 100644
index 00000000..e0cec29e
--- /dev/null
+++ b/user/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/user/modules/sxhkd.nix b/user/modules/sxhkd.nix
new file mode 100644
index 00000000..47a5b5fc
--- /dev/null
+++ b/user/modules/sxhkd.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.sxhkd = {
+    recursive = true;
+    source = ../sxhkd/.config/sxhkd;
+  };
+}
diff --git a/user/modules/tabnine.nix b/user/modules/tabnine.nix
new file mode 100644
index 00000000..f07850ed
--- /dev/null
+++ b/user/modules/tabnine.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  xdg.configFile.TabNine = {
+    recursive = true;
+    source = ../tabnine/.config/TabNine;
+  };
+}
diff --git a/user/modules/trezor.nix b/user/modules/trezor.nix
new file mode 100644
index 00000000..a4f3ba75
--- /dev/null
+++ b/user/modules/trezor.nix
@@ -0,0 +1,9 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".ssh/agent.config" = {
+    text = ''
+      ecdsa-curve-name = ed25519
+    '';
+  };
+}
diff --git a/user/modules/xresources.nix b/user/modules/xresources.nix
new file mode 100644
index 00000000..475113de
--- /dev/null
+++ b/user/modules/xresources.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{
+  home.file.".xresources" = {
+    recursive = true;
+    source = ../xresources/.xresources;
+  };
+}
diff --git a/user/modules/zsh.nix b/user/modules/zsh.nix
new file mode 100644
index 00000000..28e82293
--- /dev/null
+++ b/user/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;
+  };
+}