Commit graph

2074 commits

Author SHA1 Message Date
Henrik Lissner fd4932ea88 Use unstable neovim 2021-02-05 18:31:36 -05:00
Henrik Lissner deb071d556 qutebrowser: mitigate flash of white between page loads 2021-02-05 18:31:13 -05:00
Henrik Lissner 299257cfd4 Upgrade to qutebrowser 2.0.1
+ Refactor config (again).
+ Accommodate new Brave adblocker.
+ Polish UI settings (overlay scrollbar)
+ Remove outdated userstyles (some of these sites offer dark modes now)
2021-02-02 04:08:01 -05:00
Henrik Lissner 9f856bbe47 Simplify qutebrowser config 2021-02-02 04:08:01 -05:00
Henrik Lissner 895a2daf92 system.stateVersion = 21.03 2021-02-02 04:08:01 -05:00
Henrik Lissner be5d10a008 Move hw modules cfg to hardware-configuration.nix's 2021-02-02 04:08:01 -05:00
Henrik Lissner 930312b650 hosts/kuro: remove ZFS drives & support
I've moved this storage to an offsite NAS, so I don't need this on kuro.
2021-02-02 04:07:58 -05:00
Henrik Lissner ca5876dba2 hosts/{kuro,shiro}: add NFS share 2021-02-02 00:55:34 -05:00
Henrik Lissner 526dc19eeb Fix & redesign qutebrowser config 2021-02-02 00:53:30 -05:00
Henrik Lissner b7d49362a8 gitea.lfs.enable = true 2021-02-01 19:55:05 -05:00
Henrik Lissner e0c0006554 hosts/ao: gitea.disableRegistration = true
And remove redundant config.
2021-02-01 19:50:55 -05:00
Henrik Lissner ffb097ce0c fail2ban: move maxretry default to jails
Throws a "option 'maxretry' in section 'DEFAULT' already exists" error
on startup otherwise.
2021-01-31 18:43:29 -05:00
Henrik Lissner 25a87f24d9 Reduce gitea logging & disable basic auth for api
- Disabled SQL logs because they quickly fill up the logs and aren't
  useful, currently. Also, smaller logs = easier job for fail2ban.
- Disabled basic auth because it's the least secure method of
  interacting with the gitea API. Tokens/oauth are better.
2021-01-31 18:39:01 -05:00
Henrik Lissner c32a1846e0 Tweak fail2ban defaults 2021-01-31 18:39:01 -05:00
Henrik Lissner 68fa845a73 Add comments & remove redundant config
IS_TLS_ENABLED = true is implied if HOST's port is 465
2021-01-31 18:20:17 -05:00
Henrik Lissner 78d85018b0 Fix redundant nginx directive
And typo. Should be 128k, not 1k!
2021-01-30 17:10:25 -05:00
Henrik Lissner fe4a34a9e3 Harden nginx defaults 2021-01-30 17:07:52 -05:00
Henrik Lissner 2da00f3ad5 fail2ban: speed up gitea/bitwarden jails
These services log to syslog, so a log file doesn't exist, meaning
fail2ban must scan the whole journal to seek authentication failure
logs, which is slow! By specifying a journalmatch, it significantly
narrows the scope of their searches.
2021-01-30 06:04:38 -05:00
Henrik Lissner 0fb9406b75 Add bind package to default global packages 2021-01-30 04:52:16 -05:00
Henrik Lissner d380e06cba Make fail2ban defaults less forgiving 2021-01-30 04:52:13 -05:00
Henrik Lissner 24d5a426f5 Clean up modules/desktop/media/daw.nix 2021-01-30 02:39:00 -05:00
Henrik Lissner af525f2514 bin/hey: forward -iApeq to nix-env 2021-01-29 23:09:17 -05:00
Henrik Lissner 622121d7da Correct clone path in README 2021-01-29 14:23:18 -05:00
Henrik Lissner 2c3b2b1294 hosts/kuro: remove asic kernel module
No longer needed now that we're on 5.10 (with built in support for my
2.5G network card).
2021-01-29 14:22:52 -05:00
Henrik Lissner a7e7b1703a hosts/{ao,shiro}: tweak cpu governors 2021-01-29 14:07:05 -05:00
Henrik Lissner 1455114778 hosts/shiro: update module list 2021-01-26 23:00:01 -05:00
Henrik Lissner f88552ad64 Add modules/services/syncthing.nix
Generalizes the module so it's not so Henrik-centric. I know,
blasphemous, but the world only sometimes revolves around me.

Also, adds a new, much simpler config for syncthing.
2021-01-26 23:00:01 -05:00
Henrik Lissner 41ac027216 Add modules/backup.nix
A rudimentary backup and restoration system.
2021-01-26 23:00:01 -05:00
Henrik Lissner 5443df10b9 Bump 2021-01-26 22:58:47 -05:00
Henrik Lissner 8fd332dcc4 Add nofail option to zfs filesystems
So they don't prevent startup when zfs fails to mount non-essential
drives, like it currently does with 2.0.1 for some reason.
2021-01-26 22:58:47 -05:00
Henrik Lissner e35f0cff50 Upgrade to 5.10 kernel 2021-01-26 22:58:47 -05:00
Henrik Lissner 24a93a756b bin/hey: fallback to hey-X binary
Allows for extensions.
2021-01-26 22:58:47 -05:00
Henrik Lissner 4a57fc7d2a Remove -h/--help
Redundant with h|help. Instead, we're using -h/--host for setting target
hostname.
2021-01-26 22:58:47 -05:00
Henrik Lissner a1c46f27ce Update shell.nix to reflect recent changes 2021-01-26 22:58:47 -05:00
Henrik Lissner c805e9bedc Don't sign commits anymore
There's not much point to it. It isn't foolproof and only slows down the
process.
2021-01-26 22:58:47 -05:00
Henrik Lissner 64bec0f415 Generalize bin/hey
It'll operate out of /etc/nixos or /etc/dotfiles, rather than where the
script lives. This allows it to be used for flakes instantiated from our
templates.
2021-01-26 22:58:47 -05:00
Henrik Lissner abf2aeb689 bin/hey gc: clean up & delete leftover secrets 2021-01-26 22:58:47 -05:00
Henrik Lissner 3d3497d9e9 bin/hey push: clean up/stop redundant sudo prompts 2021-01-26 22:58:47 -05:00
Henrik Lissner dd62442c09 Install ripgrep in zsh module 2021-01-26 22:58:47 -05:00
Henrik Lissner d0309c51a0 hosts/ao: rewrite & use agenix 2021-01-26 22:58:47 -05:00
Henrik Lissner d1e987c4ba hosts/kuro: set default browser to brave
Testing the waters. Firefox's occasional crashes and freezes are a
bother.
2021-01-26 22:58:47 -05:00
Henrik Lissner be343218e9 Add modules/desktop/browsers/brave.nix 2021-01-26 22:58:47 -05:00
Henrik Lissner 07f82da2a2 bin/hey: revise comments & refactor 2021-01-26 22:58:47 -05:00
Henrik Lissner 82ee5bef6a bin/hey: add --option pure-eval no
There are cases where impure evaluate is necessary or unavoidable.
2021-01-26 22:58:47 -05:00
Henrik Lissner 5ceb72ddee Remove services.gitea.disableRegistration default
This can be done in the host file, once its ready to disable
registration.
2021-01-26 22:58:47 -05:00
Henrik Lissner e703bd374d New ssh pubkey & redesign 'hey push'
Remote rebuilding requires root access, but I don't want root ssh
access (even by ssh key) to be a permanent fixture of my servers.  So
I've changed 'hey push' to copy my remote user's `authorized_keys` to
/root/.ssh/ temporarily, until the rebuild is complete. It is removed
afterwards.

This should be done non-destructively in the future, but it suits my
needs for now.
2021-01-26 22:56:50 -05:00
Henrik Lissner 69d730f89d Add agenix
Indexes all *.age files in $HOST/secrets/
2021-01-22 20:01:55 -05:00
Henrik Lissner c92199848c Add flake templates and defaultApp
defaultApp lets you use bin/hey via nix run.
2021-01-22 20:01:55 -05:00
Henrik Lissner a1ab0811bb Refactor 2021-01-20 01:28:30 -05:00
Henrik Lissner 0152e1a95f Bump emacs-overlay, nixos-hardware, nixpkgs-unstable 2021-01-20 01:04:02 -05:00