seprate hosts in submodules and started adding desktop pc configuration
This commit is contained in:
11
hosts/desktop.nix
Normal file
11
hosts/desktop.nix
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
modules/game.nix
|
||||
modules/nvidia.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nixos-fixe";
|
||||
}
|
@ -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
6
hosts/modules/game.nix
Normal 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
11
hosts/modules/nvidia.nix
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
}
|
Reference in New Issue
Block a user