diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-03-03 23:15:35 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-03-03 23:15:35 +0530 |
| commit | 6094a9fa1548a1b6ca510d0707f1d317121f75ea (patch) | |
| tree | 0610ae5a52e2c55268e410b15622352ff27350c0 /config | |
| parent | e160c24728bad4076f148b0a31de92f88df365d8 (diff) | |
| download | nixos-config-6094a9fa1548a1b6ca510d0707f1d317121f75ea.tar.gz nixos-config-6094a9fa1548a1b6ca510d0707f1d317121f75ea.zip | |
config sync
Diffstat (limited to '')
| m--------- | config/nvim | 0 | ||||
| -rw-r--r-- | config/qutebrowser/config.py | 20 | ||||
| -rw-r--r-- | config/qutebrowser/quickmarks | 5 | ||||
| -rw-r--r-- | configuration.nix | 27 |
4 files changed, 40 insertions, 12 deletions
diff --git a/config/nvim b/config/nvim -Subproject 2d3c26c0b4d116f3e5690660f90de36706c2e7d +Subproject c410b8783002949856b47053b183d937c6f494e diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index a6d7ef6..ad412f2 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -16,12 +16,12 @@ localleader = ' ' config.load_autoconfig() # Helper Functions {{{ -# def toggle_stylesheets(stylesheets): - # return 'config-cycle content.user_stylesheets \'' \ - # + json.dumps(c.content.user_stylesheets) \ - # + '\' \'' \ - # + json.dumps(c.content.user_stylesheets + stylesheets) \ - # + '\'' +def toggle_stylesheets(stylesheets): + return 'config-cycle content.user_stylesheets \'' \ + + json.dumps(c.content.user_stylesheets) \ + + '\' \'' \ + + json.dumps(c.content.user_stylesheets + stylesheets) \ + + '\'' def bind(key, command, mode): # noqa: E302 """Bind key to command in mode.""" @@ -72,6 +72,7 @@ c.content.autoplay = True c.url.open_base_url = True c.scrolling.bar = 'always' +c.tabs.mousewheel_switching = False c.scrolling.smooth = True c.keyhint.delay = 250 c.input.partial_timeout = 0 @@ -105,7 +106,10 @@ imap('<Ctrl-e>', 'edit-text') nmap('<Ctrl-e>', 'edit-text') nmap(localleader+'e', 'edit-url') -nmap('<Ctrl-p>', 'enter-mode passthrough') +# Pass through actions +nmap('<Ctrl-p>', 'mode-enter passthrough') +pmap('<Ctrl-j>', 'tab-next') +pmap('<Ctrl-k>', 'tab-prev') # pmap('<Shift-Escape>', 'enter-mode normal') # Default nunmap("+") @@ -144,7 +148,7 @@ c.content.user_stylesheets = [ ] # Dark mode -# c.aliases['toggle-darkmode'] = toggle_stylesheets(['styles/dark.css']) +c.aliases['toggle-darkmode'] = toggle_stylesheets(['styles/dark.css']) nmap(localleader + 'td', ':toggle-darkmode') # }}} diff --git a/config/qutebrowser/quickmarks b/config/qutebrowser/quickmarks index fcddad6..8ac3fb0 100644 --- a/config/qutebrowser/quickmarks +++ b/config/qutebrowser/quickmarks @@ -1,4 +1,3 @@ Whatsapp https://web.whatsapp.com/ -Gmail:personal https://mail.google.com/mail/u/0/#inbox -Gmail:work https://mail.google.com/mail/u/1/#inbox -Gmail:colabra https://mail.google.com/mail/u/3 +Gmail:personal https://mail.google.com/mail/u/0 +Gmail:colabra https://mail.google.com/mail/u/1 diff --git a/configuration.nix b/configuration.nix index bc3c467..c71508d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -27,6 +27,31 @@ in enable = true; }; + services.borgbackup = + let + homeDir = config.users.users.imsohexy.home; + user = config.users.users.imsohexy.name; + in + { + jobs = { + testBkup = { + paths = "${homeDir}/dump/elm-worker-tmp"; + repo = "${homeDir}/dump/backups"; + compression = "none"; + startAt = "weekly"; + user = user; + group = "users"; + encryption = { + mode = "none"; + }; + # encryption = { + # mode = "repokey"; + # passCommand = "pass show BorgBackup/imsohexy"; + # }; + }; + }; + }; + hardware.bluetooth.enable = false; #hardware.bluetooth.package = pkgs.bluezFull; @@ -109,7 +134,7 @@ in noto-fonts-emoji ]; - nix.autoOptimiseStore = true; + nix.settings.auto-optimise-store = true; nix.gc = { automatic = true; dates = "weekly"; |
