diff options
Diffstat (limited to 'makefu/2configs/home-manager')
-rw-r--r-- | makefu/2configs/home-manager/cli.nix | 12 | ||||
-rw-r--r-- | makefu/2configs/home-manager/default.nix | 13 | ||||
-rw-r--r-- | makefu/2configs/home-manager/desktop.nix | 63 | ||||
-rw-r--r-- | makefu/2configs/home-manager/mail.nix | 73 | ||||
-rw-r--r-- | makefu/2configs/home-manager/recording.nix | 4 | ||||
-rw-r--r-- | makefu/2configs/home-manager/taskwarrior.nix | 31 | ||||
-rw-r--r-- | makefu/2configs/home-manager/zsh.nix | 111 |
7 files changed, 0 insertions, 307 deletions
diff --git a/makefu/2configs/home-manager/cli.nix b/makefu/2configs/home-manager/cli.nix deleted file mode 100644 index 38d02424c..000000000 --- a/makefu/2configs/home-manager/cli.nix +++ /dev/null @@ -1,12 +0,0 @@ -{pkgs, ... }: { - imports = [ ./zsh.nix ]; - home-manager.users.makefu = { - programs.direnv = { - enableZshIntegration = true; - }; - }; - services.udev.packages = [ - pkgs.libu2f-host - pkgs.yubikey-personalization - ]; -} diff --git a/makefu/2configs/home-manager/default.nix b/makefu/2configs/home-manager/default.nix deleted file mode 100644 index be8861100..000000000 --- a/makefu/2configs/home-manager/default.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ - imports = [ - <home-manager/nixos> - ]; - home-manager.useUserPackages = true; - home-manager.useGlobalPkgs = true; - home-manager.users.makefu = { - home.stateVersion = "19.03"; - }; - environment.variables = { - GTK_DATA_PREFIX = "/run/current-system/sw"; - }; -} diff --git a/makefu/2configs/home-manager/desktop.nix b/makefu/2configs/home-manager/desktop.nix deleted file mode 100644 index cca15468c..000000000 --- a/makefu/2configs/home-manager/desktop.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ 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 = { - enable = true; - }; - programs.obs-studio.enable = true; - xdg.enable = true; - services.network-manager-applet.enable = true; - services.blueman-applet.enable = true; - services.pasystray.enable = true; - services.flameshot.enable = true; - home.file.".config/Dharkael/flameshot.ini".text = '' - [General] - disabledTrayIcon=false - drawColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xff\xff\0\0) - drawThickness=0 - filenamePattern=%F_%T_shot - ''; - - programs.chromium = { - enable = true; - extensions = [ - "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin - "dbepggeogbaibhgnhhndojpepiihcmeb" # vimium - # "liloimnbhkghhdhlamdjipkmadhpcjmn" # krebsgold - "fpnmgdkabkmnadcjpehmlllkndpkmiak" # wayback machine - "gcknhkkoolaabfmlnjonogaaifnjlfnp" # foxyproxy - "abkfbakhjpmblaafnpgjppbmioombali" # memex - "kjacjjdnoddnpbbcjilcajfhhbdhkpgk" # forest - ]; - }; - - systemd.user.services.clipit = { - Unit = { - Description = "clipboard manager"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; - }; - - Install = { - WantedBy = [ "graphical-session.target" ]; - }; - - Service = { - Environment = ''XDG_DATA_DIRS=/run/current-system/sw/share:${pkgs.clipit}/share GDK_PIXBUF_MODULE_FILE=${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache''; - ExecStart = "${pkgs.clipit}/bin/clipit"; - Restart = "on-abort"; - }; - }; - programs.beets.enable = true; - }; -} diff --git a/makefu/2configs/home-manager/mail.nix b/makefu/2configs/home-manager/mail.nix deleted file mode 100644 index 3aa1814ca..000000000 --- a/makefu/2configs/home-manager/mail.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ 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"; - accounts.email.accounts.syntaxfehler = { - address = "felix.richter@syntax-fehler.de"; - userName = "Felix.Richter@syntax-fehler.de"; - imap = { - host = "syntax-fehler.de"; - tls = { - enable = true; - }; - }; - mbsync = { - enable = true; - create = "both"; - remove = "both"; - expunge = "both"; - patterns = [ "*" "!INBOX.Sent*"]; - }; - smtp = { - host = "syntax-fehler.de"; - tls = { - enable = true; - }; - }; - folders = { - sent = "Sent"; - trash = "Trash"; - inbox = "INBOX"; - drafts = "Drafts"; - }; - msmtp.enable = true; - notmuch.enable = true; - offlineimap = { - enable = true; - postSyncHookCommand = "notmuch new"; - extraConfig.remote = { - auth_mechanisms = "LOGIN"; - tls_level = "tls_secure"; - ssl_version = "tls1_2"; - holdconnectionopen = true; - idlefolders = "['INBOX']"; - }; - }; - primary = true; - realName = "Felix Richter"; - passwordCommand = "gpg --use-agent --quiet --batch -d /home/makefu/.gnupg/mail/syntax-fehler.gpg"; - }; - programs.offlineimap.enable = true; - programs.offlineimap.extraConfig = { - mbnames = { - filename = "~/.mutt/muttrc.mailboxes"; - header = "'mailboxes '"; - peritem = "'+%(accountname)s/%(foldername)s'"; - sep = "' '"; - footer = "'\\n'"; - }; - general = { - ui = "TTY.TTYUI"; - }; - }; - }; -} diff --git a/makefu/2configs/home-manager/recording.nix b/makefu/2configs/home-manager/recording.nix deleted file mode 100644 index 31ca77b2b..000000000 --- a/makefu/2configs/home-manager/recording.nix +++ /dev/null @@ -1,4 +0,0 @@ -{pkgs, ... }: -{ - home-manager.users.makefu.programs.obs-studio.enable = true; -} diff --git a/makefu/2configs/home-manager/taskwarrior.nix b/makefu/2configs/home-manager/taskwarrior.nix deleted file mode 100644 index 57ba1a08d..000000000 --- a/makefu/2configs/home-manager/taskwarrior.nix +++ /dev/null @@ -1,31 +0,0 @@ -{pkgs, ... }: -let - loc = "/home/makefu/.task"; -in { - state = [ "${loc}/keys" ]; - environment.shellAliases = { - tshack = "task tags:shack"; - tkrebs = "task tags:krebs"; - thome = "task tags:home"; - t = "task project: "; - }; - home-manager.users.makefu.programs.taskwarrior = { - enable = true; - dataLocation = loc; - config = { - default.command = "list"; - taskd = { - server = "gum:53589"; - certificate = "${loc}/keys/public.crt"; - key = "${loc}/keys/private.key"; - ca = "${loc}/keys/ca.crt"; - credentials = "home/makefu/0e6c8146-1ddb-4906-9369-8f77e34cdf84"; - }; - context = { - work = "tags:work"; - shack = "tags:shack"; - home = "tags:home"; - }; - }; - }; -} diff --git a/makefu/2configs/home-manager/zsh.nix b/makefu/2configs/home-manager/zsh.nix deleted file mode 100644 index c875d52c8..000000000 --- a/makefu/2configs/home-manager/zsh.nix +++ /dev/null @@ -1,111 +0,0 @@ -{ pkgs, ... }: -{ - programs = { - ssh.startAgent = false; - gnupg.agent = { - enable = true; - enableSSHSupport = true; - }; - }; - imports = [ - { - home-manager.users.makefu.home.packages = [ - (pkgs.writers.writeDashBin "privatefox" "exec firefox -P Privatefox") - ]; - } - { # 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 - catn = "${pkgs.coreutils}/bin/cat"; - ncat = "${pkgs.coreutils}/bin/cat"; - }; - } - ]; - environment.pathsToLink = [ - "/share/zsh" - ]; - - nix.extraOptions = '' - keep-outputs = true - keep-derivations = true - ''; - - home-manager.users.makefu = { - - programs.direnv.enable = true; - programs.direnv.nix-direnv.enable = true; - programs.direnv.enableZshIntegration = true; - home.packages = [ (pkgs.writeDashBin "nixify" '' -test ! -e shell.nix && cat > shell.nix <<EOF -{ pkgs ? import <nixpkgs> {}}: - -pkgs.mkShell { - nativeBuildInputs = [ pkgs.hello ]; -} -EOF -echo "use nix" >> .envrc -direnv allow -'') - ]; - #home.packages = [ pkgs.direnv pkgs.nix-direnv ]; - - programs.fzf.enable = false; # alt-c - programs.zsh = { - enable = true; - enableAutosuggestions = false; - enableCompletion = true; - oh-my-zsh.enable = false; - history = { - size = 900001; - save = 900001; - ignoreDups = true; - ignoreSpace = true; - - extended = true; - share = true; - }; - sessionVariables = { - # TERM = "rxvt-unicode-256color"; - TERM = "xterm"; - LANG = "en_US.UTF8"; - LS_COLORS = ":di=1;31:"; - EDITOR = "vim"; - }; - shellAliases = { - lsl = "ls -lAtr"; - t = "task"; - xo = "mimeopen"; - nmap = "nmap -oN $HOME/loot/scan-`date +\%s`.nmap -oX $HOME/loot/scan-`date +%s`.xml"; - }; - #zplug = { - # enable = true; - # plugins = [ - # { name = "denisidoro/navi" ; } - # { name = "zsh-users/zsh-autosuggestions" ; } - # ]; - #}; - initExtra = '' - bindkey -e - zle -N edit-command-line - # ctrl-x ctrl-e - bindkey '^xe' edit-command-line - bindkey '^x^e' edit-command-line - # shift-tab - bindkey '^[[Z' reverse-menu-complete - bindkey "\e[3~" delete-char - zstyle ':completion:*' menu select - - setopt HIST_IGNORE_ALL_DUPS - setopt HIST_FIND_NO_DUPS - - compdef _pass brain - zstyle ':completion::complete:brain::' prefix "$HOME/brain" - - compdef _pass secrets - zstyle ':completion::complete:secrets::' prefix "$HOME/.secrets-pass/" - ''; - }; - }; -} |