77 lines
1.7 KiB
Nix
77 lines
1.7 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
imports = [
|
|
../common/general.nix
|
|
../common/firefox.nix
|
|
../common/i3-sway.nix
|
|
../common/vim.nix
|
|
../common/helix.nix
|
|
../common/kakoune.nix
|
|
];
|
|
home.stateVersion = "22.11";
|
|
home.username = "user";
|
|
home.homeDirectory = "/home/user";
|
|
termShell = {
|
|
enable = true;
|
|
path = "${pkgs.zsh}/bin/zsh";
|
|
};
|
|
xsession.windowManager.i3.enable = true;
|
|
wayland.windowManager.sway.enable = true;
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
"steam-run"
|
|
"steam"
|
|
"steam-original"
|
|
"steam-runtime"
|
|
"steamcmd"
|
|
];
|
|
terminals = ["kitty" "urxvt"];
|
|
home.packages = with pkgs; [
|
|
steam-run steam
|
|
easyeffects
|
|
wineWowPackages.waylandFull
|
|
winetricks
|
|
protontricks proton-caller
|
|
bottles
|
|
gimp krita blender
|
|
tdesktop
|
|
clang rustc rustfmt cargo clippy
|
|
(import ../common/home-daemon.nix { inherit lib pkgs; })
|
|
# waiting until the PR gets merged
|
|
(looking-glass-client.overrideAttrs (old: {
|
|
version = "B6";
|
|
src = fetchFromGitHub {
|
|
owner = "gnif";
|
|
repo = "LookingGlass";
|
|
rev = "B6";
|
|
sha256 = "sha256-6vYbNmNJBCoU23nVculac24tHqH7F4AZVftIjL93WJU=";
|
|
fetchSubmodules = true;
|
|
};
|
|
buildInputs = old.buildInputs ++ (with pkgs; [ pipewire libsamplerate ]);
|
|
cmakeFlags = old.cmakeFlags ++ [ "-DENABLE_PULSEAUDIO=no" ];
|
|
}))
|
|
];
|
|
xdg.configFile."looking-glass/client.ini".text = ''
|
|
[app]
|
|
shmFile=/dev/kvmfr0
|
|
capture=dxgi
|
|
|
|
[dxgi]
|
|
copyBackend=d3d12
|
|
d3d12CopySleep=5
|
|
disableDamage=false
|
|
|
|
[input]
|
|
rawMouse=yes
|
|
escapeKey=KEY_INSERT
|
|
|
|
[egl]
|
|
vsync=yes
|
|
|
|
[opengl]
|
|
vsync=yes
|
|
|
|
[win]
|
|
jitRender=yes
|
|
'';
|
|
}
|