Skip to content

Commit

Permalink
feat: test gaming hours
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Oct 3, 2024
1 parent 52ebe56 commit de993c1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 14 deletions.
33 changes: 26 additions & 7 deletions hosts/hermes/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
inputs,
pkgsUnstable,
...
}: {
}:
{
imports = [
./tlp.nix
./hardware-configuration.nix
Expand All @@ -16,7 +17,7 @@
networking = {
hostName = "hermes";
hostId = "b7d14532";
networkmanager.enable = true; #TODO this is a bugfix, evaluate later
networkmanager.enable = true; # TODO this is a bugfix, evaluate later

firewall.enable = false;
};
Expand All @@ -30,7 +31,7 @@
];
};

services.udev.packages = [inputs.mypkgs.legacyPackages.x86_64-linux.edl];
services.udev.packages = [ inputs.mypkgs.legacyPackages.x86_64-linux.edl ];

components = {
desktop = {
Expand All @@ -43,15 +44,33 @@
tailscale = {
enable = true;
initialAuthKey = "tskey-auth-k5VoMt2CNTRL-C4sAH3gN4u596AcSmBdwz5ZDXZnX1vHM";
tags = ["ajax" "nixos"];
tags = [
"ajax"
"nixos"
];
advertiseExitNode = false;
};
};

home-manager.users.${user} = {...}: {
imports = [./home.nix];
home-manager.users.${user} =
{ ... }:
{
imports = [ ./home.nix ];
};
home-manager.extraSpecialArgs = {
inherit inputs pkgsUnstable;
};

programs.steam = {
enable = true;
gamescopeSession.enable = true;
};
home-manager.extraSpecialArgs = {inherit inputs pkgsUnstable;};
programs.gamemode.enable = true;
environment.systemPackages = with pkgsUnstable; [
mangohud
protonup
seventeenlands
];

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
Expand Down
17 changes: 11 additions & 6 deletions hosts/hermes/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
lib,
modulesPath,
...
}: {
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
inputs.nixos-hardware.nixosModules.dell-xps-15-9560-intel
Expand All @@ -21,9 +22,9 @@
"sd_mod"
"rtsx_pci_sdmmc"
];
initrd.kernelModules = [];
kernelModules = ["kvm-intel"];
extraModulePackages = [];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
kernel.sysctl = {
"fs.inotify.max_user_watches" = "1048576";
};
Expand All @@ -46,7 +47,11 @@
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
options = ["noatime" "nodiratime" "discard"];
options = [
"noatime"
"nodiratime"
"discard"
];
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/ESP";
Expand All @@ -58,7 +63,7 @@
services.fstrim.enable = true;
services.fstrim.interval = "daily";

swapDevices = [{device = "/dev/disk/by-label/swap";}];
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];

powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}
15 changes: 14 additions & 1 deletion overlays.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
{
inputs,
system,
pkgsUnfree,
...
}: {
}:
let
addUnfree = pkg: _self: _super: {
inherit (pkgsUnfree) pkg;
};
in
{
caddy = _self: _super: {
caddy-patched = inputs.caddy.packages.${system}.caddy;
};
neovim = _self: _super: {
neovim = inputs.neovim.packages.${system}.default;
};
nur = inputs.nur.overlay;
steam = _self: _super: {
inherit (pkgsUnfree) steam;
};
steam-orig = _self: _super: {
inherit (pkgsUnfree) steam-orig;
};
}

0 comments on commit de993c1

Please sign in to comment.