Merge branch 'master' of github.com:IvanMalison/dotfiles
This commit is contained in:
commit
06758ccff7
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,7 @@
|
|||||||
/dotfiles/boot/cache
|
/dotfiles/boot/cache
|
||||||
/dotfiles/chrome-remote-desktop-session
|
/dotfiles/chrome-remote-desktop-session
|
||||||
/dotfiles/cider/.cache/
|
/dotfiles/cider/.cache/
|
||||||
|
/dotfiles/config/gtk-2.0/gtkfilechooser.ini
|
||||||
/dotfiles/pip/cache/
|
/dotfiles/pip/cache/
|
||||||
/dotfiles/pip/download_cache/
|
/dotfiles/pip/download_cache/
|
||||||
/dotfiles/pip/pip.conf
|
/dotfiles/pip/pip.conf
|
||||||
@ -18,4 +19,3 @@
|
|||||||
/dotfiles/vim/bundle/*
|
/dotfiles/vim/bundle/*
|
||||||
/dotfiles/wemo/cache
|
/dotfiles/wemo/cache
|
||||||
gotools
|
gotools
|
||||||
/dotfiles/config/gtk-2.0/gtkfilechooser.ini
|
|
||||||
|
4
dotfiles/cabal/.gitignore
vendored
Normal file
4
dotfiles/cabal/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/lib
|
||||||
|
/logs
|
||||||
|
/packages
|
||||||
|
/share
|
10
dotfiles/cabal/config
Normal file
10
dotfiles/cabal/config
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
repository hackage.haskell.org
|
||||||
|
url: http://hackage.haskell.org/
|
||||||
|
|
||||||
|
nix: True
|
||||||
|
remote-repo-cache: /home/imalison/.cabal/packages
|
||||||
|
world-file: /home/imalison/.cabal/world
|
||||||
|
extra-prog-path: /home/imalison/.cabal/bin
|
||||||
|
build-summary: /home/imalison/.cabal/logs/build.log
|
||||||
|
remote-build-reporting: anonymous
|
||||||
|
jobs: $ncpus
|
@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
"alt-speed-down": 50,
|
|
||||||
"alt-speed-enabled": false,
|
|
||||||
"alt-speed-time-begin": 540,
|
|
||||||
"alt-speed-time-day": 127,
|
|
||||||
"alt-speed-time-enabled": false,
|
|
||||||
"alt-speed-time-end": 1020,
|
|
||||||
"alt-speed-up": 50,
|
|
||||||
"bind-address-ipv4": "0.0.0.0",
|
|
||||||
"bind-address-ipv6": "::",
|
|
||||||
"blocklist-enabled": false,
|
|
||||||
"blocklist-updates-enabled": true,
|
|
||||||
"blocklist-url": "http://www.example.com/blocklist",
|
|
||||||
"cache-size-mb": 4,
|
|
||||||
"compact-view": false,
|
|
||||||
"dht-enabled": true,
|
|
||||||
"download-dir": "/backups",
|
|
||||||
"download-queue-enabled": true,
|
|
||||||
"download-queue-size": 5,
|
|
||||||
"encryption": 1,
|
|
||||||
"idle-seeding-limit": 30,
|
|
||||||
"idle-seeding-limit-enabled": false,
|
|
||||||
"incomplete-dir": "/backups",
|
|
||||||
"incomplete-dir-enabled": true,
|
|
||||||
"inhibit-desktop-hibernation": false,
|
|
||||||
"lpd-enabled": false,
|
|
||||||
"main-window-height": 597,
|
|
||||||
"main-window-is-maximized": 0,
|
|
||||||
"main-window-width": 1478,
|
|
||||||
"main-window-x": 1545,
|
|
||||||
"main-window-y": 2396,
|
|
||||||
"message-level": 2,
|
|
||||||
"open-dialog-dir": "/home/imalison",
|
|
||||||
"peer-congestion-algorithm": "",
|
|
||||||
"peer-id-ttl-hours": 6,
|
|
||||||
"peer-limit-global": 200,
|
|
||||||
"peer-limit-per-torrent": 50,
|
|
||||||
"peer-port": 51413,
|
|
||||||
"peer-port-random-high": 65535,
|
|
||||||
"peer-port-random-low": 49152,
|
|
||||||
"peer-port-random-on-start": false,
|
|
||||||
"peer-socket-tos": "default",
|
|
||||||
"pex-enabled": true,
|
|
||||||
"port-forwarding-enabled": true,
|
|
||||||
"preallocation": 1,
|
|
||||||
"prefetch-enabled": true,
|
|
||||||
"queue-stalled-enabled": true,
|
|
||||||
"queue-stalled-minutes": 30,
|
|
||||||
"ratio-limit": 1.5000,
|
|
||||||
"ratio-limit-enabled": true,
|
|
||||||
"recent-download-dir-1": "/backups",
|
|
||||||
"recent-download-dir-2": "/home/imalison/Downloads",
|
|
||||||
"recent-download-dir-3": "/backups/Download",
|
|
||||||
"rename-partial-files": true,
|
|
||||||
"rpc-authentication-required": false,
|
|
||||||
"rpc-bind-address": "0.0.0.0",
|
|
||||||
"rpc-enabled": true,
|
|
||||||
"rpc-password": "{885dd6dad1998041734e98dbfe4c837900eeeeac9YQyusfH",
|
|
||||||
"rpc-port": 9091,
|
|
||||||
"rpc-url": "/transmission/",
|
|
||||||
"rpc-username": "",
|
|
||||||
"rpc-whitelist": "127.0.0.1",
|
|
||||||
"rpc-whitelist-enabled": true,
|
|
||||||
"scrape-paused-torrents-enabled": true,
|
|
||||||
"script-torrent-done-enabled": false,
|
|
||||||
"script-torrent-done-filename": "/home/imalison",
|
|
||||||
"seed-queue-enabled": false,
|
|
||||||
"seed-queue-size": 10,
|
|
||||||
"show-backup-trackers": false,
|
|
||||||
"show-extra-peer-details": true,
|
|
||||||
"show-filterbar": true,
|
|
||||||
"show-notification-area-icon": false,
|
|
||||||
"show-options-window": true,
|
|
||||||
"show-statusbar": true,
|
|
||||||
"show-toolbar": true,
|
|
||||||
"show-tracker-scrapes": false,
|
|
||||||
"sort-mode": "sort-by-name",
|
|
||||||
"sort-reversed": false,
|
|
||||||
"speed-limit-down": 100,
|
|
||||||
"speed-limit-down-enabled": false,
|
|
||||||
"speed-limit-up": 100,
|
|
||||||
"speed-limit-up-enabled": false,
|
|
||||||
"start-added-torrents": true,
|
|
||||||
"statusbar-stats": "total-ratio",
|
|
||||||
"torrent-added-notification-enabled": true,
|
|
||||||
"torrent-complete-notification-enabled": true,
|
|
||||||
"torrent-complete-sound-command": "canberra-gtk-play -i complete-download -d 'transmission torrent downloaded'",
|
|
||||||
"torrent-complete-sound-enabled": true,
|
|
||||||
"trash-can-enabled": true,
|
|
||||||
"trash-original-torrent-files": false,
|
|
||||||
"umask": 18,
|
|
||||||
"upload-slots-per-torrent": 14,
|
|
||||||
"user-has-given-informed-consent": true,
|
|
||||||
"utp-enabled": true,
|
|
||||||
"watch-dir": "/home/imalison/Downloads",
|
|
||||||
"watch-dir-enabled": false
|
|
||||||
}
|
|
@ -31,8 +31,10 @@ xVisibleProp = getAtom "_XMONAD_VISIBLE_WORKSPACES"
|
|||||||
-- | Add support for the \"Current Layout\" and \"Visible Workspaces\" custom
|
-- | Add support for the \"Current Layout\" and \"Visible Workspaces\" custom
|
||||||
-- hints to the given config.
|
-- hints to the given config.
|
||||||
pagerHints :: XConfig a -> XConfig a
|
pagerHints :: XConfig a -> XConfig a
|
||||||
pagerHints c = c { handleEventHook = handleEventHook c +++ pagerHintsEventHook
|
pagerHints c =
|
||||||
, logHook = logHook c +++ pagerHintsLogHook }
|
c { handleEventHook = handleEventHook c +++ pagerHintsEventHook
|
||||||
|
, logHook = logHook c +++ pagerHintsLogHook
|
||||||
|
}
|
||||||
where x +++ y = x `mappend` y
|
where x +++ y = x `mappend` y
|
||||||
|
|
||||||
-- | Update the current values of both custom hints.
|
-- | Update the current values of both custom hints.
|
||||||
|
@ -8,7 +8,7 @@ packages:
|
|||||||
extra-dep: true
|
extra-dep: true
|
||||||
extra-deps:
|
extra-deps:
|
||||||
- X11-xft-0.3.1
|
- X11-xft-0.3.1
|
||||||
resolver: lts-11.7
|
resolver: lts-13.2
|
||||||
nix:
|
nix:
|
||||||
packages:
|
packages:
|
||||||
- pkgconfig
|
- pkgconfig
|
||||||
@ -18,3 +18,4 @@ nix:
|
|||||||
- xorg.libXinerama
|
- xorg.libXinerama
|
||||||
- xorg.libXrandr
|
- xorg.libXrandr
|
||||||
- xorg.libXrender
|
- xorg.libXrender
|
||||||
|
- xorg.libXScrnSaver
|
||||||
|
@ -1767,6 +1767,7 @@ bind-key and global-set-key forms.
|
|||||||
I use helm for almost all emacs completion
|
I use helm for almost all emacs completion
|
||||||
#+BEGIN_SRC emacs-lisp -n -r
|
#+BEGIN_SRC emacs-lisp -n -r
|
||||||
(use-package helm-config
|
(use-package helm-config
|
||||||
|
:demand t
|
||||||
:diminish helm-mode
|
:diminish helm-mode
|
||||||
:straight helm
|
:straight helm
|
||||||
:bind (("M-y" . helm-show-kill-ring)
|
:bind (("M-y" . helm-show-kill-ring)
|
||||||
@ -1809,8 +1810,12 @@ I use helm for almost all emacs completion
|
|||||||
(setq helm-ag--extra-options option))))
|
(setq helm-ag--extra-options option))))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq helm-ag-always-set-extra-option nil)))
|
(setq helm-ag-always-set-extra-option nil)))))
|
||||||
(run-with-idle-timer 1 nil 'helm-mode 1)))
|
|
||||||
|
(use-package helm
|
||||||
|
:diminish helm-mode
|
||||||
|
:config
|
||||||
|
(helm-mode +1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** helm-projectile
|
** helm-projectile
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -1912,7 +1917,8 @@ I use helm for almost all emacs completion
|
|||||||
ido-use-virtual-buffers t
|
ido-use-virtual-buffers t
|
||||||
ido-use-filename-at-point nil
|
ido-use-filename-at-point nil
|
||||||
ido-create-new-buffer 'always)
|
ido-create-new-buffer 'always)
|
||||||
(ido-everywhere 1)
|
;; This is incompatible with helm-mode
|
||||||
|
;; (ido-everywhere 1)
|
||||||
(setq ido-enable-flex-matching t)
|
(setq ido-enable-flex-matching t)
|
||||||
(use-package flx-ido
|
(use-package flx-ido
|
||||||
:defer 5
|
:defer 5
|
||||||
@ -2205,12 +2211,13 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
|
|||||||
<<programminglanguages>>
|
<<programminglanguages>>
|
||||||
*** python
|
*** python
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defvar imalison:use-lsp-python t)
|
||||||
(use-package python
|
(use-package python
|
||||||
:commands python-mode
|
:commands python-mode
|
||||||
:mode ("\\.py\\'" . python-mode)
|
:mode ("\\.py\\'" . python-mode)
|
||||||
:preface
|
:preface
|
||||||
(defun imalison:python-mode ()
|
(progn
|
||||||
(setq show-trailing-whitespace t)
|
(defun imalison:jedi-setup ()
|
||||||
;; TODO: This was likely fixed and can probably be removed
|
;; TODO: This was likely fixed and can probably be removed
|
||||||
;; Somehow this is sometimes set to jedi:ac-setup which we
|
;; Somehow this is sometimes set to jedi:ac-setup which we
|
||||||
;; don't want. This binding avoids starting auto-complete mode.
|
;; don't want. This binding avoids starting auto-complete mode.
|
||||||
@ -2220,15 +2227,17 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
|
|||||||
;; XXX: This has become pretty annoying
|
;; XXX: This has become pretty annoying
|
||||||
;; (add-hook 'before-save-hook 'pyimport-remove-unused t t)
|
;; (add-hook 'before-save-hook 'pyimport-remove-unused t t)
|
||||||
|
|
||||||
;; Ensure company is active
|
|
||||||
(company-mode +1)
|
|
||||||
;; Only use company-jedi for completion
|
;; Only use company-jedi for completion
|
||||||
(set (make-local-variable 'company-backends) '(company-jedi))
|
(set (make-local-variable 'company-backends) '(company-jedi)))
|
||||||
|
|
||||||
|
(defun imalison:python-mode ()
|
||||||
|
(setq show-trailing-whitespace t)
|
||||||
;; Remove default python completion, as we are going to rely on
|
;; Remove default python completion, as we are going to rely on
|
||||||
;; company-jedi.
|
;; company-jedi or company-lsp.
|
||||||
(remove-hook 'completion-at-point-functions
|
;; (remove-hook 'completion-at-point-functions
|
||||||
'python-completion-complete-at-point 'local))
|
;; 'python-completion-complete-at-point 'local)
|
||||||
|
(unless imalison:use-lsp-python
|
||||||
|
(imalison:jedi-setup))))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(use-package sphinx-doc)
|
(use-package sphinx-doc)
|
||||||
@ -2676,13 +2685,13 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
|||||||
(progn
|
(progn
|
||||||
(use-package ensime
|
(use-package ensime
|
||||||
:demand t
|
:demand t
|
||||||
:pin melpa-stable
|
|
||||||
:bind (:map ensime-mode-map
|
:bind (:map ensime-mode-map
|
||||||
("M-," . ensime-pop-find-definition-stack))
|
("M-," . ensime-pop-find-definition-stack))
|
||||||
:commands ensime-mode
|
:commands ensime-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq ensime-startup-snapshot-notification nil)))
|
(setq ensime-startup-snapshot-notification nil
|
||||||
|
ensime-startup-notification nil)))
|
||||||
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
|
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
|
||||||
(setq scala-indent:align-parameters t)))
|
(setq scala-indent:align-parameters t)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -2721,7 +2730,7 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
|||||||
indent-tabs-mode nil
|
indent-tabs-mode nil
|
||||||
js2-indent-switch-body t)
|
js2-indent-switch-body t)
|
||||||
;; (edconf-find-file-hook) ;; Make sure that editorconfig takes precedence
|
;; (edconf-find-file-hook) ;; Make sure that editorconfig takes precedence
|
||||||
(tern-mode t)
|
;; (tern-mode t)
|
||||||
(when nil (skewer-mode)) ;; TODO: reenable
|
(when nil (skewer-mode)) ;; TODO: reenable
|
||||||
(setq imenu-create-index-function
|
(setq imenu-create-index-function
|
||||||
(lambda ()
|
(lambda ()
|
||||||
@ -4299,6 +4308,12 @@ I had to disable this mode because something that it does messes with coding set
|
|||||||
(use-package dtrt-indent
|
(use-package dtrt-indent
|
||||||
:diminish 'dtrt-indent-mode
|
:diminish 'dtrt-indent-mode
|
||||||
:commands 'dtrt-indent-mode
|
:commands 'dtrt-indent-mode
|
||||||
|
:preface
|
||||||
|
(progn
|
||||||
|
(defun dtrt-indent-force-adapt ()
|
||||||
|
(interactive)
|
||||||
|
(setq dtrt-indent-original-indent nil)
|
||||||
|
(dtrt-indent-adapt)))
|
||||||
:init (add-hook 'prog-mode-hook 'dtrt-indent-mode)
|
:init (add-hook 'prog-mode-hook 'dtrt-indent-mode)
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
projectile.cache
|
projectile.cache
|
||||||
projectile-bookmarks.eld
|
projectile-bookmarks.eld
|
||||||
.dir-locals.el
|
.dir-locals.el
|
||||||
|
*_flymake\.*
|
||||||
# Org produces folders with temp files when editing source blocks.
|
# Org produces folders with temp files when editing source blocks.
|
||||||
*Org Src*
|
*Org Src*
|
||||||
|
|
||||||
|
@ -183,8 +183,10 @@ in
|
|||||||
ispell
|
ispell
|
||||||
jq
|
jq
|
||||||
mercurial
|
mercurial
|
||||||
|
networkmanager-openvpn
|
||||||
ncdu
|
ncdu
|
||||||
neofetch
|
neofetch
|
||||||
|
openvpn
|
||||||
pass
|
pass
|
||||||
patchelf
|
patchelf
|
||||||
plasma-workspace
|
plasma-workspace
|
||||||
@ -199,6 +201,7 @@ in
|
|||||||
stow
|
stow
|
||||||
tmux
|
tmux
|
||||||
unzip
|
unzip
|
||||||
|
usbutils
|
||||||
valgrind
|
valgrind
|
||||||
wget
|
wget
|
||||||
wmctrl
|
wmctrl
|
||||||
|
@ -61,6 +61,32 @@
|
|||||||
networking.hostName = "imalison-home";
|
networking.hostName = "imalison-home";
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
syncPasswordsByPam = true;
|
||||||
|
extraConfig = ''
|
||||||
|
workgroup = WORKGROUP
|
||||||
|
server string = smbnix
|
||||||
|
netbios name = smbnix
|
||||||
|
#use sendfile = yes
|
||||||
|
#max protocol = smb2
|
||||||
|
hosts allow = 192.168.0 localhost
|
||||||
|
hosts deny = 0.0.0.0/0
|
||||||
|
'';
|
||||||
|
shares = {
|
||||||
|
private = {
|
||||||
|
path = "/backups";
|
||||||
|
browseable = "yes";
|
||||||
|
"read only" = "no";
|
||||||
|
"guest ok" = "no";
|
||||||
|
"create mask" = "0644";
|
||||||
|
"directory mask" = "0755";
|
||||||
|
"force user" = "username";
|
||||||
|
"force group" = "groupname";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
screenSection = ''
|
screenSection = ''
|
||||||
DefaultDepth 24
|
DefaultDepth 24
|
||||||
|
Loading…
Reference in New Issue
Block a user