My NixOS and Home Manager configurations
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

set up moonshine for game streaming

quasigod 34eb03ca 06cd4baf

+31 -25
+1
.gitignore
··· 3 3 .devenv* 4 4 .direnv* 5 5 *.qcow2 6 + /.agent-shell/
+6 -5
flake.lock
··· 911 911 "pkgs-by-name-for-flake-parts": "pkgs-by-name-for-flake-parts" 912 912 }, 913 913 "locked": { 914 - "lastModified": 1774399465, 915 - "narHash": "sha256-hmAN2xQLLmG6aBiDSHZPHHrDqmxx3R1oxvWYln9jffk=", 916 - "ref": "refs/heads/main", 917 - "rev": "f57463f153abc83fc31bf9bdc016273ad1015d3c", 918 - "revCount": 10, 914 + "lastModified": 1776289364, 915 + "narHash": "sha256-myn0Y4NQfmWRfRU64vwxQ/6HG087tRNodUvsSX1Pxwg=", 916 + "ref": "moonshine", 917 + "rev": "6867410e25e5366bc28924ea1af62841fccb2111", 918 + "revCount": 11, 919 919 "type": "git", 920 920 "url": "https://tangled.org/quasigod.xyz/nur" 921 921 }, 922 922 "original": { 923 + "ref": "moonshine", 923 924 "type": "git", 924 925 "url": "https://tangled.org/quasigod.xyz/nur" 925 926 }
+1 -1
flake.nix
··· 25 25 }; 26 26 27 27 nur = { 28 - url = "git+https://tangled.org/quasigod.xyz/nur"; 28 + url = "git+https://tangled.org/quasigod.xyz/nur?ref=moonshine"; 29 29 inputs.nixpkgs.follows = "nixpkgs"; 30 30 inputs.flake-parts.follows = "flake-parts"; 31 31 };
+22 -19
modules/gaming.nix
··· 1 - { 2 - styx, 3 - inputs, 4 - den, 5 - ... 6 - }: 1 + { styx, inputs, ... }: 7 2 { 8 3 styx.gaming.provides = { 9 4 min = ··· 47 42 }; 48 43 }; 49 44 50 - max = den.lib.parametric { 45 + max = { 51 46 includes = [ 52 47 styx.gaming._.replays 53 48 styx.gaming._.min ··· 61 56 inputs.nix-gaming.nixosModules.pipewireLowLatency 62 57 ]; 63 58 hardware.opentabletdriver.enable = true; 64 - services = { 65 - input-remapper.enable = true; 66 - pipewire.lowLatency = { 67 - enable = true; 68 - quantum = 512; # apparently my cpu cant handle any lower 69 - }; 59 + services.pipewire.lowLatency = { 60 + enable = true; 61 + quantum = 512; # apparently my cpu cant handle any lower 70 62 }; 71 - programs = { 72 - steam = { 73 - platformOptimizations.enable = true; 74 - remotePlay.openFirewall = true; 75 - localNetworkGameTransfers.openFirewall = true; 76 - }; 63 + programs.steam = { 64 + platformOptimizations.enable = true; 65 + remotePlay.openFirewall = true; 66 + localNetworkGameTransfers.openFirewall = true; 77 67 }; 78 68 environment.systemPackages = with pkgs; [ 79 69 # Utility ··· 91 81 ]; 92 82 }; 93 83 }; 84 + 85 + streaming.nixos = 86 + { lib, config, ... }: 87 + { 88 + imports = [ inputs.nur.nixosModules.moonshine ]; 89 + # systemd.user.services.moonshine.environment.RUST_LOG = lib.mkForce "debug"; 90 + services.moonshine = { 91 + enable = true; 92 + openFirewall = true; 93 + settings = null; 94 + paths = map (p: "${p}/bin") config.environment.profiles; 95 + }; 96 + }; 94 97 95 98 replays.homeManager = 96 99 { pkgs, lib, ... }:
+1
modules/hosts/hades/default.nix
··· 35 35 ai._.ollama 36 36 apps._.zsa 37 37 virt._.waydroid 38 + gaming._.streaming 38 39 ]; 39 40 40 41 nixos =