From 3a81a160aabb5a51dadf895b765aa9d95b34a9c7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 28 Feb 2024 22:48:58 +0300 Subject: [PATCH] laptop microconfig --- home/programs/hypr/default.nix | 5 ++++- hosts/dlaptop/configuration.nix | 7 ++++--- hosts/generic.nix | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/home/programs/hypr/default.nix b/home/programs/hypr/default.nix index 3b12b2d..39bfc4d 100644 --- a/home/programs/hypr/default.nix +++ b/home/programs/hypr/default.nix @@ -1,7 +1,7 @@ { 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" ]; wayland.windowManager.hyprland = { @@ -42,6 +42,8 @@ exec-once = waybar #exec-once = ags + exec-once = swaync + #exec = /usr/bin/hyprland-per-window-layout exec-once = blueman-applet exec-once = nm-applet --indicator @@ -277,6 +279,7 @@ #steam windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ + windowrulev2 = float,title:^(steam)$ windowrulev2 = noblur, class:^(steam)$ windowrulev2 = noshadow, class:^(steam)$ diff --git a/hosts/dlaptop/configuration.nix b/hosts/dlaptop/configuration.nix index aefed5c..f5a9c47 100644 --- a/hosts/dlaptop/configuration.nix +++ b/hosts/dlaptop/configuration.nix @@ -17,6 +17,8 @@ enable = true; driSupport = true; driSupport32Bit = true; + extraPackages = [ pkgs.amdvlk ]; + extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; }; nixpkgs.overlays = [ @@ -65,7 +67,7 @@ }; 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"; enable = true; }; @@ -240,10 +242,9 @@ poppler f3d nufraw-thumbnailer - unstable.curl #firefox_nightly #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 = { diff --git a/hosts/generic.nix b/hosts/generic.nix index a65d689..ee5361b 100644 --- a/hosts/generic.nix +++ b/hosts/generic.nix @@ -13,7 +13,7 @@ let if [[ $# -eq 0 ]]; then echo "Error: Missing argument." else - nix shell nixpkgs#"$1" -- "''${@:2}" + NIXPKGS_ALLOW_UNFREE=1 nix shell --impure nixpkgs#"$1" -- "''${@:2}" fi ''; in { @@ -64,7 +64,6 @@ in { shellAliases = { rebuild = "nh os switch"; rollback = "sudo nixos-rebuild switch --rollback --flake ~/Documents/dotfiles/"; - shell = "~/.local/share/shell"; }; promptInit = '' set TERM "xterm-256color"