tweak: hades host config

This commit is contained in:
serenity-F 2026-09-23 19:51:48 +10:00
parent 19cdb75fb4
commit addc1671cb
No known key found for this signature in database
4 changed files with 98 additions and 10 deletions

View file

@ -12,6 +12,22 @@
# for home manager functionality
imports = [ inputs.home-manager.nixosModules.home-manager ];
networking.firewall = {
allowedTCPPorts = [
# fileshare
2234 # nicotine/soulseek
8384 # syncthing
8096 # jellyfin http
8920 # jellyfin https
];
allowedUDPPorts = [
# fileshare
2234 # nicotine/soulseek
8384 # syncthing
7359 # jellyfin client discovery
];
};
home-manager.users.sernity = {
# alternative youtube frontend

View file

@ -0,0 +1,53 @@
{ self, inputs, ... }:
{
# network proxy module declaration
flake.nixosModules.netproxy =
{
inputs,
...
}:
{
# encrypts your dns requests to aid in online privacy
services.dnscrypt-proxy = {
enable = true;
settings = {
ipv6_servers = true;
require_dnssec = true;
sources.public-resolver = {
# cache and keyfile for verification
cache_file = "var/lib/dnscrypt-proxy2/public-resolvers.md";
minisign_key = "";
# urls to get resolver addresses from
urls = [
"https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
];
};
# dns resolver addresses to use
server_names = [
"cs-sydney"
"cs-singapore"
"mullvad-doh"
"mullvad-adblock-doh"
"adfilter-syd"
"adfilter-syd-ipv6"
"userspace-australia"
"userspace-australia-ipv6"
];
};
};
# tor/socks ?
}
}

View file

@ -18,6 +18,19 @@
# specify kernel to use
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
# bootloader settings
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# supported filesystems at boot
boot.supportedFilesystems = [
"vfat"
"ext4"
#"ntfs"
];
# enable printing support
services.printing.enable = true;
@ -30,18 +43,17 @@
# other packages to include
environment.systemPackages = with pkgs; [
# tools and utilities
git
helix
# packages for hades peripherals
input-remapper
razergenie
openrazer-daemon
openrgb-with-all-pluginsi
#input-remapper
#razergenie
#openrazer-daemon
#openrgb-with-all-plugins
];
# peripherals for hades
hardware.ckb-next.enable = true;
# amd radeon gpu drivers and software
# https://nixos.wiki/wiki/AMD_GPU
boot = {

View file

@ -1,6 +1,7 @@
{ ... }:
{
# hardware module declaration
flake.nixosModules.hadesHardware =
@ -36,8 +37,13 @@
boot.initrd.kernelModules = [ "amdgpu" ];
# luks device mapping
boot.initrd.luks.devices."luks-35440a88-293e-455b-a018-ee1086b07321".device =
"/dev/disk/by-uuid/35440a88-293e-455b-a018-ee1086b07321"
boot.initrd.luks.devices."luks-35440a88-293e-455b-a018-ee1086b07321" = {
device = "/dev/disk/by-uuid/35440a88-293e-455b-a018-ee1086b07321"
};
boot.initrd.luks.devices."luks-55f7d546-fac9-4ea0-a21e-4c50ecc0d67d" = {
device = "/dev/disk/by-uuid/55f7d546-fac9-4ea0-a21e-4c50ecc0d67d"
};
# root partition
fileSystems."/" = {
@ -66,4 +72,5 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}