From f1ceeb8893fd3be56ad40f4126c4cdf1d57c5867 Mon Sep 17 00:00:00 2001 From: jxnshi Date: Sat, 25 Jan 2025 12:59:53 +0100 Subject: [PATCH] Add pipewire and alsa-utils --- configuration.nix | 11 ++++++----- flake.nix | 2 +- home.nix | 28 ++++++++++++++++++---------- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/configuration.nix b/configuration.nix index 03a95ce..2af3c0a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -34,6 +34,9 @@ # Pipewire. services.pipewire.enable = true; services.pipewire.pulse.enable = true; + services.pipewire.alsa.enable = true; + services.pipewire.alsa.support32Bit = true; + services.pipewire.jack.enable = true; # Home manager. home-manager.extraSpecialArgs = { inherit inputs; }; @@ -44,11 +47,9 @@ users.users.jxnshi.extraGroups = [ "networkmanager" "wheel" ]; # Environment variables. - environment.variables = { - BROWSER = "tabbed vimb -e"; - EDITOR = "hx"; - TERM = "st"; - }; + environment.variables.BROWSER = "qutebrowser"; + environment.variables.EDITOR = "hx"; + environment.variables.TERM = "st"; # Allow unfree packages. nixpkgs.config.allowUnfree = true; diff --git a/flake.nix b/flake.nix index 753c247..022f9a2 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ system = "x86_64-linux"; in { - nixosConfigurations.nixos= nixpkgs.lib.nixosSystem { + nixosConfigurations.t420 = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs system; }; modules = [ ./configuration.nix ]; }; diff --git a/home.nix b/home.nix index 547eb63..bda811f 100644 --- a/home.nix +++ b/home.nix @@ -7,17 +7,17 @@ home.stateVersion = "24.05"; home.packages = with pkgs; [ - dwm # Window manager. - fish # Shell. - gimp # Image editor. - ghostty # - helix # Text editor. - krita # Drawing software. - monero-gui # Monero wallet. - st # Terminal emulator. - vimb # Web browser. + dwm # Window manager. + fish # Shell. + gimp # Image editor. + helix # Text editor. + krita # Drawing software. + monero-gui # Monero wallet. + qutebrowser # Web browser. + st # Terminal emulator. # Misc. + alsa-utils dmenu feh git @@ -25,7 +25,6 @@ htop pfetch-rs picom - tabbed timg tree upower @@ -85,4 +84,13 @@ programs.git.userEmail = "jxnshi@proton.me"; programs.git.userName = "jxnshi"; + + # Picom. + services.picom.enable = true; + + ## Opacity. + services.picom.settings.opacity-rule = [ + "95:class_g = 'st-256color' && focused" + "90:class_g = 'st-256color' && !focused" + ]; } -- 2.49.0