diff options
-rw-r--r-- | modules/autorandr.nix | 8 | ||||
-rw-r--r-- | modules/base.nix | 6 | ||||
-rw-r--r-- | modules/dunst.nix | 8 | ||||
-rw-r--r-- | modules/emacs.nix | 9 | ||||
-rw-r--r-- | modules/git.nix | 8 | ||||
-rw-r--r-- | modules/gnupg.nix | 8 | ||||
-rw-r--r-- | modules/i3.nix | 12 | ||||
-rw-r--r-- | modules/isync.nix | 5 | ||||
-rw-r--r-- | modules/ledger.nix | 5 | ||||
-rw-r--r-- | modules/msmtp.nix | 5 | ||||
-rw-r--r-- | modules/nix.nix | 6 | ||||
-rw-r--r-- | modules/npm.nix | 5 | ||||
-rw-r--r-- | modules/rofi.nix | 12 | ||||
-rw-r--r-- | modules/sxhkd.nix | 8 | ||||
-rw-r--r-- | modules/tabnine.nix | 8 | ||||
-rw-r--r-- | modules/trezor.nix | 9 | ||||
-rw-r--r-- | modules/xresources.nix | 8 | ||||
-rw-r--r-- | modules/zsh.nix | 12 |
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; + }; +} |