diff --git a/flake.lock b/flake.lock index 15d5d76..079fce9 100644 --- a/flake.lock +++ b/flake.lock @@ -424,11 +424,29 @@ "type": "github" } }, + "moonshine": { + "inputs": { + "nixpkgs": "nixpkgs_8" + }, + "locked": { + "lastModified": 1786093376, + "narHash": "sha256-z13NzEbjCzPzfBpuU5HUKbz/MgosB0arQ9L6eqz5Gis=", + "owner": "hgaiser", + "repo": "moonshine", + "rev": "91602b5bcfed0a5189d97ed3e8ca6bf6bcae0ca0", + "type": "github" + }, + "original": { + "owner": "hgaiser", + "repo": "moonshine", + "type": "github" + } + }, "nix-cachyos-kernel": { "inputs": { "flake-compat": "flake-compat_3", "flake-parts": "flake-parts_2", - "nixpkgs": "nixpkgs_8" + "nixpkgs": "nixpkgs_9" }, "locked": { "lastModified": 1785956845, @@ -486,7 +504,7 @@ "flake-compat": "flake-compat_4", "flake-parts": "flake-parts_3", "git-hooks": "git-hooks_2", - "nixpkgs": "nixpkgs_9" + "nixpkgs": "nixpkgs_10" }, "locked": { "lastModified": 1785985024, @@ -599,7 +617,7 @@ "inputs": { "flake-compat": "flake-compat_5", "flake-utils": "flake-utils_2", - "nixpkgs": "nixpkgs_11", + "nixpkgs": "nixpkgs_12", "nvfetcher": "nvfetcher", "systems": "systems_2", "treefmt-nix": "treefmt-nix_2" @@ -619,6 +637,22 @@ } }, "nixpkgs_10": { + "locked": { + "lastModified": 1785542685, + "narHash": "sha256-sjfvXMbG5pCFgpvw2OZAFcZiTvrppCWvnB6cuGrSY08=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "f8e81fc7eb063db454f563cdd596fb96a5ad1497", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_11": { "locked": { "lastModified": 1785989512, "narHash": "sha256-HFQhkQcl5D1hUNoen3SGHCSFCt2Bg6uP+HgbrnA3InQ=", @@ -634,7 +668,7 @@ "type": "github" } }, - "nixpkgs_11": { + "nixpkgs_12": { "locked": { "lastModified": 1785967620, "narHash": "sha256-IItrdb7Puk05RqOBWZYFC5X6Wl1sJmCfh5MWVHw5iMM=", @@ -650,7 +684,7 @@ "type": "github" } }, - "nixpkgs_12": { + "nixpkgs_13": { "locked": { "lastModified": 1785967620, "narHash": "sha256-IItrdb7Puk05RqOBWZYFC5X6Wl1sJmCfh5MWVHw5iMM=", @@ -763,6 +797,22 @@ } }, "nixpkgs_8": { + "locked": { + "lastModified": 1784497964, + "narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_9": { "locked": { "lastModified": 1785925688, "narHash": "sha256-taRLhiPA3s8J5+b6BLzUugC/0T4mQuyhkPiqr+fai2w=", @@ -778,22 +828,6 @@ "type": "github" } }, - "nixpkgs_9": { - "locked": { - "lastModified": 1785542685, - "narHash": "sha256-sjfvXMbG5pCFgpvw2OZAFcZiTvrppCWvnB6cuGrSY08=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "f8e81fc7eb063db454f563cdd596fb96a5ad1497", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nvfetcher": { "inputs": { "flake-compat": [ @@ -866,11 +900,12 @@ "home-manager": "home-manager", "lazyvim": "lazyvim", "millennium": "millennium", + "moonshine": "moonshine", "nix-cachyos-kernel": "nix-cachyos-kernel", "nix-darwin": "nix-darwin", "nix-flatpak": "nix-flatpak", "nix-gaming": "nix-gaming", - "nixpkgs": "nixpkgs_10", + "nixpkgs": "nixpkgs_11", "nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-xr": "nixpkgs-xr", "scopebuddy": "scopebuddy" @@ -895,7 +930,7 @@ }, "scopebuddy": { "inputs": { - "nixpkgs": "nixpkgs_12" + "nixpkgs": "nixpkgs_13" }, "locked": { "lastModified": 1785787215, diff --git a/flake.nix b/flake.nix index c641e51..c06cd45 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + moonshine.url = "github:hgaiser/moonshine"; cheatengine.url = "github:Hy4ri/cheatengine-flake"; millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix"; scopebuddy.url = "github:HikariKnight/ScopeBuddy"; @@ -47,6 +48,7 @@ millennium, nix-cachyos-kernel, cheatengine, + moonshine, ... }: let @@ -70,6 +72,7 @@ nixpkgs-xr.nixosModules.nixpkgs-xr nix-flatpak.nixosModules.nix-flatpak + moonshine.nixosModules.default affinity-thumbnailer-kde.nixosModules.default ./hosts/nero/hardware.nix diff --git a/hosts/nero/configuration.nix b/hosts/nero/configuration.nix index 89df631..47a1afb 100644 --- a/hosts/nero/configuration.nix +++ b/hosts/nero/configuration.nix @@ -83,6 +83,35 @@ in openFirewall = true; autoStart = true; }; + + moonshine = { + enable = true; + user = "frank"; + uid = 1000; + openFirewall = true; + settings = { + application = [ + { + title = "Steam"; + command = [ + "/run/current-system/sw/bin/steam" + "steam://open/bigpicture" + ]; + } + ]; + application_scanner = [ + { + type = "steam"; + library = "$HOME/.local/share/Steam"; + command = [ + "/run/current-system/sw/bin/steam" + "-bigpicture" + "steam://rungameid/{game_id}" + ]; + } + ]; + }; + }; }; programs = {