chore(nixos): update configurations and add README

Also set wakatime project name for @hackclub High Seas and
for coding stats

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
This commit is contained in:
Andrei Jiroh Halili 2024-12-29 22:16:59 +08:00
parent 824366c5dd
commit 18b7c4e226
15 changed files with 101 additions and 28 deletions

View file

@ -0,0 +1,10 @@
{ config, pkgs, lib, ... }:
{
hardware.bluetooth.enable = true;
hardware.bluetooth.settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
}

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, pkgs, lib, ... }:
{
# Open ports in the firewall.
@ -8,14 +8,14 @@
networking.firewall.allowedUDPPortRanges = [
{ from = 1714; to = 1764; }
];
networking.firewall.allowTCPPorts = [
networking.firewall.allowedTCPPorts = [
22
80
443
3000
8000
];
networking.firewall.allowUDPPorts = [
networking.firewall.allowedUDPPorts = [
22
80
443

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, pkgs, lib, ... }:
{
# Enable the KDE Plasma Desktop Environment.

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, pkgs, lib, ... }:
{
# Set your time zone.

View file

@ -1,6 +1,6 @@
# This is the meta config file for nixpkgs and nix cli
{ ... }:
{ config, pkgs, lib, ... }:
{
# Adopted from https://fnordig.de/til/nix/home-manager-allow-unfree.html,

View file

@ -1,13 +1,13 @@
{ ... }:
{ config, pkgs, lib, ... }:
{
# Do a lot of systemd-resolved related chores
networking.nameservers = [
config.networking.nameservers = [
"45.90.28.0#c393f6.dns.nextdns.io"
"45.90.30.0#c393f6.dns.nextdns.io"
];
services.resolved = {
config.services.resolved = {
enable = true;
dnssec = "false"; # https://superuser.com/a/1493674
domains = [ "~." "fawn-cod.ts.net" ];

View file

@ -1,10 +1,10 @@
# To use this shared NixOS configuration for OpenSSH, just import this file
# on your NixOS configuration.
{...}:
{ config, pkgs, lib, ... }:
{
programs.openssh = {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";

View file

@ -2,12 +2,12 @@
# in NixOS, mostly on the side of the daemon and its related
# configurations.
{ ... }:
{ config, pkgs, lib, ... }:
{
services.tailscale = {
enable = true;
useRoutingFeatures = true;
useRoutingFeatures = "both";
openFirewall = true;
disableTaildrop = false;
extraDaemonFlags = [

View file

@ -1,4 +1,4 @@
{ pkgs, lib }:
{ pkgs, lib, ... }:
let
inherit (pkgs.stdenv) isDarwin isLinux isi686 isx86_64 isAarch32 isAarch64;