mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
module moving mostly done
This commit is contained in:
parent
a9de747c25
commit
e78a971b9b
33 changed files with 455 additions and 447 deletions
|
|
@ -4,16 +4,22 @@ inputs: {
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
(import ../imports/boot.nix inputs)
|
||||
(import ./prime.nix inputs)
|
||||
(import ./gaming.nix inputs)
|
||||
|
||||
(import ../imports/fonts.nix inputs)
|
||||
(import ../imports/git.nix inputs)
|
||||
(import ../imports/packages.nix inputs)
|
||||
(import ../imports/prime.nix inputs)
|
||||
(import ../imports/gnome.nix inputs)
|
||||
(import ../imports/shells.nix inputs)
|
||||
(import ../imports/gaming.nix inputs)
|
||||
(import ../imports/theme.nix inputs)
|
||||
];
|
||||
|
||||
localModules = {
|
||||
DE.gnome.enable = true;
|
||||
DM = {
|
||||
lightdm.enable = true;
|
||||
autoLogin = true;
|
||||
};
|
||||
};
|
||||
nixpkgs.allowedUnfree = [
|
||||
"nvidia-x11"
|
||||
"nvidia-persistenced"
|
||||
|
|
@ -23,9 +29,15 @@ inputs: {
|
|||
];
|
||||
system.stateVersion = "23.05";
|
||||
environment.systemPackages = [
|
||||
pkgs.pavucontrol #gui volume control
|
||||
pkgs.pcmanfm #file manager
|
||||
pkgs.librewolf #best browser
|
||||
pkgs.webcord
|
||||
];
|
||||
networking.hostName = settings.hostname;
|
||||
networking = {
|
||||
hostName = settings.hostname;
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
users = {
|
||||
|
|
@ -35,10 +47,6 @@ inputs: {
|
|||
extraGroups = ["audio" "networkmanager"];
|
||||
};
|
||||
};
|
||||
services.xserver.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = settings.username;
|
||||
};
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
boot = {
|
||||
|
|
|
|||
12
systems/game-laptop/gaming.nix
Normal file
12
systems/game-laptop/gaming.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
_: {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
heroic
|
||||
legendary-gl
|
||||
prismlauncher
|
||||
];
|
||||
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
|
||||
};
|
||||
}
|
||||
30
systems/game-laptop/prime.nix
Normal file
30
systems/game-laptop/prime.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
_: {
|
||||
hardware.nvidia = {
|
||||
prime = {
|
||||
offload.enable = true;
|
||||
amdgpuBusId = "PCI:5:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
finegrained = true;
|
||||
};
|
||||
nvidiaPersistenced = true;
|
||||
nvidiaSettings = false;
|
||||
modesetting.enable = true;
|
||||
};
|
||||
services.xserver = {
|
||||
videoDrivers = ["nvidia"];
|
||||
#disable DPMS
|
||||
monitorSection = ''
|
||||
Option "DPMS" "false"
|
||||
'';
|
||||
#disable screen blanking in total
|
||||
serverFlagsSection = ''
|
||||
Option "StandbyTime" "0"
|
||||
Option "SuspendTime" "0"
|
||||
Option "OffTime" "0"
|
||||
Option "BlankTime" "0"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue