From 728940b490dfa29eb06fd5e7a9c56daf21045bc0 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 02:48:38 +1100 Subject: [PATCH 1/3] Move to unstable mangohud for steam --- nixos/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 91938ad..4ad5162 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -175,9 +175,9 @@ programs.steam = { enable = true; package = pkgs.steam.override { - extraPkgs = (pkgs: with pkgs; [ + extraPkgs = (pkgs: with pkgs; with unstable; [ gamemode - mangohud + unstable.mangohud # additional packages... # e.g. some games require python3 ]); From 5d33cecfe63aaa58472bc6d6973e4af9594c754b Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 02:49:22 +1100 Subject: [PATCH 2/3] Add a service for jellyfind-rpc (Disabled) --- nixos/services.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/services.nix b/nixos/services.nix index 8a43595..a81009b 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -8,6 +8,15 @@ { + systemd.services.jellyfin-rpc = { + enable = disable; + path = [ pkgs.jellyfin-rpc ]; + serviceConfig = { + User = "buymymojo"; + ExecStart = "${pkgs.nix}/bin/nix run nixpkgs#jellyfin-rpc"; + }; + }; + services = { openssh.enable = true; flatpak.enable = true; From 9e2914d0dc03be454063adc940a4f09d26a1b4aa Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 02:49:39 +1100 Subject: [PATCH 3/3] Format services.nix --- nixos/services.nix | 91 ++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 47 deletions(-) diff --git a/nixos/services.nix b/nixos/services.nix index a81009b..5385e8e 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -35,55 +35,52 @@ }; 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 + 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"; - # }; - # }; - # }; - # }; + # 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"; + # }; + # }; + # }; + # }; }; }