diff --git a/config/hosts/nixos76/default.nix b/config/hosts/nixos76/default.nix index 9803eb8..8a70a1c 100644 --- a/config/hosts/nixos76/default.nix +++ b/config/hosts/nixos76/default.nix @@ -139,25 +139,6 @@ services.xserver.desktopManager.xfce.enable = true; services.displayManager.defaultSession = "xfce"; - # List packages installed in system profile. To search, run: - # $ nix search wget - environment.systemPackages = with pkgs; [ - # atau-wallpapers - blueman - dxvk - envsubst - font-manager - gparted - lshw - mesa - nodejs_20 - pavucontrol - unzip - vim - vulkan-extension-layer - wget - ]; - # Syncthing services = { syncthing = { diff --git a/config/modules/system76-pc.nix b/config/modules/system76-pc.nix index 61e8603..fffe461 100644 --- a/config/modules/system76-pc.nix +++ b/config/modules/system76-pc.nix @@ -55,6 +55,17 @@ variant = ""; }; + # List packages installed in system profile. To search, run: + environment.systemPackages = with pkgs; [ + direnv + dxvk + envsubst + font-manager + gparted + mesa + vulkan-extension-layer + ]; + # Hardware hardware.graphics.enable = true; hardware.graphics.extraPackages = [ diff --git a/config/users/alex/default.nix b/config/users/alex/default.nix index 3268a52..532f1eb 100644 --- a/config/users/alex/default.nix +++ b/config/users/alex/default.nix @@ -17,7 +17,6 @@ drawio exiftool # For digikam famistudio - feh digikam firefox flameshot @@ -33,9 +32,9 @@ lmms lutris moonlight-qt - ncdu nextcloud-client nixpkgs-fmt + nodejs_20 obsidian pavucontrol picard @@ -74,6 +73,15 @@ bspc monitor DP-2 -d I II III IV V bspc monitor HDMI-1 -d VI VII VIII IX X + # Set mouse 1 to move floating windows: + bspc config pointer_action1 move + + # Mouse 2 button resizes the window by side: + bspc config pointer_action2 resize_side + + # Mouse 3 button (right mouse) resize by corner: + bspc config pointer_action2 resize_corner + polybar & ''; startupPrograms = [ "picom" "polybar primary" "polybar secondary" ]; @@ -362,6 +370,16 @@ # User software configurations programs = { bash = { + enable = true; + bashrcExtra = '' + function nxr () { + set -u + local pkg="$1" + shift + nix-shell -p "$pkg" --run "$pkg $@" + set +u + } + ''; shellAliases = { "git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease"; };