Update README.md & Steam

This commit is contained in:
sora 2023-11-04 02:33:48 +01:00 committed by soraefir
parent 153c1a8359
commit 53ba9f4528
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
9 changed files with 94 additions and 11 deletions

View File

@ -6,8 +6,8 @@
...
</h1>
<h1 align="center">
<img width="256" style="image-rendering: crisp-edges;" src="./colors/palette0.png"></img>
<img width="256" style="image-rendering: crisp-edges;" src="./modules/shared/colors/palette0.png"></img>
<br>
<img width="256" style="image-rendering: crisp-edges;" src="./colors/palette1p.png"></img>
<img width="256" style="image-rendering: crisp-edges;" src="./colors/palette1h.png"></img>
<img width="256" style="image-rendering: crisp-edges;" src="./modules/shared/colors/palette1p.png"></img>
<img width="256" style="image-rendering: crisp-edges;" src="./modules/shared/colors/palette1h.png"></img>
</h1>

View File

@ -0,0 +1,17 @@
{ ... }: {
imports = [ ./display.nix ];
config.homecfg = {
username = "sora";
make = {
gui = false;
cli = true;
game = false;
};
git = {
email = "soraefir+git@pm.me";
username = "soraefir";
key = "4E241635F8EDD2919D2FB44CA362EA0491E2EEA0";
};
};
}

View File

@ -1,6 +1,6 @@
{ ... }: {
programs.helix = {
enable = true;
#enable = true;
languages = { };
settings = { };
themes = { };

View File

@ -4,12 +4,11 @@
config = lib.mkIf (config.homecfg.make.game) {
# programs.steam.enable = true;
home.packages = with pkgs; [
custom.simc
#games
steam
gamemode
gamescope
mangohud

View File

@ -0,0 +1,14 @@
{ lib, config, pkgs, ... }:
let cfg = config.hostcfg.make.game;
in {
config = lib.mkIf cfg {
programs.steam = {
enable = true;
remotePlay.openFirewall =
true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall =
true; # Open ports in the firewall for Source Dedicated Server
};
};
}

View File

@ -4,10 +4,26 @@ with lib; {
hostname = mkOption { type = types.str; };
username = mkOption { type = types.str; };
make = {
cli = mkOption { type = types.bool; };
gui = mkOption { type = types.bool; };
virt = mkOption { type = types.bool; };
power = mkOption { type = types.bool; };
cli = mkOption {
type = types.bool;
default = true;
};
gui = mkOption {
type = types.bool;
default = false;
};
virt = mkOption {
type = types.bool;
default = true;
};
power = mkOption {
type = types.bool;
default = false;
};
game = mkOption {
type = types.bool;
default = false;
};
};
net = {
wlp = {
@ -15,7 +31,10 @@ with lib; {
nif = mkOption { type = types.str; };
};
wg = {
enable = mkOption { type = types.bool; };
enable = mkOption {
type = types.bool;
default = true;
};
ip4 = mkOption { type = types.str; };
ip6 = mkOption { type = types.str; };
pk = mkOption { type = types.str; };

View File

@ -0,0 +1,32 @@
{ config, inputs, ... }: {
imports = with inputs.hardware.nixosModules; [
./hardware-configuration.nix
common-cpu-intel
common-gpu-intel
];
hostcfg = {
hostname = "avalon";
username = "sora";
make = {
gui = false;
cli = true;
virt = true;
power = false;
game = false;
};
net = {
wlp = {
enable = false;
nif = "";
};
wg = {
enable = true;
ip4 = "10.10.1.2/32";
ip6 = "fd10:10:10::2/128";
pk = config.sops.secrets.avalon_wg_priv.path;
};
};
};
}

View File

@ -13,6 +13,7 @@
cli = true;
virt = true;
power = false;
game = true;
};
net = {
wlp = {

View File

@ -13,6 +13,7 @@
cli = true;
virt = true;
power = true;
game = true;
};
net = {
wlp = {