mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-05-18 19:43:07 +00:00
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:
parent
824366c5dd
commit
18b7c4e226
15 changed files with 101 additions and 28 deletions
10
.config/nixos/shared/bluetooth.nix
Normal file
10
.config/nixos/shared/bluetooth.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.settings = {
|
||||
General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Set your time zone.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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" ];
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib }:
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs.stdenv) isDarwin isLinux isi686 isx86_64 isAarch32 isAarch64;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue