summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/home-manager')
-rw-r--r--makefu/2configs/home-manager/default.nix1
-rw-r--r--makefu/2configs/home-manager/desktop.nix8
-rw-r--r--makefu/2configs/home-manager/mail.nix8
-rw-r--r--makefu/2configs/home-manager/zsh.nix13
4 files changed, 25 insertions, 5 deletions
diff --git a/makefu/2configs/home-manager/default.nix b/makefu/2configs/home-manager/default.nix
index f68b1092f..be8861100 100644
--- a/makefu/2configs/home-manager/default.nix
+++ b/makefu/2configs/home-manager/default.nix
@@ -3,6 +3,7 @@
<home-manager/nixos>
];
home-manager.useUserPackages = true;
+ home-manager.useGlobalPkgs = true;
home-manager.users.makefu = {
home.stateVersion = "19.03";
};
diff --git a/makefu/2configs/home-manager/desktop.nix b/makefu/2configs/home-manager/desktop.nix
index cf20af1b1..bd1e34804 100644
--- a/makefu/2configs/home-manager/desktop.nix
+++ b/makefu/2configs/home-manager/desktop.nix
@@ -1,8 +1,14 @@
-{ pkgs, lib, ... }:
+{ pkgs, lib, config, ... }:
{
+
users.users.makefu.packages = with pkgs;[ bat direnv clipit ];
home-manager.users.makefu = {
+ systemd.user.services.flameshot.Service.Environment = lib.mkForce [
+ "IMGUR_CREATE_URL=https://p.krebsco.de/image"
+ "IMGUR_DELETE_URL=https://p.krebsco.de/image/delete/%%1"
+ "PATH=${config.home-manager.users.makefu.home.profileDirectory}/bin"
+ ];
systemd.user.services.network-manager-applet.Service.Environment = ''XDG_DATA_DIRS=/run/current-system/sw/share:${pkgs.networkmanagerapplet}/share GDK_PIXBUF_MODULE_FILE=${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache'';
programs.browserpass = { browsers = [ "firefox" ] ; enable = true; };
programs.firefox = {
diff --git a/makefu/2configs/home-manager/mail.nix b/makefu/2configs/home-manager/mail.nix
index ba29e86a4..3aa1814ca 100644
--- a/makefu/2configs/home-manager/mail.nix
+++ b/makefu/2configs/home-manager/mail.nix
@@ -1,5 +1,13 @@
+{ pkgs, ... }:
{
home-manager.users.makefu = {
+ home.packages= with pkgs;[ (pkgs.writers.writeDashBin "mailsync"''
+ ${imapfilter}/bin/imapfilter -t /etc/ssl/certs/ca-bundle.crt \
+ && ${isync}/bin/mbsync -a \
+ && ${libnotify}/bin/notify-send -t 1000000 -u critical 'Mail sync finished'
+
+ ''
+ )];
programs.mbsync.enable = true;
accounts.email.maildirBasePath = "/home/makefu/Mail";
accounts.email.certificatesFile = "/etc/ssl/certs/ca-certificates.crt";
diff --git a/makefu/2configs/home-manager/zsh.nix b/makefu/2configs/home-manager/zsh.nix
index f972e98b4..862ee5df3 100644
--- a/makefu/2configs/home-manager/zsh.nix
+++ b/makefu/2configs/home-manager/zsh.nix
@@ -9,11 +9,13 @@
};
imports = [
{ #direnv
- home-manager.users.makefu.home.packages = [ pkgs.direnv pkgs.nur.repos.kalbasit.nixify ];
- # home-manager.users.makefu.home.file.".direnvrc".text = '''';
+ home-manager.users.makefu.home.packages = [
+ (pkgs.writers.writeDashBin "privatefox" "exec firefox -P Privatefox")
+ pkgs.direnv pkgs.nur.repos.kalbasit.nixify ];
+ # home-manager.users.makefu.home.file.".direnvrc".text = '''';
}
{ # bat
- home-manager.users.makefu.home.packages = [ pkgs.bat ];
+ home-manager.users.makefu.home.packages = [ pkgs.bat ];
home-manager.users.makefu.programs.zsh.shellAliases = {
cat = "bat --style=header,snip";
mirage = "sxiv"; # only available when tools/extra-gui is in use
@@ -65,8 +67,11 @@
zstyle ':completion::complete:brain::' prefix "$HOME/brain"
compdef _pass secrets
zstyle ':completion::complete:secrets::' prefix "$HOME/.secrets-pass/"
-
+
+ # navi
+ source ${pkgs.navi}/share/navi/shell/navi.plugin.zsh
# ctrl-x ctrl-e
+ autoload -U compinit && compinit
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^xe' edit-command-line