Commit Graph

73 Commits

Author SHA1 Message Date
e7d17df90a
chore: remove chaotic/nyx from inputs and cleanup hardware.graphics
* remove unused graphics extraPackages from desktop installation
* rename vaapiIntel to intel-vaapi-driver
* remove chaotic mesa opencl library

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-09 17:58:44 +05:30
de0f3ae50f
chore: remove unused comment for git module
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-09 17:57:50 +05:30
bea59a8f3c
chore: specify default bootloader as systemd-boot
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-09 17:57:07 +05:30
150b426119
chore: rekey all agenix secrets
just another routine rekey for security purposes.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-09 17:56:17 +05:30
98fbfc0590
feat: add smolboye mailserver setup
* add mailserver module based on simple-nixos-mailserver
* add smolboye server running on Hetzner Cloud
* add support for grub, make systemd-boot an optional default

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-09 17:54:43 +05:30
bc05090f5b
feat: add support for grub bootloader
We require this for setting up a VPS on Hetzner Cloud, since Hetzner uses
legacy BIOS boot for its instances.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-08 19:53:02 +05:30
9805ff5d94
chore: remove old, unused modules
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-08 19:51:43 +05:30
82b25755db
chore: remove unused library functions
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-08 01:20:31 +05:30
1362d9d5a7
chore: add backup for gitea service
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 22:29:19 +05:30
abb9050f0c
chore: remove default CSP and add CSP for immich
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 17:49:49 +05:30
116efaa3c7
chore: update netbird to 0.30.0
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 16:03:20 +05:30
fed120b28b
feat: add jellyfin-web overlay with intro-skipper-plugin support
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:08:12 +05:30
8e6c452854
fix: use builtin.readFile for cloudflare IPs and add sha256
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:03:58 +05:30
164acc1042
fix: use correct module options for fail2ban
* ignoreIPs -> ignoreIP
* Add settings block to each jail

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:03:01 +05:30
a9d7582fcf
chore: upgrade vuetorrent to 2.13.3
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:02:33 +05:30
16683be33e
fix: change disk blkid for bicboye
Caused a mishap at the storage level. Reformatted the disk and restored
the data.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:01:43 +05:30
6887ce0427
chore: replace vaapiIntel with intel-vaapi-driver
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:01:20 +05:30
a6805a4ddc
chore: upgrade default postgres to 16 and remove upgrade script
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-06 00:00:36 +05:30
9404b4e71d
chore: enable fail2ban on bicboye
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 21:01:54 +05:30
4cb83f945d
feat: add fail2ban setup for services
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 21:00:53 +05:30
12cf2f3701
chore: harden ssh security
* KbdInteractiveAuthentication: disable keyboard interactive-auth, since
  we solely rely on the SSH key for connection.
* PermitEmptyPasswords: disable empty passwords for SSH connection, again,
  since we use SSH keys.
* Protocol: Explicitly set the SSH protocol to 2, even though it is the
  default value.
* MaxAuthTries: Set auth tries to 3. This is to allow up to 3 keys to try
  connection.
* ChallengeResponseAuthentication: We do not require a challenge-response
  setup.
* AllowTcpForwarding: Allows access to locally-running ports without having
  to expose them. Since all auth methods are disabled, we can enable this.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 20:53:47 +05:30
d4dc50237a
feat: create module for nginx and prepare for fail2ban setup
* create new module for nginx
* setup cloudflare real_ip_header forwarding for fail2ban setup
* add hsts, improve qualys score

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 20:52:11 +05:30
48752f56b1
fix: use buildGoModule for netbird overlay
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 20:51:41 +05:30
74310f5e34
feat: replace perl activation script with rust-based implementation
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 20:51:00 +05:30
3efee8e004
chore: update flake.lock
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-10-05 20:50:32 +05:30
653ee4e3b6
fix: use correct module name for backups
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 12:24:35 +05:30
e6068d34d5
fix: use correct variable for restic secrets
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 12:11:48 +05:30
87776a4867
chore: update flake.lock
* remove nixpkgs-immich

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 12:11:21 +05:30
d532eda109
feat: add service for postgresql with upgrade and backup
* replace per-app postgresql configuration with a single, global postgres
setup
* add backup configuration to backup using restic
* add cluster upgrade script based on the NixOS Manual:
  https://nixos.org/manual/nixos/stable/#module-services-postgres-upgrading

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 12:01:57 +05:30
1a54eab3fb
fix: pass lib to backup module and fixup backup configuration
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 11:16:19 +05:30
104d4b6c8d
chore: move lanzaboote to system module and remove nixpkgs-immich input
* lanzaboote is needed to evaluate nix configuration, even if it's not used
in the system.
* removed nixpkgs-immich since nixpkgs now has immich service

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 11:14:57 +05:30
40d4792bc8
feat: enable restic backup service for vaultwarden and paperless
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-30 01:17:54 +05:30
6aefe6d33b
chore: update flake.lock
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:37:15 +05:30
d32004c45a
feat: add module for immich service
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:32:15 +05:30
d3fd3e2c57
fix: enable firewall on bicboye
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:28:13 +05:30
965aa6ecaf
chore: reduce boot configuration limit to 5
Setting it to 10 does not play well with srvos, since it uses lib.mkDefault
to set it to 10 as well. And anyways, we don't need 10 generations to show
up during the boot menu.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:26:04 +05:30
5b2cea38f9
feat: add module for ntfy service
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:24:14 +05:30
fe14cb6753
chore: unset iommu set to soft in kernelParams
This issue has been resolved with b65a4dbfcb

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:06:15 +05:30
572982dc5f
chore: exclude additional kde packages
Added plasma-browser-integration to excludedPackages list.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-29 23:05:30 +05:30
92a41608af
flake: add hyprland input as comment
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:52:12 +05:30
8dc7bf18d3
chore: remove system76-scheduler and fix resume
* system76-scheduler was unused. Or it did not really make much of a difference
  over the default scheduler.
* added `iommu=soft` to kernel param to make the ssd work fine after suspend.
  This might be related to the pcie_aspm policy we had set before. I need to test
  if removing the aspm policy has fixed this issue.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:48:19 +05:30
ff91127e85
chore: disable check for updates in wezterm
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:43:29 +05:30
3e7c636902
chore: add hyprland cachix substituters
It's 2024, who wants to build software on their own systems?

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:42:22 +05:30
b65a4dbfcb
chore: remove pcie_aspm policy
Umm, this is a hard one as to why it was added in the first place. I think
someone had told me about it, but it seems like it's not really required, and
not recommended to be run on systems that do not support it by default.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:41:01 +05:30
57ced606da
chore: set buildGoModule to go-1.23 for netbird
New netbird version requires go-1.23, and the patch to make
buildGoModules default to 1.23 is not yet in unstable

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:38:09 +05:30
bd68ccda65
feat: add hyprland, gnome configurations and changes to default
* add gnome and hyprland base setup
* remove unused intel-ocl from graphics
* move xdg-portal configuration to desktop environments

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:34:09 +05:30
e3b7f53837
chore: make firefox changes
* remove gnome theme configuration
* allow firefox to use document fonts intead of system fonts

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:29:45 +05:30
003c30efa3
chore: update flake.lock
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 16:45:47 +05:30
dfd6c1d42b
chore: reorganize desktop environment configuration
Cleanup existing desktop environment configuration to allow adding more
desktop environments with shared configs.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 16:45:32 +05:30
66e7dab5aa
chore: update netbird to 0.29.4
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 15:06:11 +05:30