Skip to content

Commit

Permalink
feat: move .drirc file from blade-shadow-beta repository
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyroussel committed Oct 28, 2023
1 parent 1fce38a commit 992dab6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
18 changes: 18 additions & 0 deletions import/.drirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<driconf>
<device driver="radeonsi">
<application name="Shadow" executable="Shadow">
<option name="allow_rgb10_configs" value="false" />
<option name="radeonsi_clear_db_cache_before_clear" value="true" />
</application>
</device>
<device driver="radeon">
<application name="Shadow" executable="Shadow">
<option name="allow_rgb10_configs" value="false" />
</application>
</device>
<device driver="iris">
<application name="Shadow" executable="Shadow">
<option name="allow_rgb10_configs" value="false" />
</application>
</device>
</driconf>
5 changes: 1 addition & 4 deletions import/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ let
enableDesktopLauncher = cfg.enableDesktopLauncher;
};

# Drirc file
drirc = utilities.files.drirc;

in {
# Import the configuration
imports = [ ../config.nix ];
Expand All @@ -34,7 +31,7 @@ in {
] ++ lib.forEach cfg.extraChannels shadow-package;

# Add GPU fixes
file.".drirc".source = lib.mkIf (cfg.enableGpuFix) drirc;
file.".drirc".source = lib.mkIf (cfg.enableGpuFix) ./.drirc;

# Force VA Driver
sessionVariables.LIBVA_DRIVER_NAME = toString cfg.forceDriver;
Expand Down
5 changes: 1 addition & 4 deletions import/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ let
enableDesktopLauncher = cfg.enableDesktopLauncher;
};

# Drirc file
drirc = utilities.files.drirc;

in {
# Import the configuration
imports = [ ../config.nix ../x-session ../systemd-session ];
Expand All @@ -34,7 +31,7 @@ in {
] ++ lib.forEach cfg.extraChannels shadow-package;

# Add GPU fixes
etc.drirc.source = lib.mkIf (cfg.enableGpuFix) drirc;
etc.drirc.source = lib.mkIf (cfg.enableGpuFix) ./.drirc;

# Force VA Driver
variables.LIBVA_DRIVER_NAME = lib.mkIf (cfg.forceDriver != null) [ cfg.forceDriver ];
Expand Down
10 changes: 0 additions & 10 deletions utilities/files.nix

This file was deleted.

0 comments on commit 992dab6

Please sign in to comment.