summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Pearce2019-10-01 22:09:51 +0200
committerAlan Pearce2019-10-01 22:17:40 +0200
commitb710b6058767cf1d7c780f7e93aea6f52ad021c5 (patch)
tree401e40c720ddf7d11b96f79a23788782870650cf
parentd0200a6b07e497d07dff2cfe0857f4dceb724b58 (diff)
downloaddotfiles-b710b6058767cf1d7c780f7e93aea6f52ad021c5.tar.xz
dotfiles-b710b6058767cf1d7c780f7e93aea6f52ad021c5.zip
Create shim home-manager 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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.autorandr = {
5 recursive = true;
6 source = ../autorandr/.config/autorandr;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 # Let Home Manager install and manage itself.
5 programs.home-manager.enable = true;
6}
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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.dunst = {
5 recursive = true;
6 source = ../dunst/.config/dunst;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".emacs.d" = {
5 recursive = true;
6 source = ../emacs/.emacs.d;
7 };
8 home.file.".local/share/applications/emacsclient.desktop".source = ../emacs/.local/share/applications/emacsclient.desktop;
9}
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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.git = {
5 recursive = true;
6 source = ../git/.config/git;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".gnupg" = {
5 recursive = true;
6 source = ../gnupg/.gnupg;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.i3 = {
5 recursive = true;
6 source = ../i3/.config/i3;
7 };
8 xdg.configFile.i3status = {
9 recursive = true;
10 source = ../i3/.config/i3status;
11 };
12}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".mbsyncrc".source = ../isync/.mbsyncrc;
5}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".ledgerrc".source = ../ledger/.ledgerrc;
5}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".msmtprc".source = ../msmtp/.msmtprc;
5}
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 @@
1{ config, pkgs, ... }:
2
3{
4 nixpkgs.config = import ../nix/.config/nixpkgs/config.nix;
5 xdg.configFile."nixpkgs.config.nix".source = ../nix/.config/nixpkgs/config.nix;
6}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".npmrc".source = ../javascript/.npmrc;
5}
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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.rofi = {
5 recursive = true;
6 source = ../rofi/.config/rofi;
7 };
8 xdg.configFile.rofi-pass = {
9 recursive = true;
10 source = ../rofi/.config/rofi-pass;
11 };
12}
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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.sxhkd = {
5 recursive = true;
6 source = ../sxhkd/.config/sxhkd;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 xdg.configFile.TabNine = {
5 recursive = true;
6 source = ../tabnine/.config/TabNine;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".ssh/agent.config" = {
5 text = ''
6 ecdsa-curve-name = ed25519
7 '';
8 };
9}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file.".xresources" = {
5 recursive = true;
6 source = ../xresources/.xresources;
7 };
8}
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 @@
1{ config, pkgs, ... }:
2
3{
4 home.file = {
5 ".rm_recycle_home".text = ""; # use trash automatically in home directory
6 ".zshenv".text = builtins.readFile ../zsh/.zshenv;
7 };
8 xdg.configFile.zsh = {
9 recursive = true;
10 source = ../zsh/.config/zsh;
11 };
12}