Commit 5daf8d1
Changed files (4)
modules
desktop
desktop-environment
discrete
wm
niri
game
modules/desktop/desktop-environment/discrete/wm/niri/window-rules.nix
@@ -85,6 +85,12 @@
{app-id = "^Minecraft\* 1\.[0-9]*\.[0-9]*$";}
{app-id = "steam";}
{app-id = "net.lutris.Lutris";}
+ {app-id = "moe.launcher.an-anime-game-launcher";}
+ {app-id = "moe.launcher.honkers-railway-launcher";}
+ {app-id = "moe.launcher.sleepy-launcher";}
+ {app-id = "yuanshen.exe";}
+ {app-id = "starrail.exe";}
+ {app-id = "zenlesszonezero.exe";}
];
open-on-workspace = "6game";
}
modules/game/hoyo-games.nix
@@ -0,0 +1,52 @@
+{inputs, ...}: {
+ flake.modules.nixos.game = {pkgs, ...}: {
+ imports = [inputs.aagl-nix.nixosModules.default];
+
+ networking.hosts = {
+ "0.0.0.0" = [
+ "osuspider.yuanshen.com"
+ "overseauspider.yuanshen.com"
+ "uspider.yuanshen.com"
+
+ "log-upload-os.hoyoverse.com"
+ "log-upload-os.mihoyo.com"
+ "apm-log-upload-os.hoyoverse.com"
+ "zzz-log-upload-os.hoyoverse.com"
+ "log-upload.mihoyo.com"
+ "ys-log-upload.mihoyo.com"
+ "ys-log-upload-os.hoyoverse.com"
+ "hkrpg-log-upload-os.hoyoverse.com"
+ "dump.gamesafe.qq.com"
+ "devlog-upload.mihoyo.com"
+
+ "globaldp-prod-cn01.bhsr.com"
+ "globaldp-prod-cn01.juequling.com"
+
+ "sg-public-data-api.hoyoverse.com"
+ "public-data-api.mihoyo.com"
+
+ "prd-lender.cdp.internal.unity3d.com"
+ "thind-prd-knob.data.ie.unity3d.com"
+ "thind-gke-usc.prd.data.corp.unity3d.com"
+ "cdp.cloud.unity3d.com"
+ "remote-config-proxy-prd.uca.cloud.unity3d.com"
+
+ "pc.crashsight.wetest.net"
+ ];
+ };
+
+ environment.systemPackages = let
+ aagl-pkgs = inputs.aagl-nix.packages.${pkgs.stdenv.system};
+ override = {
+ extraPkgs = pkgs: [pkgs.bubblewrap]; # Use bubblewrap sandbox to set hostname to `STEAMDECK` to bypass anti-cheat
+ };
+ anime-game-launcher = aagl-pkgs.anime-game-launcher.override override;
+ honkers-railway-launcher = aagl-pkgs.honkers-railway-launcher.override override;
+ sleepy-launcher = aagl-pkgs.sleepy-launcher.override override;
+ in [
+ anime-game-launcher # Genshin: Impact
+ honkers-railway-launcher # Honkai: Star Rail
+ sleepy-launcher # Zenless Zon Zero
+ ];
+ };
+}
flake.lock
@@ -1,5 +1,27 @@
{
"nodes": {
+ "aagl-nix": {
+ "inputs": {
+ "flake-compat": "flake-compat",
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "rust-overlay": "rust-overlay"
+ },
+ "locked": {
+ "lastModified": 1764169039,
+ "narHash": "sha256-9DabwGlLz2mEOV7nw97HP6LLx1xv4RAHhnQSICbW+mE=",
+ "owner": "ezKEa",
+ "repo": "aagl-gtk-on-nix",
+ "rev": "c4a5f08a6ff74624ac576525765b06c79d2077e3",
+ "type": "github"
+ },
+ "original": {
+ "owner": "ezKEa",
+ "repo": "aagl-gtk-on-nix",
+ "type": "github"
+ }
+ },
"base16": {
"inputs": {
"fromYaml": "fromYaml"
@@ -85,8 +107,8 @@
},
"deploy-rs": {
"inputs": {
- "flake-compat": "flake-compat",
- "nixpkgs": "nixpkgs",
+ "flake-compat": "flake-compat_2",
+ "nixpkgs": "nixpkgs_2",
"utils": "utils"
},
"locked": {
@@ -105,7 +127,7 @@
},
"disko": {
"inputs": {
- "nixpkgs": "nixpkgs_2"
+ "nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1736864502,
@@ -125,7 +147,7 @@
"distro-grub-themes": {
"inputs": {
"flake-utils": "flake-utils",
- "nixpkgs": "nixpkgs_3"
+ "nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1734806114,
@@ -158,6 +180,22 @@
}
},
"flake-compat": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1761588595,
+ "narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
+ "type": "github"
+ },
+ "original": {
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "type": "github"
+ }
+ },
+ "flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1733328505,
@@ -173,7 +211,7 @@
"type": "github"
}
},
- "flake-compat_2": {
+ "flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1747046372,
@@ -380,8 +418,8 @@
},
"helix-fork": {
"inputs": {
- "nixpkgs": "nixpkgs_4",
- "rust-overlay": "rust-overlay"
+ "nixpkgs": "nixpkgs_5",
+ "rust-overlay": "rust-overlay_2"
},
"locked": {
"lastModified": 1763262442,
@@ -437,7 +475,7 @@
"inputs": {
"niri-stable": "niri-stable",
"niri-unstable": "niri-unstable",
- "nixpkgs": "nixpkgs_5",
+ "nixpkgs": "nixpkgs_6",
"nixpkgs-stable": "nixpkgs-stable",
"xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
@@ -568,11 +606,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1743014863,
- "narHash": "sha256-jAIUqsiN2r3hCuHji80U7NNEafpIMBXiwKlSrjWMlpg=",
+ "lastModified": 1744536153,
+ "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "bd3bac8bfb542dbde7ffffb6987a1a1f9d41699f",
+ "rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
"type": "github"
},
"original": {
@@ -656,6 +694,22 @@
}
},
"nixpkgs_10": {
+ "locked": {
+ "lastModified": 1749213349,
+ "narHash": "sha256-UAaWOyQhdp7nXzsbmLVC67fo+QetzoTm9hsPf9X3yr4=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "a4ff0e3c64846abea89662bfbacf037ef4b34207",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_11": {
"locked": {
"lastModified": 1758690382,
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
@@ -671,7 +725,7 @@
"type": "github"
}
},
- "nixpkgs_11": {
+ "nixpkgs_12": {
"locked": {
"lastModified": 1762111121,
"narHash": "sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw=",
@@ -688,6 +742,22 @@
}
},
"nixpkgs_2": {
+ "locked": {
+ "lastModified": 1743014863,
+ "narHash": "sha256-jAIUqsiN2r3hCuHji80U7NNEafpIMBXiwKlSrjWMlpg=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "bd3bac8bfb542dbde7ffffb6987a1a1f9d41699f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_3": {
"locked": {
"lastModified": 1736241350,
"narHash": "sha256-CHd7yhaDigUuJyDeX0SADbTM9FXfiWaeNyY34FL1wQU=",
@@ -703,7 +773,7 @@
"type": "github"
}
},
- "nixpkgs_3": {
+ "nixpkgs_4": {
"locked": {
"lastModified": 1731676054,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
@@ -719,7 +789,7 @@
"type": "github"
}
},
- "nixpkgs_4": {
+ "nixpkgs_5": {
"locked": {
"lastModified": 1759381078,
"narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
@@ -735,7 +805,7 @@
"type": "github"
}
},
- "nixpkgs_5": {
+ "nixpkgs_6": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
@@ -751,7 +821,7 @@
"type": "github"
}
},
- "nixpkgs_6": {
+ "nixpkgs_7": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
@@ -767,7 +837,7 @@
"type": "github"
}
},
- "nixpkgs_7": {
+ "nixpkgs_8": {
"locked": {
"lastModified": 1761672384,
"narHash": "sha256-o9KF3DJL7g7iYMZq9SWgfS1BFlNbsm6xplRjVlOCkXI=",
@@ -783,7 +853,7 @@
"type": "github"
}
},
- "nixpkgs_8": {
+ "nixpkgs_9": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
@@ -799,25 +869,9 @@
"type": "github"
}
},
- "nixpkgs_9": {
- "locked": {
- "lastModified": 1749213349,
- "narHash": "sha256-UAaWOyQhdp7nXzsbmLVC67fo+QetzoTm9hsPf9X3yr4=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "a4ff0e3c64846abea89662bfbacf037ef4b34207",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixpkgs-unstable",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
"noctalia": {
"inputs": {
- "nixpkgs": "nixpkgs_7"
+ "nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1764204173,
@@ -837,7 +891,7 @@
"nur": {
"inputs": {
"flake-parts": "flake-parts_4",
- "nixpkgs": "nixpkgs_8"
+ "nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1764603010,
@@ -855,7 +909,7 @@
},
"nur-hpcesia": {
"inputs": {
- "nixpkgs": "nixpkgs_9"
+ "nixpkgs": "nixpkgs_10"
},
"locked": {
"lastModified": 1759897971,
@@ -936,7 +990,7 @@
},
"pre-commit-hooks": {
"inputs": {
- "flake-compat": "flake-compat_2",
+ "flake-compat": "flake-compat_3",
"gitignore": "gitignore",
"nixpkgs": [
"vaultix",
@@ -980,6 +1034,7 @@
},
"root": {
"inputs": {
+ "aagl-nix": "aagl-nix",
"deploy-rs": "deploy-rs",
"disko": "disko",
"distro-grub-themes": "distro-grub-themes",
@@ -992,7 +1047,7 @@
"nix-webapps": "nix-webapps",
"nixos-hardware": "nixos-hardware",
"nixos-logo": "nixos-logo",
- "nixpkgs": "nixpkgs_6",
+ "nixpkgs": "nixpkgs_7",
"noctalia": "noctalia",
"nur": "nur",
"nur-hpcesia": "nur-hpcesia",
@@ -1005,6 +1060,24 @@
}
},
"rust-overlay": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ },
+ "locked": {
+ "lastModified": 1764124769,
+ "narHash": "sha256-vcoOEy3i8AGJi3Y2C48hrf6CuL2h8W1gLe1gNt72Kxg=",
+ "owner": "oxalica",
+ "repo": "rust-overlay",
+ "rev": "5da8c00313b4434f00aed6b4c94cd3b207bafdc5",
+ "type": "github"
+ },
+ "original": {
+ "owner": "oxalica",
+ "repo": "rust-overlay",
+ "type": "github"
+ }
+ },
+ "rust-overlay_2": {
"inputs": {
"nixpkgs": [
"helix-fork",
@@ -1025,7 +1098,7 @@
"type": "github"
}
},
- "rust-overlay_2": {
+ "rust-overlay_3": {
"inputs": {
"nixpkgs": [
"vaultix",
@@ -1048,7 +1121,7 @@
},
"silentSDDM": {
"inputs": {
- "nixpkgs": "nixpkgs_10"
+ "nixpkgs": "nixpkgs_11"
},
"locked": {
"lastModified": 1761228832,
@@ -1276,9 +1349,9 @@
"inputs": {
"crane": "crane",
"flake-parts": "flake-parts_6",
- "nixpkgs": "nixpkgs_11",
+ "nixpkgs": "nixpkgs_12",
"pre-commit-hooks": "pre-commit-hooks",
- "rust-overlay": "rust-overlay_2"
+ "rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1762250779,
flake.nix
@@ -2,6 +2,9 @@
description = "NixOS configuration of HPCesia.";
inputs = {
+ aagl-nix.url = "github:ezKEa/aagl-gtk-on-nix";
+ aagl-nix.inputs.nixpkgs.follows = "nixpkgs";
+
deploy-rs.url = "github:serokell/deploy-rs";
disko.url = "github:nix-community/disko/v1.11.0";