sops n stuff
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
}:
|
||||
let
|
||||
cfg = config.share.hardware.amd;
|
||||
pkgsVersion = pkgs.unstable;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
@@ -14,7 +15,10 @@ in
|
||||
boot.kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
|
||||
|
||||
# Configure programs
|
||||
programs.corectrl.enable = cfg.corectrl.enable;
|
||||
programs.corectrl = {
|
||||
enable = cfg.corectrl.enable;
|
||||
package = pkgsVersion.corectrl;
|
||||
};
|
||||
|
||||
# Configure environment
|
||||
environment = {
|
||||
@@ -32,8 +36,8 @@ in
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
# extraPackages = [ pkgs.unstable.mesa ];
|
||||
# extraPackages32 = [ pkgs.unstable.pkgsi686Linux.mesa ];
|
||||
# extraPackages = [ pkgsVersion.mesa ];
|
||||
# extraPackages32 = [ pkgsVersion.pkgsi686Linux.mesa ];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -56,9 +60,9 @@ in
|
||||
# nixpkg is broken so need to manually define
|
||||
systemd.services.lactd = lib.mkIf cfg.lact.enable {
|
||||
description = "AMDGPU Control Daemon";
|
||||
path = [
|
||||
pkgs.bash
|
||||
pkgs.lact
|
||||
path = with pkgsVersion; [
|
||||
bash
|
||||
lact
|
||||
];
|
||||
script = ''
|
||||
lact daemon
|
||||
@@ -69,7 +73,7 @@ in
|
||||
|
||||
# Configure environment
|
||||
environment = {
|
||||
systemPackages = lib.mkIf cfg.lact.enable [ pkgs.lact ];
|
||||
systemPackages = with pkgsVersion; lib.mkIf cfg.lact.enable [ lact ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.share.gaming;
|
||||
pkgsVersion = pkgs.unstable;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
@@ -16,7 +17,7 @@ in
|
||||
remotePlay.openFirewall = true;
|
||||
# Open ports in the firewall for Source Dedicated Server
|
||||
dedicatedServer.openFirewall = true;
|
||||
extraCompatPackages = [ pkgs.proton-ge-bin];
|
||||
extraCompatPackages = with pkgsVersion; [ proton-ge-bin];
|
||||
gamescopeSession = {
|
||||
enable = true;
|
||||
args = [
|
||||
@@ -48,7 +49,7 @@ in
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
steam = pkgs.steam.override {
|
||||
extraPkgs =
|
||||
pkgs: with pkgs; [
|
||||
pkgs: with pkgsVersion; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
|
||||
Reference in New Issue
Block a user