Compare commits

...

4 commits

Author SHA1 Message Date
BuyMyMojo
b1ed19a6db
Add unrar for rar support in ark & ser mangohud to globally on 2025-03-25 22:37:31 +11:00
BuyMyMojo
f71ecde53c
Fix syncthing useer and group 2025-03-25 22:36:57 +11:00
BuyMyMojo
0922964b5f
Fix syncthing path lol 2025-03-25 10:20:58 +11:00
BuyMyMojo
aa22049e91
Move services into their own file and enbale syncthing 2025-03-25 10:18:01 +11:00
4 changed files with 88 additions and 55 deletions

View file

@ -26,10 +26,7 @@
inputs.ucodenix.nixosModules.default
];
services.ucodenix = {
enable = true;
cpuModelId = "00A20F12"; # AMD 5900X
};
# Use the latest linux Kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
@ -184,6 +181,7 @@
fzf
nixfmt-rfc-style
dwarfs
unrar
wineWowPackages.stable
winetricks
@ -266,16 +264,7 @@
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.flatpak.enable = true;
services.pcscd.enable = true;
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs";
@ -290,46 +279,6 @@
# Or disable the firewall altogether.
networking.firewall.enable = false;
# services.blocky = {
# enable = true;
# settings = {
# ports.dns = 53; # Port for incoming DNS Queries.
# upstreams.groups.default = [
# "https://one.one.one.one/dns-query" # Using Cloudflare's DNS over HTTPS server for resolving queries.
# ];
# # For initially solving DoH/DoT Requests when no system Resolver is available.
# bootstrapDns = {
# upstream = "https://one.one.one.one/dns-query";
# ips = [ "1.1.1.1" "1.0.0.1" ];
# };
# #Enable Blocking of certian domains.
# blocking = {
# blackLists = {
# #Adblocking
# ads = [
# "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
# "https://adaway.org/hosts.txt"
# "https://v.firebog.net/hosts/AdguardDNS.txt"
# ];
# #Another filter for blocking adult sites
# adult = ["https://blocklistproject.github.io/Lists/porn.txt"];
# #You can add additional categories
# };
# #Configure what block categories are used
# clientGroupsBlock = {
# default = [ "ads" ];
# # kids-ipad = ["ads" "adult"];
# };
# };
# customDNS = {
# customTTL = "1h";
# mapping = {
# "upload.aria.coffee" = "192.168.20.2";
# };
# };
# };
# };
networking.hosts = {
"192.168.20.2" = [
"upload.aria.coffee"
@ -359,7 +308,10 @@
environment.sessionVariables = {
# === Prefer RADV driver ===
AMD_VULKAN_ICD = "RADV";
FLAKE = "/home/buymymojo/etc/nixos/";
MANGOHUD = "1";
};
# This value determines the NixOS release from which the default

View file

@ -34,6 +34,7 @@
};
modules = [
./configuration.nix
./services.nix
];
};

80
nixos/services.nix Normal file
View file

@ -0,0 +1,80 @@
{
config,
pkgs,
unstable,
inputs,
...
}:
{
services = {
openssh.enable = true;
flatpak.enable = true;
pcscd.enable = true;
sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
ucodenix = {
enable = true;
# cpuModelId = "00A20F12"; # AMD 5900X
};
syncthing = {
enable = true;
group = "users";
user = "buymymojo";
dataDir = "/home/buymymojo/Documents/Syncthing"; # Default folder for new synced folders
configDir = "/home/buymymojo/Documents/.config/syncthing"; # Folder for Syncthing's settings and keys
};
# services.blocky = {
# enable = true;
# settings = {
# ports.dns = 53; # Port for incoming DNS Queries.
# upstreams.groups.default = [
# "https://one.one.one.one/dns-query" # Using Cloudflare's DNS over HTTPS server for resolving queries.
# ];
# # For initially solving DoH/DoT Requests when no system Resolver is available.
# bootstrapDns = {
# upstream = "https://one.one.one.one/dns-query";
# ips = [ "1.1.1.1" "1.0.0.1" ];
# };
# #Enable Blocking of certian domains.
# blocking = {
# blackLists = {
# #Adblocking
# ads = [
# "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
# "https://adaway.org/hosts.txt"
# "https://v.firebog.net/hosts/AdguardDNS.txt"
# ];
# #Another filter for blocking adult sites
# adult = ["https://blocklistproject.github.io/Lists/porn.txt"];
# #You can add additional categories
# };
# #Configure what block categories are used
# clientGroupsBlock = {
# default = [ "ads" ];
# # kids-ipad = ["ads" "adult"];
# };
# };
# customDNS = {
# customTTL = "1h";
# mapping = {
# "upload.aria.coffee" = "192.168.20.2";
# };
# };
# };
# };
};
}