add nix system graphics

This commit is contained in:
Steam Deck User
2025-02-23 18:02:24 +00:00
parent 3bda156ab4
commit 9bc902cb90
8 changed files with 122 additions and 98 deletions

View File

@@ -1,5 +1,8 @@
{ pkgs, inputs, config, ... }:
{ pkgs, ... }:
let
homeUpdateLocation = "/home/deck/Projects/nixos#deck";
in
{
imports = [
../../home-manager/base.nix
@@ -7,19 +10,23 @@
../../home-manager/development/vscode.nix
];
terminal.homeUpdateLocation = "/home/deck/Projects/nixos#deck";
terminal.homeUpdateLocation = homeUpdateLocation;
terminal.flakeUpdateLocation = "/home/deck/Projects/nixos";
nixpkgs.config = {
allowUnfree = true;
};
nix.gc.automatic = true;
home.username = "deck";
home.homeDirectory = "/home/deck";
home.stateVersion = "24.05";
home.packages = with pkgs;[ (config.lib.nixGL.wrap nextcloud-client) ];
home.packages = with pkgs;[
system-manager
nextcloud-client
];
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
@@ -32,21 +39,29 @@
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
"nix-steam-run.sh" = {
text = ''
unset LD_PRELOAD
# shellcheck source=/dev/null
source /etc/profile.d/nix.sh
exec "$@"
'';
executable = true;
};
};
nixGL = {
packages = inputs.nixgl.packages;
# vulkan.enable = true;
};
programs = {
topgrade = {
settings = {
post_commands = {
nix-system-manager = "sudo system-manager switch --flake ${homeUpdateLocation}";
};
};
};
programs.kodi = {
enable = true;
package = config.lib.nixGL.wrap (pkgs.kodi.withPackages (exts: [ exts.jellycon exts.joystick ]));
};
systemd.user.services.nextcloud-client = {
Unit = {
After = pkgs.lib.mkForce "graphical-session.target";
kodi = {
enable = true;
package = pkgs.kodi.withPackages (exts: [ exts.jellycon exts.joystick ]);
};
};
}