update gpdpocke3
This commit is contained in:
parent
0663c9b414
commit
8e3fe8b8db
3 changed files with 47 additions and 48 deletions
|
@ -27,28 +27,6 @@
|
|||
rustdesk.enable = true;
|
||||
};
|
||||
|
||||
nix = {
|
||||
distributedBuilds = true;
|
||||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "lio_";
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh";
|
||||
maxJobs = 32;
|
||||
supportedFeatures = [
|
||||
"nixos-test"
|
||||
"benchmark"
|
||||
"big-parallel"
|
||||
"kvm"
|
||||
"uid-range" # Often helpful
|
||||
];
|
||||
mandatoryFeatures = [ ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# machine specific configuration
|
||||
# ==============================
|
||||
|
@ -100,30 +78,22 @@
|
|||
"nvme"
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
# "thuFryuni/PolyMC/developnderbolt"
|
||||
];
|
||||
services.xserver.videoDrivers = [ "intel" ];
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
# driSupport = true;
|
||||
};
|
||||
# hardware.opengl.driSupport32Bit = true;
|
||||
# hardware.graphics.enable = true;
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
hardware.graphics.enable = true;
|
||||
hardware.graphics.extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
intel-vaapi-driver
|
||||
];
|
||||
# Stuff from https://github.com/NixOS/nixos-hardware/blob/9a763a7acc4cfbb8603bb0231fec3eda864f81c0/gpd/pocket-3/default.nix
|
||||
services.fstrim.enable = true;
|
||||
services.xserver.libinput.enable = true;
|
||||
services.libinput.enable = true;
|
||||
services.tlp.enable = lib.mkDefault (
|
||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
||||
|| !config.services.power-profiles-daemon.enable
|
||||
);
|
||||
|
||||
# KVM module video
|
||||
|
||||
environment.shellAliases = {
|
||||
kvm = "ffplay -i /dev/video2";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue