laptop microconfig

This commit is contained in:
Your Name 2024-02-28 22:48:58 +03:00
parent b1100d5473
commit 3a81a160aa
3 changed files with 9 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
home.packages = with pkgs; [ waybar swww ]; home.packages = with pkgs; [ waybar swww swaynotificationcenter cliphist fzf hyprshot slurp grim];
#test later systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ]; #test later systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
@ -42,6 +42,8 @@
exec-once = waybar exec-once = waybar
#exec-once = ags #exec-once = ags
exec-once = swaync
#exec = /usr/bin/hyprland-per-window-layout #exec = /usr/bin/hyprland-per-window-layout
exec-once = blueman-applet exec-once = blueman-applet
exec-once = nm-applet --indicator exec-once = nm-applet --indicator
@ -277,6 +279,7 @@
#steam #steam
windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$
windowrulev2 = float,title:^(steam)$
windowrulev2 = noblur, class:^(steam)$ windowrulev2 = noblur, class:^(steam)$
windowrulev2 = noshadow, class:^(steam)$ windowrulev2 = noshadow, class:^(steam)$

View file

@ -17,6 +17,8 @@
enable = true; enable = true;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = [ pkgs.amdvlk ];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
}; };
nixpkgs.overlays = [ nixpkgs.overlays = [
@ -65,7 +67,7 @@
}; };
programs.captive-browser = { programs.captive-browser = {
browser = ''firejail --private --profile=chromium ${pkgs.bash}/bin/bash -c '${pkgs.coreutils}/bin/env XDG_CONFIG_HOME="$PREV_CONFIG_HOME" ${pkgs.chromium}/bin/chromium --user-data-dir=''${XDG_DATA_HOME:-$HOME/.local/share}/chromium-captive --proxy-server="socks5://$PROXY" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost" --no-first-run --new-window --incognito -no-default-browser-check http://cache.nixos.org/' ''; browser = ''firejail --ignore="include whitelist-run-common.inc" --private --profile=chromium ${pkgs.bash}/bin/bash -c '${pkgs.coreutils}/bin/env XDG_CONFIG_HOME="$PREV_CONFIG_HOME" ${pkgs.chromium}/bin/chromium --user-data-dir=''${XDG_DATA_HOME:-$HOME/.local/share}/chromium-captive --proxy-server="socks5://$PROXY" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost" --no-first-run --new-window --incognito -no-default-browser-check http://cache.nixos.org/' '';
interface = "wlp1s0"; interface = "wlp1s0";
enable = true; enable = true;
}; };
@ -240,10 +242,9 @@
poppler poppler
f3d f3d
nufraw-thumbnailer nufraw-thumbnailer
unstable.curl
#firefox_nightly #firefox_nightly
#inputs.anyrun.packages.${pkgs.system}.anyrun #inputs.anyrun.packages.${pkgs.system}.anyrun
inputs.telegram-desktop-patched.packages.${pkgs.system}.default inputs.telegram-desktop-patched-unstable.packages.${pkgs.system}.default
]; ];
users.users.socks = { users.users.socks = {

View file

@ -13,7 +13,7 @@ let
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
echo "Error: Missing argument." echo "Error: Missing argument."
else else
nix shell nixpkgs#"$1" -- "''${@:2}" NIXPKGS_ALLOW_UNFREE=1 nix shell --impure nixpkgs#"$1" -- "''${@:2}"
fi fi
''; '';
in { in {
@ -64,7 +64,6 @@ in {
shellAliases = { shellAliases = {
rebuild = "nh os switch"; rebuild = "nh os switch";
rollback = "sudo nixos-rebuild switch --rollback --flake ~/Documents/dotfiles/"; rollback = "sudo nixos-rebuild switch --rollback --flake ~/Documents/dotfiles/";
shell = "~/.local/share/shell";
}; };
promptInit = '' promptInit = ''
set TERM "xterm-256color" set TERM "xterm-256color"