Create shim home-manager modules
Alan Pearce alan@alanpearce.eu
Tue, 01 Oct 2019 22:09:51 +0200
18 files changed, 142 insertions(+), 0 deletions(-)
jump to
- modules/autorandr.nix
- modules/base.nix
- modules/dunst.nix
- modules/emacs.nix
- modules/git.nix
- modules/gnupg.nix
- modules/i3.nix
- modules/isync.nix
- modules/ledger.nix
- modules/msmtp.nix
- modules/nix.nix
- modules/npm.nix
- modules/rofi.nix
- modules/sxhkd.nix
- modules/tabnine.nix
- modules/trezor.nix
- modules/xresources.nix
- modules/zsh.nix
A modules/autorandr.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + xdg.configFile.autorandr = { + recursive = true; + source = ../autorandr/.config/autorandr; + }; +}
A modules/base.nix
@@ -0,0 +1,6 @@+{ config, pkgs, ... }: + +{ + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; +}
A modules/dunst.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + xdg.configFile.dunst = { + recursive = true; + source = ../dunst/.config/dunst; + }; +}
A 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; +}
A modules/git.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + xdg.configFile.git = { + recursive = true; + source = ../git/.config/git; + }; +}
A modules/gnupg.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + home.file.".gnupg" = { + recursive = true; + source = ../gnupg/.gnupg; + }; +}
A 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; + }; +}
A modules/isync.nix
@@ -0,0 +1,5 @@+{ config, pkgs, ... }: + +{ + home.file.".mbsyncrc".source = ../isync/.mbsyncrc; +}
A modules/ledger.nix
@@ -0,0 +1,5 @@+{ config, pkgs, ... }: + +{ + home.file.".ledgerrc".source = ../ledger/.ledgerrc; +}
A modules/msmtp.nix
@@ -0,0 +1,5 @@+{ config, pkgs, ... }: + +{ + home.file.".msmtprc".source = ../msmtp/.msmtprc; +}
A 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; +}
A modules/npm.nix
@@ -0,0 +1,5 @@+{ config, pkgs, ... }: + +{ + home.file.".npmrc".source = ../javascript/.npmrc; +}
A 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; + }; +}
A modules/sxhkd.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + xdg.configFile.sxhkd = { + recursive = true; + source = ../sxhkd/.config/sxhkd; + }; +}
A modules/tabnine.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + xdg.configFile.TabNine = { + recursive = true; + source = ../tabnine/.config/TabNine; + }; +}
A modules/trezor.nix
@@ -0,0 +1,9 @@+{ config, pkgs, ... }: + +{ + home.file.".ssh/agent.config" = { + text = '' + ecdsa-curve-name = ed25519 + ''; + }; +}
A modules/xresources.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }: + +{ + home.file.".xresources" = { + recursive = true; + source = ../xresources/.xresources; + }; +}
A 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; + }; +}