perf: Home-manager to module
feat: Optionise config
This commit is contained in:
29
host/Eclipse/modules/aagl.nix
Normal file
29
host/Eclipse/modules/aagl.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ inputs, ... }: {
|
||||
imports = [ inputs.aagl.nixosModules.default ];
|
||||
nix.settings = inputs.aagl.nixConfig; # Set up Cachix
|
||||
programs.honkers-railway-launcher.enable = true;
|
||||
networking.hosts."0.0.0.0" = [
|
||||
"overseauspider.yuanshen.com"
|
||||
"log-upload-os.hoyoverse.com"
|
||||
"log-upload-os.mihoyo.com"
|
||||
"dump.gamesafe.qq.com"
|
||||
|
||||
"apm-log-upload-os.hoyoverse.com"
|
||||
"zzz-log-upload-os.hoyoverse.com"
|
||||
|
||||
"log-upload.mihoyo.com"
|
||||
"devlog-upload.mihoyo.com"
|
||||
"uspider.yuanshen.com"
|
||||
"sg-public-data-api.hoyoverse.com"
|
||||
"hkrpg-log-upload-os.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"
|
||||
];
|
||||
}
|
13
host/Eclipse/modules/grub.nix
Normal file
13
host/Eclipse/modules/grub.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }: let
|
||||
theme = pkgs.fetchFromGitHub {
|
||||
owner = "OliveThePuffin";
|
||||
repo = "yorha-grub-theme";
|
||||
rev = "4d9cd37baf56c4f5510cc4ff61be278f11077c81";
|
||||
hash = "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=";
|
||||
};
|
||||
in {
|
||||
boot.loader.grub = {
|
||||
gfxmodeEfi = "1920x1080";
|
||||
theme = "${theme}/yorha-1920x1080";
|
||||
};
|
||||
}
|
8
host/Eclipse/modules/zram.nix
Normal file
8
host/Eclipse/modules/zram.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "lz4";
|
||||
memoryPercent = 50;
|
||||
priority = 999;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user