set static wallpaper + add hysteria
This commit is contained in:
parent
867a96c44c
commit
fd9a2d725a
@ -28,7 +28,7 @@
|
||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||
];
|
||||
|
||||
home-manager.backupFileExtension = "backup6";
|
||||
home-manager.backupFileExtension = "backup99";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -22,8 +22,9 @@
|
||||
gftp # when pcmanfm die
|
||||
clang-tools
|
||||
multipath-tools # for pmbootstrap
|
||||
nil # nix language server
|
||||
nil # nix lang server
|
||||
typescript-language-server
|
||||
jdt-language-server
|
||||
|
||||
(python3.withPackages (lib: with lib; [
|
||||
requests
|
||||
@ -246,5 +247,7 @@
|
||||
"net.sapples.LiveCaptions"
|
||||
"io.github.mrvladus.List"
|
||||
"app.zen_browser.zen"
|
||||
"io.github.Soundux"
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
enable = true;
|
||||
configDir = "${config.home.homeDirectory}/.config/discord";
|
||||
package = pkgs.discord.overrideAttrs (oldAttrs: let
|
||||
proxy = "127.0.0.1:1080";
|
||||
proxy = "127.0.0.1:10080";
|
||||
in {
|
||||
src = builtins.fetchurl {
|
||||
url = "https://files.meex.lol/discord-linux-stable/discord-0.0.102.tar.gz";
|
||||
|
1
modules/proxies/.gitignore
vendored
1
modules/proxies/.gitignore
vendored
@ -1 +1,2 @@
|
||||
shadowsocks.json
|
||||
hysteria.yml
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./shadowsocks.nix
|
||||
# ./shadowsocks.nix
|
||||
./byedpi.nix
|
||||
./hysteria.nix
|
||||
];
|
||||
}
|
||||
|
20
modules/proxies/hysteria.nix
Normal file
20
modules/proxies/hysteria.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.user.services.hysteria-proxy = {
|
||||
Unit.Description = "Shadowsocks proxy service";
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
Service = {
|
||||
Restart = "always";
|
||||
ExecStart = "${pkgs.writeShellScript "hysteria-service-start" ''
|
||||
#!/run/current-system/sw/bin/bash
|
||||
${pkgs.hysteria}/bin/hysteria -c ${./hysteria.yml}
|
||||
''}";
|
||||
ExecStop = "${pkgs.writeShellScript "hysteria-service-stop" ''
|
||||
#!/run/current-system/sw/bin/bash
|
||||
${pkgs.toybox}/bin/killall hysteria
|
||||
''}";
|
||||
|
||||
};
|
||||
};
|
||||
}
|
@ -81,6 +81,26 @@
|
||||
extraOptions = [
|
||||
"--unsupported-gpu"
|
||||
];
|
||||
extraSessionCommands = ''
|
||||
# Hardware cursors not yet working on wlroots
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
# Set wlroots renderer to Vulkan to avoid flickering
|
||||
# export WLR_RENDERER=vulkan
|
||||
# General wayland environment variables
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
# Firefox wayland environment variable
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export MOZ_USE_XINPUT2=1
|
||||
# OpenGL Variables
|
||||
export GBM_BACKEND=nvidia-drm
|
||||
export __GL_GSYNC_ALLOWED=0
|
||||
export __GL_VRR_ALLOWED=0
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
# Xwayland compatibility
|
||||
export XWAYLAND_NO_GLAMOR=1
|
||||
'';
|
||||
config = {
|
||||
defaultWorkspace = "workspace number 1";
|
||||
menu = "wofi --show run";
|
||||
@ -176,7 +196,8 @@
|
||||
(video {instance = "chromium";})
|
||||
(video (class "firefox"))
|
||||
(video (class "Nightly"))
|
||||
|
||||
|
||||
(important { app_id = "xarchiver"; })
|
||||
(important (pcmanfm_title "Confirm to replace files"))
|
||||
(important (pcmanfm_title "(?:Open|Save) (?:File|Folder|As)"))
|
||||
(important (pcmanfm_title "^(File|Folder)\s*Already Exists\s*—\s*"))
|
||||
|
@ -3,7 +3,8 @@
|
||||
dunst &
|
||||
copyq &
|
||||
blueman-applet &
|
||||
~/.config/sway/random-bg.py loop &
|
||||
# ~/.config/sway/random-bg.py loop &
|
||||
swaybg -m fill -i ~/.config/sway/wallpapers/wallhaven-218d7y.jpg &
|
||||
~/.startup &
|
||||
|
||||
wait
|
||||
|
BIN
modules/sway/wallpapers/wallhaven-218d7y.jpg
Normal file
BIN
modules/sway/wallpapers/wallhaven-218d7y.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 MiB |
@ -178,15 +178,25 @@
|
||||
programs.adb.enable = true;
|
||||
users.extraGroups.adbusers.members = [ "user" ];
|
||||
|
||||
# obs
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
enableVirtualCamera = true;
|
||||
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-backgroundremoval
|
||||
obs-pipewire-audio-capture
|
||||
obs-gstreamer
|
||||
obs-vkcapture
|
||||
];
|
||||
};
|
||||
|
||||
# system-wide packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim curl git
|
||||
vim curl git openssl
|
||||
];
|
||||
|
||||
# obs
|
||||
programs.obs-studio.enable = true;
|
||||
programs.obs-studio.enableVirtualCamera = true;
|
||||
|
||||
# enable xdg portal and flatpak
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user