set static wallpaper + add hysteria
This commit is contained in:
parent
867a96c44c
commit
fd9a2d725a
@ -28,7 +28,7 @@
|
|||||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.backupFileExtension = "backup6";
|
home-manager.backupFileExtension = "backup99";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -22,8 +22,9 @@
|
|||||||
gftp # when pcmanfm die
|
gftp # when pcmanfm die
|
||||||
clang-tools
|
clang-tools
|
||||||
multipath-tools # for pmbootstrap
|
multipath-tools # for pmbootstrap
|
||||||
nil # nix language server
|
nil # nix lang server
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
|
jdt-language-server
|
||||||
|
|
||||||
(python3.withPackages (lib: with lib; [
|
(python3.withPackages (lib: with lib; [
|
||||||
requests
|
requests
|
||||||
@ -246,5 +247,7 @@
|
|||||||
"net.sapples.LiveCaptions"
|
"net.sapples.LiveCaptions"
|
||||||
"io.github.mrvladus.List"
|
"io.github.mrvladus.List"
|
||||||
"app.zen_browser.zen"
|
"app.zen_browser.zen"
|
||||||
|
"io.github.Soundux"
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
configDir = "${config.home.homeDirectory}/.config/discord";
|
configDir = "${config.home.homeDirectory}/.config/discord";
|
||||||
package = pkgs.discord.overrideAttrs (oldAttrs: let
|
package = pkgs.discord.overrideAttrs (oldAttrs: let
|
||||||
proxy = "127.0.0.1:1080";
|
proxy = "127.0.0.1:10080";
|
||||||
in {
|
in {
|
||||||
src = builtins.fetchurl {
|
src = builtins.fetchurl {
|
||||||
url = "https://files.meex.lol/discord-linux-stable/discord-0.0.102.tar.gz";
|
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
|
shadowsocks.json
|
||||||
|
hysteria.yml
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./shadowsocks.nix
|
# ./shadowsocks.nix
|
||||||
./byedpi.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 = [
|
extraOptions = [
|
||||||
"--unsupported-gpu"
|
"--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 = {
|
config = {
|
||||||
defaultWorkspace = "workspace number 1";
|
defaultWorkspace = "workspace number 1";
|
||||||
menu = "wofi --show run";
|
menu = "wofi --show run";
|
||||||
@ -177,6 +197,7 @@
|
|||||||
(video (class "firefox"))
|
(video (class "firefox"))
|
||||||
(video (class "Nightly"))
|
(video (class "Nightly"))
|
||||||
|
|
||||||
|
(important { app_id = "xarchiver"; })
|
||||||
(important (pcmanfm_title "Confirm to replace files"))
|
(important (pcmanfm_title "Confirm to replace files"))
|
||||||
(important (pcmanfm_title "(?:Open|Save) (?:File|Folder|As)"))
|
(important (pcmanfm_title "(?:Open|Save) (?:File|Folder|As)"))
|
||||||
(important (pcmanfm_title "^(File|Folder)\s*Already Exists\s*—\s*"))
|
(important (pcmanfm_title "^(File|Folder)\s*Already Exists\s*—\s*"))
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
dunst &
|
dunst &
|
||||||
copyq &
|
copyq &
|
||||||
blueman-applet &
|
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 &
|
~/.startup &
|
||||||
|
|
||||||
wait
|
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;
|
programs.adb.enable = true;
|
||||||
users.extraGroups.adbusers.members = [ "user" ];
|
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
|
# system-wide packages
|
||||||
environment.systemPackages = with pkgs; [
|
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
|
# enable xdg portal and flatpak
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user