2023-01-24 02:24:40 +07:00
|
|
|
{ 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";
|
2023-01-26 03:41:45 +07:00
|
|
|
termShell = {
|
|
|
|
enable = true;
|
|
|
|
path = "${pkgs.zsh}/bin/zsh";
|
|
|
|
};
|
2023-01-24 02:24:40 +07:00
|
|
|
xsession.windowManager.i3.enable = true;
|
|
|
|
wayland.windowManager.sway.enable = true;
|
2023-02-11 23:30:19 +07:00
|
|
|
terminals = ["kitty" "urxvt"];
|
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
network.startWhenNeeded = true;
|
|
|
|
};
|
|
|
|
services.mpdris2 = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
programs.ncmpcpp = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-02-13 21:56:34 +07:00
|
|
|
services.kdeconnect.enable = true;
|
2023-01-24 02:24:40 +07:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"steam-run"
|
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-runtime"
|
|
|
|
"steamcmd"
|
|
|
|
];
|
2023-02-13 21:56:34 +07:00
|
|
|
home.sessionVariables = let sources = (import ../_sources/generated.nix {
|
|
|
|
inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools;
|
|
|
|
});
|
|
|
|
proton-ge = pkgs.stdenv.mkDerivation {
|
|
|
|
inherit (sources.proton-ge) pname version src;
|
|
|
|
nativeBuildInputs = [];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
tar -C $out --strip=1 -x -f $src
|
|
|
|
'';
|
|
|
|
}; in {
|
|
|
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "${proton-ge}";
|
|
|
|
};
|
2023-01-24 02:24:40 +07:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
steam-run steam
|
|
|
|
easyeffects
|
2023-02-11 23:30:19 +07:00
|
|
|
# wineWowPackages.waylandFull
|
2023-01-24 02:24:40 +07:00
|
|
|
winetricks
|
2023-02-11 23:30:19 +07:00
|
|
|
protontricks # proton-caller
|
2023-01-24 02:24:40 +07:00
|
|
|
bottles
|
2023-02-11 23:30:19 +07:00
|
|
|
virtmanager
|
2023-01-24 02:24:40 +07:00
|
|
|
gimp krita blender
|
2023-01-24 16:05:19 +07:00
|
|
|
tdesktop
|
2023-02-03 13:07:57 +07:00
|
|
|
clang rustc rustfmt cargo clippy
|
2023-01-24 19:43:26 +07:00
|
|
|
(import ../common/home-daemon.nix { inherit lib pkgs; })
|
2023-01-24 02:24:40 +07:00
|
|
|
# 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" ];
|
|
|
|
}))
|
|
|
|
];
|
2023-01-25 01:33:07 +07:00
|
|
|
xdg.configFile."looking-glass/client.ini".text = ''
|
2023-01-24 02:24:40 +07:00
|
|
|
[app]
|
|
|
|
shmFile=/dev/kvmfr0
|
|
|
|
|
|
|
|
[input]
|
|
|
|
rawMouse=yes
|
|
|
|
escapeKey=KEY_INSERT
|
|
|
|
'';
|
|
|
|
}
|