From b14adb2b4b93d7167ac0b9cb1b11c7426d4b8ffd Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Fri, 12 Apr 2019 15:39:08 -0400 Subject: [PATCH] MORE CLEANING --- Emacs Client.scpt | Bin 3118 -> 0 bytes brew_list | 15 ------ configuration.nix | 127 ++++++++++++++-------------------------------- home.nix | 2 +- xmonad.hs | 39 -------------- 5 files changed, 38 insertions(+), 145 deletions(-) delete mode 100644 Emacs Client.scpt delete mode 100644 brew_list delete mode 100644 xmonad.hs diff --git a/Emacs Client.scpt b/Emacs Client.scpt deleted file mode 100644 index a6d7241a9ba54ae50b63540551113b570fad9a06..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3118 zcmb_e&2tn*6#va^B4m@o)gL`6hIP{D6e0Y&Bcdp(H}G_lHJx90Wh?$@v1$FE=aZa*D) zY{y>HTkT!1UkN}{y9gY(C^%%`k#`PoTz^e2nmE&p>pYS|NFJzQkzAHPJS;-tVJlX_ zVzi*>v9U`FxCyN;S}EQJ&m-Yd2L%-5ca+fXu;E|{2l1>q7??1Q517$7Fi1LJ-@HI>SUAB@M5NrPZKHCb%@@Ss1PnlXPWFn(l$C`+bIBQjHsv@zTWgUV>) zj|Y{ok!B{C3L?`OHQ88@1g4QjU77ko8{oW-C1otZDHz%jkcNo)KR|AjZNhddwvqPn z8>U1ZJ|>Y`*#V5RS7*;KAQghZ07K$>yK zX-YQi$Q0X@-!Q+Bk`>yNaMifwLpz&MI&_NR-oxAE^H-) zZ^TVW(}(L?^mRL;@}CE;Hx%{cl9oX;lT0E9U@Leo}G~aO8q=zbHCd zPt*5}U0~ zbjr8rLB(OiZ1rFlwwsv()<|u#lF2A)MEiS8n)yklshkz?qY)ENuweOl9*zF;1XeUG z)iSDhp3YraZ1kAVr7y9miR`i4PXn|VWlUINlbfghY7JV1MkpC$!XC^V5OYa4oU?xy z>u666>pc=%I6BcK-=J5%F0xrD&AoY=iDdMZSW@ZFU1i*bXQ*ih_nok1LCZ!)+qI0Q zoS7@LRnDkX4Lj{@Hd8`W>LJe6F@(KWtoTP^cI9j45$pMFkgq&!$X)10MZUyFIa_42 zkP91g7rL4DO(kqn7dDr%`C1_LtOD#S1?goaf2f_;@w*#aJQ9M7=NOPP@`Zfv$Qc#- zLdoYUxrJXp?(s-03{~2(;stS~L>~!8* zoFCwxA%=MJ^lhfUR=n3z|5!HMQW zmxqoxy>HG634cI~neETCO??}yy?o!$|967oF^-m%KjJi43>oWXYD@D=uin^n^x{*_ zz720QAG*1he)J9Q>Yq%LeuQz|5Bsq*2t%LUK%ZlkiEuLQhpO(!oF66Lw=Ms2Slca# z2U!I>u$D?|R%b0&S)0>XQ-!rTeM{lgm|X?TDJ*1<#18nU!c0Qa>2rH z6i1HePVWLmIlRDOD9cf7S%#G-pJ{_LaCqqL)6OasKhxfmD2zRUj(z%|KcfRfXD$7* W1B=#@D?Zk)cOb#hcIm{4*Zu^?zprKh diff --git a/brew_list b/brew_list deleted file mode 100644 index 14f8c86..0000000 --- a/brew_list +++ /dev/null @@ -1,15 +0,0 @@ -ipfs -keybase -mobile-shell -mopidy -mopidy-notifier -mopidy-spotify -msmtp -mu -ncmpcpp -perforce -pinentry-mac -qemu -terminal-notifier -w3m -vdirsyncer diff --git a/configuration.nix b/configuration.nix index 5f3839f..4b0ecae 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,7 +8,6 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - ./vpn.nix ]; boot.loader.systemd-boot.enable = true; @@ -36,25 +35,17 @@ inputMethod = { enabled = "fcitx"; - fcitx.engines = with pkgs.fcitx-engines; [ anthy mozc ]; + fcitx.engines = with pkgs.fcitx-engines; [ anthy mozc libpinyin ]; }; }; - time.timeZone = "US/Eastern"; + time.timeZone = "America/New_York"; - environment.systemPackages = with pkgs; [ - wget vim clipit compton feh firefox fzf git gparted gucharmap htop keepass keepassx2 keychain ncmpcpp neovim pandoc polybar qutebrowser rofi silver-searcher tmux tree unzip wirelesstools xcape xclip anki pavucontrol ranger blueman gifsicle networkmanager paprefs steam xscreensaver hledger hledger-web ledger mpv nnn nodejs pinentry vlc gnupg nitrogen alacritty wine tldr yarn spotify signal-desktop mu mosh ispell google-chrome emacs-all-the-icons-fonts gnupg python udiskie veracrypt bashmount exfat exfat-utils neofetch w3m toot rtv newsboat neomutt dunst - ]; + # environment.systemPackages = with pkgs; [ + # ]; nixpkgs.config = { allowUnfree = true; - - packageOverrides = pkgs: rec { - polybar = pkgs.polybar.override { - i3Support = true; - mpdSupport = true; - }; - }; }; # Some programs need SUID wrappers, can be configured further or are @@ -62,12 +53,12 @@ # programs.bash.enableCompletion = true; # programs.mtr.enable = true; - programs.gnupg.agent = { - enable = true; - enableSSHSupport = true; - }; - services = { + zerotierone = { + enable = true; + joinNetworks = [ "1d719394045bb17d" ]; + }; + # Enable the OpenSSH daemon. # services.openssh.enable = true; @@ -75,36 +66,14 @@ enable = true; }; - mopidy = { - enable = true; - extensionPackages = [ pkgs.mopidy-spotify pkgs.mopidy-youtube pkgs.mopidy-iris ]; - configuration = '' - [audio] - output = pulsesink server=127.0.0.1 - - [local] - enabled = true - media_dir = /home/dustinswan/Music - - [spotify] - enabled = true - username = - password = - client_id = - client_secret = - bitrate = 320 - - [scrobbler] - enabled = true - username = dustinswan - ''; - }; - locate.enable = true; udisks2.enable = true; - printing.enable = true; + printing = { + enable = true; + drivers = [ pkgs.gutenprint pkgs.brlaser ]; + }; upower.enable = true; @@ -128,57 +97,33 @@ displayManager = { lightdm.enable = true; lightdm.background = "/home/dustinswan/Sync/Pictures/Wallpaper/green_squares.png"; - lightdm.autoLogin.user = "dustinswan"; - sessionCommands = '' - setxkbmap -option ctrl:nocaps -option compose:ralt - xcape -e 'Control_L=Escape' - xmodmap -e "keycode 96 = dead_greek dead_greek dead_greek dead_greek" - compton -b --inactive-opacity 0.90 - sh ~/dotfiles/logitech_linux_mouse.sh - xsetroot -solid black -cursor_name left_ptr - nitrogen --restore & - qsyncthingtray & - pasystray & - ''; + # sessionCommands = '' + # setxkbmap -option ctrl:nocaps -option compose:ralt + # xcape -e 'Control_L=Escape' + # xmodmap -e "keycode 96 = dead_greek dead_greek dead_greek dead_greek" + # compton -b --inactive-opacity 0.90 + # sh ~/dotfiles/logitech_linux_mouse.sh + # xsetroot -solid black -cursor_name left_ptr + # nitrogen --restore & + # qsyncthingtray & + # pasystray & + # ''; }; windowManager = { i3 = { enable = true; package = pkgs.i3-gaps; - extraPackages = with pkgs; [ - dmenu - i3status - i3lock - ]; }; default = "i3"; }; }; - syncthing = { - enable = true; - dataDir = "/home/dustinswan"; - user = "dustinswan"; - }; - - urxvtd.enable = true; - - emacs = { - enable = true; - defaultEditor = true; - }; - - ipfs = { - enable = true; - }; - synergy.server = { enable = true; screenName = "pc"; }; - }; hardware = { @@ -199,8 +144,6 @@ sound.enable = true; sound.mediaKeys.enable = true; - programs.fish.enable = true; - fonts = { enableFontDir = true; fonts = with pkgs; [ @@ -213,13 +156,15 @@ virtualisation.virtualbox.host.enable = true; + virtualisation.docker.enable = true; + users.users.dustinswan = { createHome = true; description = "Dustin Swan"; isNormalUser = true; - extraGroups = [ "wheel" "sound" "pulse" "audio" "networkmanager" "vboxusers" ]; + extraGroups = [ "wheel" "sound" "pulse" "audio" "networkmanager" "vboxusers" "docker" ]; uid = 1000; - shell = pkgs.fish; + shell = pkgs.zsh; }; environment.etc."synergy-server.conf" = { text = '' @@ -228,16 +173,18 @@ mac: end - section: aliases + section: links mac: - 192.168.1.2 + left = pc + pc: + right = mac end - section: links - pc: - left = mac - mac: - right = pc + section: options + keystroke(super+tilde) = switchInDirection(left) + keystroke(super+backspace) = switchInDirection(right) + mousebutton(6) = keystroke(WWWBack) + mousebutton(7) = keystroke(WWWForward) end ''; }; diff --git a/home.nix b/home.nix index f19e37e..de62217 100644 --- a/home.nix +++ b/home.nix @@ -132,7 +132,7 @@ enableAutosuggestions = true; oh-my-zsh = { enable = true; - plugins = [ "git" "sudo" ]; + plugins = [ "git" ]; theme = "refined"; }; shellAliases = { diff --git a/xmonad.hs b/xmonad.hs deleted file mode 100644 index ed1a4f9..0000000 --- a/xmonad.hs +++ /dev/null @@ -1,39 +0,0 @@ -module Main where - -import XMonad -import XMonad.Hooks.EwmhDesktops (ewmh) -import XMonad.Hooks.ManageDocks -import XMonad.Layout.Spacing -import XMonad.Util.EZConfig --- import System.Taffybar.Hooks.PagerHints (pagerHints) - -lightBlue = "#66aaff" - -main = xmonad $ docks $ ewmh $ defaultConfig - { terminal = "alacritty" - , modMask = mod4Mask - , workspaces = [ "α", "β", "γ", "δ", "ε"] - , borderWidth = 2 - , normalBorderColor = "#000000" - , focusedBorderColor = lightBlue - , layoutHook = avoidStruts $ spacingWithEdge 6 $ layoutHook defaultConfig - , startupHook = do - spawn "pkill polybar; polybar top &" - -- spawn "compton -cGb" - -- spawn "~/dotfiles/logitech_linux_mouse.sh" - -- spawn "xsetroot -solid black -cursor_name left_ptr" - -- spawn "feh --bg-fill ~/Sync/Pictures/Wallpaper/space2.jpg" - -- spawn "setxkbmap -option ctrl:nocaps -option compose:ralt" - -- spawn "xcape -e 'Control_L=Escape'" - -- spawn "qsyncthingtray" - -- spawn "xscreensaver" - } - `additionalKeysP` - [ ("M1-", spawn "rofi -show combi") - , ("M-p", spawn "rofi -show combi") - , ("", spawn "amixer set Master toggle") - , ("", spawn "amixer -q sset Master 5%-") - , ("", spawn "amixer -q sset Master 5%+") - , ("C-M-M1-b", spawn "qutebrowser") - , ("C-M-M1-e", spawn "emacsclient -c") - ]