From 673a8eaecbf2ac95086779ab1d9201f1fb5ada99 Mon Sep 17 00:00:00 2001 From: cosmeak Date: Fri, 18 Sep 2026 14:45:34 +0200 Subject: [PATCH] feat: game streaming from loki to njord --- configurations/loki/default.nix | 9 +++++ configurations/njord/default.nix | 4 +- flake.lock | 64 ++++++++++++++++---------------- 3 files changed, 43 insertions(+), 34 deletions(-) diff --git a/configurations/loki/default.nix b/configurations/loki/default.nix index 43f4e2d..838a307 100644 --- a/configurations/loki/default.nix +++ b/configurations/loki/default.nix @@ -60,6 +60,14 @@ programs.firefox.enable = true; programs.firefox.package = pkgs.librewolf; + # -- Game Streaming -- + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; + # -- Additionnal packages -- environment.systemPackages = with pkgs; [ gnome-tweaks @@ -73,6 +81,7 @@ extraGroups = [ "wheel" "networkmanager" + "uinput" ]; }; diff --git a/configurations/njord/default.nix b/configurations/njord/default.nix index 0e35708..0068709 100644 --- a/configurations/njord/default.nix +++ b/configurations/njord/default.nix @@ -45,12 +45,12 @@ environment.systemPackages = with pkgs; [ alt-tab-macos # alt tab like windows on macos bat # Replacement for the `cat` cmd + librewolf # Browser + moonlight-qt # Game streaming client for sunshine prismlauncher # Minecraft launcher starship # Customizable shell prompt stats # System monitoring displayed in macos top bar zoxide # Faster replacement of the `cd` cmd - - librewolf # Browser ]; # -- Nix -- diff --git a/flake.lock b/flake.lock index a45701f..2aa305a 100644 --- a/flake.lock +++ b/flake.lock @@ -26,11 +26,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1787559586, - "narHash": "sha256-onL0VLf9vPllmT0H/OlURIU5r5t5WIEl7t4tVNKT0Nw=", + "lastModified": 1788450739, + "narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "9d0d87172c374f89da73c1cfe6d81ae62feac1f1", + "rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993", "type": "github" }, "original": { @@ -44,11 +44,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1787500880, - "narHash": "sha256-UrAlku7KST0DT+j1bdVGYI8tCz23PWL88uGMer3IZ2U=", + "lastModified": 1789234255, + "narHash": "sha256-0nvWuRbgL4GEKpR8Y4wsB3kmsVgyd0cW8kLHc2BqlTc=", "owner": "feel-co", "repo": "hjem", - "rev": "d248f0e4f7abd6e1f0eb9ace778dd7928481943e", + "rev": "e5e30b4320a8cbcd6cdfc65f044763669a8f0363", "type": "github" }, "original": { @@ -62,11 +62,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1787797243, - "narHash": "sha256-8+Q7NOB7RPajRjA4pbCDLzqH+MTjnG9x6LUPLfL2joA=", + "lastModified": 1789430117, + "narHash": "sha256-t+U1mijItLJ64xZOifpfQ17kpAL73nU7pDI48ScacVc=", "owner": "nix-community", "repo": "home-manager", - "rev": "99c9ec63390f1d8c14d95d9e8b17cc29cfbd4e11", + "rev": "cda90fd8838825c689fde9d3f3b4e937937790df", "type": "github" }, "original": { @@ -79,11 +79,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1787144466, - "narHash": "sha256-HHfv2/HkNSKbbSyU9iD/g8lbP6r4tl33sSw1W4rXCk0=", + "lastModified": 1789417814, + "narHash": "sha256-xV9fcqtH6jJLVBF3ocqBBwZkPKEke+BujhEwT4Ye9Tc=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "0471accf8d0a8210b31d947497d179ecc99e0021", + "rev": "d40fd26f323c898b0c195d41aa5efadd85f57832", "type": "github" }, "original": { @@ -95,24 +95,24 @@ }, "nixpkgs": { "locked": { - "lastModified": 1785454630, - "narHash": "sha256-Lr/ImHlbXabw7KPWfXWY4kkiiHb24PkmBZVVIm28V/c=", - "rev": "1559d3daa3ecc813a650b79375ea61b6741b8746", + "lastModified": 1789006805, + "narHash": "sha256-q+GdZ3yq4Y2LXHRK0vKTM32Hwy7RCgUgy+hjwZLI5pY=", + "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1044798.1559d3daa3ec/nixexprs.tar.xz?lastModified=1785454630&rev=1559d3daa3ecc813a650b79375ea61b6741b8746" + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1070770.8ce4ef6cb6f8/nixexprs.tar.zst?lastModified=1789006805&rev=8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe" }, "original": { "type": "tarball", - "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" + "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst" } }, "nixpkgs-darwin": { "locked": { - "lastModified": 1787866200, - "narHash": "sha256-5+H0XN+maMdJGuYB3GW7voz0RQXJkaVEVn4hBBo4uo4=", + "lastModified": 1789155820, + "narHash": "sha256-cTHZTeYRV42p62ss3ZEFnBXrW3WpLgDpYWYyat4V2b8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "df024a6a9638a914a3d0c19b6ee386034b8913fb", + "rev": "8029b6c369415ee1ef02a86f352806348f104db9", "type": "github" }, "original": { @@ -124,11 +124,11 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1785031560, - "narHash": "sha256-OmshNvn2vupOFpYinLUu+1Dnpu4n7Q5N3ggGVNHpkUI=", + "lastModified": 1788057806, + "narHash": "sha256-DTQSMxzDWmT0zhguthvegnVkn7CFqGCv4IHCzk5ZUpM=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "0e79af5e3d4dcfcd676ab5ba3f95d2e3352e078c", + "rev": "596e2e3940e09b2abbeb03f75fa1828c57fcd72c", "type": "github" }, "original": { @@ -139,11 +139,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1787814960, - "narHash": "sha256-PYZq1qzCJXC2zGI0mH07vrZBsw6DRBAOX0jN1pPtqOQ=", + "lastModified": 1789370336, + "narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c27cdad491a991b11ed731760aa2ef8db0cb0410", + "rev": "c7def046b9a883d46974757852106483d741586f", "type": "github" }, "original": { @@ -155,11 +155,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1787209939, - "narHash": "sha256-WvvHR4kSQLAbtouMC/ruZ5UpLwlUcY3K4FAllMN+yGk=", + "lastModified": 1788865024, + "narHash": "sha256-3YkAzvtt4LoE11IcBDzPshIF3fJ0aIoILqE7dAg8CLI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "391b592eb44808b3bd0cb80bb71b63a5a118b8bb", + "rev": "422d1ae605d7fcd9896412b37dc065c456c0eefb", "type": "github" }, "original": { @@ -184,11 +184,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1787753485, - "narHash": "sha256-BZWCi9ZRJiARTuKTbbtvFTj7t1TK4G3UEckT3HyNfRg=", + "lastModified": 1789344334, + "narHash": "sha256-vdhpDJ3Lr24lkZ+fDCjmBRRtw9/vcSzkqGJOJyF5h2U=", "owner": "nixos", "repo": "nixpkgs", - "rev": "062346a6d85bc4b49dfaa61c986e9c5be21217d1", + "rev": "c3eea5b2156db11c7eeeada3dc737711255b253e", "type": "github" }, "original": { -- 2.51.2