mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
game-laptop -> game-desktop
This commit is contained in:
parent
849c21761f
commit
d24efeba64
15 changed files with 105 additions and 103 deletions
|
|
@ -77,6 +77,28 @@ _:
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||
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"
|
||||
'';
|
||||
};
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
boot = {
|
||||
|
|
@ -88,10 +110,12 @@ _:
|
|||
kernelModules = [ "kvm-amd" ];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
swapDevices = [ {
|
||||
device = "/swapfile";
|
||||
size = 16 * 1024;
|
||||
} ];
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 16 * 1024;
|
||||
}
|
||||
];
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
_file = ./main.nix;
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
_:
|
||||
{ config, ... }:
|
||||
{
|
||||
hardware.nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||
prime = {
|
||||
sync.enable = true;
|
||||
amdgpuBusId = "PCI:5:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
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"
|
||||
'';
|
||||
};
|
||||
_file = ./prime.nix;
|
||||
}
|
||||
|
|
@ -10,10 +10,12 @@ _:
|
|||
"miniflux"
|
||||
config.services.gitea.database.user
|
||||
];
|
||||
ensureUsers = [ {
|
||||
name = "miniflux";
|
||||
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
|
||||
} ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "miniflux";
|
||||
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
|
||||
}
|
||||
];
|
||||
|
||||
settings.unix_socket_permissions = "0770";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -91,9 +91,11 @@ _:
|
|||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
swapDevices = [ {
|
||||
device = "/swapfile";
|
||||
size = 8 * 1024;
|
||||
} ];
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 8 * 1024;
|
||||
}
|
||||
];
|
||||
_file = ./main.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue