seprate hosts in submodules and started adding desktop pc configuration

This commit is contained in:
2024-10-17 18:23:05 +02:00
parent af79ebb579
commit 2d3d965304
10 changed files with 78 additions and 18 deletions

11
hosts/desktop.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, lib, inputs, pkgs, ... }:
{
imports = [
modules/game.nix
modules/nvidia.nix
];
networking.hostName = "nixos-fixe";
}

View File

@ -1,7 +1,10 @@
{ config, lib, inputs, pkgs, ... }:
{
imports = [
modules/game.nix
modules/nvidia.nix
];
networking.hostName = "patate-douce";
networking.wireless.enable = true;
networking.networkmanager.enable = false;
@ -11,17 +14,12 @@
tlp
];
hardware.graphics = {
enable = true;
enable32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia.prime.offload = {
enable = true;
enableOffloadCmd = true;
};
programs.steam.enable=true;
programs.steam.protontricks.enable=true;
services.libinput.enable = true;
services.libinput.touchpad.clickMethod = "clickfinger";
services.libinput.touchpad.tapping = false;
}

6
hosts/modules/game.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, lib, inputs, pkgs, ... }:
{
programs.steam.enable=true;
programs.steam.protontricks.enable=true;
}

11
hosts/modules/nvidia.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, lib, inputs, pkgs, ... }:
{
hardware.graphics = {
enable = true;
enable32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
}