add hacky method to fix sunshine
REMOVE NEXT FLAKE UPDATE
This commit is contained in:
parent
e2b0cf0aaa
commit
c748ff8608
3 changed files with 28 additions and 3 deletions
19
flake.lock
19
flake.lock
|
@ -261,7 +261,24 @@
|
|||
"flatpaks": "flatpaks",
|
||||
"home-manager": "home-manager_2",
|
||||
"hyprland": "hyprland",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"sunshine": "sunshine"
|
||||
}
|
||||
},
|
||||
"sunshine": {
|
||||
"locked": {
|
||||
"lastModified": 1714035204,
|
||||
"narHash": "sha256-4ESBKQzr7Ngs2ryhc9/BlfO3qgkYRQOEn0xE6WdFH50=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13e6ece4709970e8f36f2713366ee9902e6ef137",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13e6ece4709970e8f36f2713366ee9902e6ef137",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
inputs = {
|
||||
# ...
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
sunshine.url = "github:NixOS/nixpkgs/13e6ece4709970e8f36f2713366ee9902e6ef137";
|
||||
flatpaks.url = "github:GermanBread/declarative-flatpak/dev";
|
||||
flatpaks.inputs.nixpkgs.follows = "nixpkgs";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
|
@ -14,7 +15,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, flatpaks, agenix, home-manager, ... } @ inputs: {
|
||||
outputs = { nixpkgs, sunshine, flatpaks, agenix, home-manager, ... } @ inputs: {
|
||||
nixosConfigurations.insertpclinux = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
|
@ -13,11 +13,18 @@
|
|||
# })) ];
|
||||
#boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
services.sunshine = {
|
||||
nixpkgs.overlays = [ (self: super: (let
|
||||
patched_pkgs = import inputs.sunshine {
|
||||
inherit (self) system;
|
||||
};
|
||||
in {
|
||||
services.sunshine = {
|
||||
package = patched.sunshine;
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
};
|
||||
})) ];
|
||||
|
||||
hardware.nvidia = {
|
||||
|
||||
|
|
Loading…
Reference in a new issue