[feat] Nixfmt all

This commit is contained in:
uttarayan21
2024-03-01 01:52:23 +05:30
parent 50cd5e549b
commit d26ef52267
10 changed files with 213 additions and 238 deletions

View File

@@ -1 +1,19 @@
{ device, ... }: { programs.firefox = { enable = device.isLinux; }; } { device, pkgs, ... }: {
programs.firefox = {
enable = device.isLinux;
profiles.default = {
userChrome = let
csshacks = pkgs.fetchFromGitHub {
owner = "MrOtherGuy";
repo = "firefox-csshacks";
rev = "master";
sha256 = "sha256-r5CKOOcRWZQzYA9M6j7m2CAulOQItCuWsTSNGOYN87w=";
};
in ''
@import url(${csshacks}/chrome/tabs_on_bottom.css);
@import url(${csshacks}/chrome/toolbars_below_content.css);
'';
};
nativeMessagingHosts = [ pkgs.tridactyl-native ];
};
}

View File

@@ -2,15 +2,14 @@
let let
start-tmux = (import ../scripts/start-tmux.nix) pkgs; start-tmux = (import ../scripts/start-tmux.nix) pkgs;
# https://mipmip.github.io/home-manager-option-search/ # https://mipmip.github.io/home-manager-option-search/
lazy = false; lazy = true;
in in {
{
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./tmux.nix ./tmux.nix
./wezterm.nix ./wezterm.nix
] ++ (if device.isLinux then [ ../linux ] else [ ]) ] ++ (if device.isLinux then [ ../linux ] else [ ])
++ (if !lazy then [ ./nvim ] else [ ]); ++ (if !lazy then [ ./nvim ] else [ ]);
home.packages = with pkgs; home.packages = with pkgs;
[ [
@@ -123,19 +122,17 @@ in
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = settings = let flavour = "mocha"; # Replace with your preferred palette
let flavour = "mocha"; # Replace with your preferred palette in {
in { # Other config here
# Other config here format = "$all"; # Remove this line to disable the default prompt format
format = "$all"; # Remove this line to disable the default prompt format palette = "catppuccin_${flavour}";
palette = "catppuccin_${flavour}"; } // builtins.fromTOML (builtins.readFile (pkgs.fetchFromGitHub {
} // builtins.fromTOML (builtins.readFile (pkgs.fetchFromGitHub owner = "catppuccin";
{ repo = "starship";
owner = "catppuccin"; rev = "main"; # Replace with the latest commit hash
repo = "starship"; sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
rev = "main"; # Replace with the latest commit hash } + /palettes/${flavour}.toml));
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
} + /palettes/${flavour}.toml));
}; };
eza = { eza = {
enable = true; enable = true;
@@ -163,17 +160,16 @@ in
enable = true; enable = true;
config = { theme = "catppuccin"; }; config = { theme = "catppuccin"; };
themes = { themes = {
catppuccin = catppuccin = let flavor = "mocha";
let flavor = "mocha"; in {
in { src = pkgs.fetchFromGitHub {
src = pkgs.fetchFromGitHub { owner = "catppuccin";
owner = "catppuccin"; repo = "bat";
repo = "bat"; rev = "main";
rev = "main"; sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw";
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw";
};
file = "Catppuccin-${flavor}.tmTheme";
}; };
file = "Catppuccin-${flavor}.tmTheme";
};
}; };
}; };
@@ -186,11 +182,10 @@ in
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
username = device.user; username = device.user;
homeDirectory = homeDirectory = if device.isMac then
if device.isMac then lib.mkForce "/Users/${device.user}"
lib.mkForce "/Users/${device.user}" else
else lib.mkForce "/home/${device.user}";
lib.mkForce "/home/${device.user}";
stateVersion = "23.11"; stateVersion = "23.11";
@@ -206,7 +201,8 @@ in
} // (if lazy then { } // (if lazy then {
".config/nvim/lua".source = ../../nvim/lua; ".config/nvim/lua".source = ../../nvim/lua;
".config/nvim/init.lua".source = ../../nvim/init.lua; ".config/nvim/init.lua".source = ../../nvim/init.lua;
} else { }); } else
{ });
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";

View File

@@ -21,9 +21,7 @@
undofile = true; undofile = true;
}; };
globals = { globals = { mapleader = " "; };
mapleader = " ";
};
plugins = { plugins = {
lspconfig = { lspconfig = {
enable = true; enable = true;

View File

@@ -2,63 +2,63 @@
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
local wezterm = require 'wezterm'; local wezterm = require 'wezterm';
return { return {
-- -- font = wezterm.font("Hasklug Nerd Font Mono", { weight = "Regular", stretch = "Normal", style = "Normal" }), -- -- font = wezterm.font("Hasklug Nerd Font Mono", { weight = "Regular", stretch = "Normal", style = "Normal" }),
-- font = wezterm.font_with_fallback({ -- font = wezterm.font_with_fallback({
-- "Hasklig", -- "Hasklig",
-- "Symbols Nerd Font Mono" -- "Symbols Nerd Font Mono"
-- }), -- }),
color_scheme = "Catppuccin Mocha", color_scheme = "Catppuccin Mocha",
font_size = 16, font_size = 16,
-- colors = { -- colors = {
-- -- The default text color -- -- The default text color
-- foreground = "#f8f8f2", -- foreground = "#f8f8f2",
-- -- The default background color -- -- The default background color
-- -- background = "#282a36", -- -- background = "#282a36",
-- -- Overrides the cell background color when the current cell is occupied by the -- -- Overrides the cell background color when the current cell is occupied by the
-- -- cursor and the cursor style is set to Block -- -- cursor and the cursor style is set to Block
-- cursor_bg = "#f8f8f2", -- cursor_bg = "#f8f8f2",
-- -- Overrides the text color when the current cell is occupied by the cursor -- -- Overrides the text color when the current cell is occupied by the cursor
-- cursor_fg = "#000", -- cursor_fg = "#000",
-- -- Specifies the border color of the cursor when the cursor style is set to Block, -- -- Specifies the border color of the cursor when the cursor style is set to Block,
-- -- or the color of the vertical or horizontal bar when the cursor style is set to -- -- or the color of the vertical or horizontal bar when the cursor style is set to
-- -- Bar or Underline. -- -- Bar or Underline.
-- cursor_border = "#52ad70", -- cursor_border = "#52ad70",
-- -- the foreground color of selected text -- -- the foreground color of selected text
-- selection_fg = "#ffffff", -- selection_fg = "#ffffff",
-- -- the background color of selected text -- -- the background color of selected text
-- selection_bg = "#ffffff", -- selection_bg = "#ffffff",
-- -- The color of the scrollbar "thumb"; the portion that represents the current viewport -- -- The color of the scrollbar "thumb"; the portion that represents the current viewport
-- scrollbar_thumb = "#222222", -- scrollbar_thumb = "#222222",
-- -- The color of the split lines between panes -- -- The color of the split lines between panes
-- split = "#444444", -- split = "#444444",
-- ansi = { "#21222c", "#ff5555", "#50fa7b", "#f1fa8c", "#bd93f9", "#ff79c6", "#8be9fd", "#f8f8f2" }, -- ansi = { "#21222c", "#ff5555", "#50fa7b", "#f1fa8c", "#bd93f9", "#ff79c6", "#8be9fd", "#f8f8f2" },
-- brights = { "#6272a4", "#ff6e6e", "#69ff94", "#ffffa5", "#d6acff", "#ff92df", "#a4ffff", "#ffffff" }, -- brights = { "#6272a4", "#ff6e6e", "#69ff94", "#ffffa5", "#d6acff", "#ff92df", "#a4ffff", "#ffffff" },
-- -- Arbitrary colors of the palette in the range from 16 to 255 -- -- Arbitrary colors of the palette in the range from 16 to 255
-- indexed = { [136] = "#af8700" }, -- indexed = { [136] = "#af8700" },
-- -- Since: nightly builds only -- -- Since: nightly builds only
-- -- When the IME, a dead key or a leader key are being processed and are effectively -- -- When the IME, a dead key or a leader key are being processed and are effectively
-- -- holding input pending the result of input composition, change the cursor -- -- holding input pending the result of input composition, change the cursor
-- -- to this color to give a visual cue about the compose state. -- -- to this color to give a visual cue about the compose state.
-- compose_cursor = "orange", -- compose_cursor = "orange",
-- }, -- },
initial_cols = 120, initial_cols = 120,
hide_tab_bar_if_only_one_tab = true, hide_tab_bar_if_only_one_tab = true,
window_background_opacity = 0.8, window_background_opacity = 0.8,
cursor_blink_rate = 8, cursor_blink_rate = 8,
default_cursor_style = "BlinkingBlock", default_cursor_style = "BlinkingBlock",
default_prog = { "${pkgs.fish.outPath}/bin/fish", "-l" }, default_prog = { "${pkgs.fish.outPath}/bin/fish", "-l" },
window_padding = { window_padding = {
left = 2, left = 2,
right = 0, right = 0,
top = 2, top = 2,
bottom = 0, bottom = 0,
}, },
window_decorations = "RESIZE", window_decorations = "RESIZE",
use_ime = false, use_ime = false,
} }
''; '';
}; };
} }

60
config/nix/flake.lock generated
View File

@@ -311,11 +311,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1705309234, "lastModified": 1709126324,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "rev": "d465f4819400de7c8d874d50b982301f28a84605",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -382,11 +382,11 @@
"systems": "systems_7" "systems": "systems_7"
}, },
"locked": { "locked": {
"lastModified": 1705309234, "lastModified": 1709126324,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "rev": "d465f4819400de7c8d874d50b982301f28a84605",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -483,11 +483,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1708988456, "lastModified": 1709204054,
"narHash": "sha256-RCz7Xe64tN2zgWk+MVHkzg224znwqknJ1RnB7rVqUWw=", "narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1d085ea4444d26aa52297758b333b449b2aa6fca", "rev": "2f3367769a93b226c467551315e9e270c3f78b15",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -504,11 +504,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1708806879, "lastModified": 1709204054,
"narHash": "sha256-MSbxtF3RThI8ANs/G4o1zIqF5/XlShHvwjl9Ws0QAbI=", "narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4ee704cb13a5a7645436f400b9acc89a67b9c08a", "rev": "2f3367769a93b226c467551315e9e270c3f78b15",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -527,11 +527,11 @@
"rust-overlay": "rust-overlay_3" "rust-overlay": "rust-overlay_3"
}, },
"locked": { "locked": {
"lastModified": 1708987072, "lastModified": 1709065223,
"narHash": "sha256-FVoalv8tlPldD6+6yyGFtiuao+YdEH1KbUPUmsEgUVc=", "narHash": "sha256-7zuh1ait7C6OAVfhl5fVloxrAc0WJBxEOu1XqPhlwI0=",
"owner": "JakeStanger", "owner": "JakeStanger",
"repo": "ironbar", "repo": "ironbar",
"rev": "d29d4fde8c09c25141ff0cebe994d3ce771b658e", "rev": "149b57a73701af9d430ddf97252c6cc72074b2d2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -640,11 +640,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709001452, "lastModified": 1709112925,
"narHash": "sha256-FnZ54wkil54hKvr1irdKic1TE27lHQI9dKQmOJRrtlU=", "narHash": "sha256-5y8Dhw1HYdc+BWv+qQjJUIwc+ByoudtoGaHEcrXYlXw=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "6c06334f0843c7300d1678726bb607ce526f6b36", "rev": "283d59778e6b8c41cac4bdeac5b2512d6de51150",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -727,11 +727,11 @@
"nmt": "nmt" "nmt": "nmt"
}, },
"locked": { "locked": {
"lastModified": 1708966912, "lastModified": 1709216523,
"narHash": "sha256-Ee92D/hOgJX2mGHxYEB50zu6OoqVFN4chTxxpAYj57c=", "narHash": "sha256-8BaqUeMgwDBsXVpyE+AYVW7QBjR0DnsGnY0qZHdi9Ew=",
"owner": "nixneovim", "owner": "nixneovim",
"repo": "nixneovim", "repo": "nixneovim",
"rev": "81f257a375aa66d0ae8cd2ac1c3215b42b20786e", "rev": "eebce182253d8c665a8a19e0b056f6cfaf97872c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -753,11 +753,11 @@
"poetry2nix": "poetry2nix" "poetry2nix": "poetry2nix"
}, },
"locked": { "locked": {
"lastModified": 1708870615, "lastModified": 1709216468,
"narHash": "sha256-9GeZzoT8kxJY3OkpeOo/eJ4bqwaQTGggv3fR/5UdIkY=", "narHash": "sha256-3b3RFHQzea2L7lMUiS87r2A/RC+TJbBo/g7IY+5DYfk=",
"owner": "nixneovim", "owner": "nixneovim",
"repo": "nixneovimplugins", "repo": "nixneovimplugins",
"rev": "eb98507f0309ddb74d81367838e742d47e9e456f", "rev": "03cd562d0e4700216dcf8c3e14a4eebf0b2e5681",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -775,11 +775,11 @@
"poetry2nix": "poetry2nix_2" "poetry2nix": "poetry2nix_2"
}, },
"locked": { "locked": {
"lastModified": 1708870615, "lastModified": 1709216547,
"narHash": "sha256-9GeZzoT8kxJY3OkpeOo/eJ4bqwaQTGggv3fR/5UdIkY=", "narHash": "sha256-BZcxoobO6CaJ4Y2CdEiiY1381G/LdUr82mjKXEftGow=",
"owner": "NixNeovim", "owner": "NixNeovim",
"repo": "NixNeovimPlugins", "repo": "NixNeovimPlugins",
"rev": "eb98507f0309ddb74d81367838e742d47e9e456f", "rev": "acad18539f283314a9c5cd4dee8eb70dd782c663",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -885,11 +885,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1708807242, "lastModified": 1709150264,
"narHash": "sha256-sRTRkhMD4delO/hPxxi+XwLqPn8BuUq6nnj4JqLwOu0=", "narHash": "sha256-HofykKuisObPUfj0E9CJVfaMhawXkYx3G8UIFR/XQ38=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "73de017ef2d18a04ac4bfd0c02650007ccb31c2a", "rev": "9099616b93301d5cf84274b184a3a5ec69e94e08",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -57,8 +57,12 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# { pkgs, inputs, system, ... }: nur = {
url = "github:nix-community/nur";
inputs.nixpkgs.follows = "nixpkgs";
};
# { pkgs, inputs, system, ... }:
# { # {
# nixpkgs.overlays = [ # nixpkgs.overlays = [
# (final: prev: { # (final: prev: {
@@ -77,16 +81,8 @@
}; };
outputs = outputs = { nixpkgs, home-manager, nix-darwin, flake-utils, anyrun
{ nixpkgs , neovim-nightly-overlay, ... }@inputs:
, # nixos,
home-manager
, nix-darwin
, flake-utils
, anyrun
, neovim-nightly-overlay
, ...
}@inputs:
let let
config_devices = [ config_devices = [
{ {
@@ -158,24 +154,20 @@
inputs.nixneovim.overlays.default inputs.nixneovim.overlays.default
inputs.nixneovimplugins.overlays.default inputs.nixneovimplugins.overlays.default
]; ];
in in {
{ nixosConfigurations = let devices = nixos_devices;
nixosConfigurations = in import ./nixos/device.nix {
let devices = nixos_devices; inherit devices inputs nixpkgs home-manager overlays;
in import ./nixos/device.nix { };
inherit devices inputs nixpkgs home-manager overlays;
};
darwinConfigurations = darwinConfigurations = let devices = darwin_devices;
let devices = darwin_devices; in import ./darwin/device.nix {
in import ./darwin/device.nix { inherit devices inputs nixpkgs home-manager overlays nix-darwin;
inherit devices inputs nixpkgs home-manager overlays nix-darwin; };
};
homeConfigurations = homeConfigurations = let devices = linux_devices;
let devices = linux_devices; in import ./linux/device.nix {
in import ./linux/device.nix { inherit devices inputs nixpkgs home-manager overlays;
inherit devices inputs nixpkgs home-manager overlays; };
};
}; };
} }

View File

@@ -1,11 +1,5 @@
{ { inputs, pkgs, device, osConfig, ... }: {
inputs, imports = [ inputs.anyrun.nixosModules.home-manager ];
pkgs,
device,
osConfig,
...
}: {
imports = [inputs.anyrun.nixosModules.home-manager];
programs.anyrun = { programs.anyrun = {
enable = true; enable = true;
config = { config = {
@@ -21,10 +15,10 @@
symbols symbols
kidex kidex
]; ];
x = {fraction = 0.5;}; x = { fraction = 0.5; };
y = {fraction = 0.3;}; y = { fraction = 0.3; };
height = {absolute = 0;}; height = { absolute = 0; };
width = {absolute = 1000;}; width = { absolute = 1000; };
showResultsImmediately = true; showResultsImmediately = true;
maxEntries = 10; maxEntries = 10;
layer = "overlay"; layer = "overlay";
@@ -32,12 +26,10 @@
extraConfigFiles = { extraConfigFiles = {
"nixos-options.ron".text = let "nixos-options.ron".text = let
nixos-options = nixos-options = pkgs.lib.optionalString device.isNix
pkgs.lib.optionalString device.isNix
osConfig.system.build.manual.optionsJSON osConfig.system.build.manual.optionsJSON
+ "/share/doc/nixos/options.json"; + "/share/doc/nixos/options.json";
hm-options = hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json
inputs.home-manager.packages.${pkgs.system}.docs-json
+ "/share/doc/home-manager/options.json"; + "/share/doc/home-manager/options.json";
# or alternatively if you wish to read any other documentation options, such as home-manager # or alternatively if you wish to read any other documentation options, such as home-manager
# get the docs-json package from the home-manager flake # get the docs-json package from the home-manager flake
@@ -49,15 +41,8 @@
# ":nall" = [nixos-options hm-options some-other-option]; # ":nall" = [nixos-options hm-options some-other-option];
# }; # };
options = builtins.toJSON ({ options = builtins.toJSON ({
":hm" = [hm-options]; ":hm" = [ hm-options ];
} } // (if device.isNix then { ":nix" = [ nixos-options ]; } else { }));
// (
if device.isNix
then {
":nix" = [nixos-options];
}
else {}
));
in '' in ''
Config( Config(
options: ${options}, options: ${options},
@@ -98,12 +83,12 @@
"rink.ron".text = '' "rink.ron".text = ''
Config( Config(
currency: Some("${ currency: Some("${
builtins.toFile "currency.units" '' builtins.toFile "currency.units" ''
!category currencies "Currencies" !category currencies "Currencies"
usd USD usd USD
inr INR inr INR
'' ''
}"), }"),
) )
''; '';
}; };

View File

@@ -1,30 +1,17 @@
{ { devices, inputs, overlays, home-manager, ... }:
devices,
inputs,
overlays,
home-manager,
...
}:
builtins.listToAttrs (builtins.map (device: { builtins.listToAttrs (builtins.map (device: {
name = device.user; name = device.user;
value = let value = let
pkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
inherit overlays; inherit overlays;
system = device.system; system = device.system;
}; };
in in home-manager.lib.homeManagerConfiguration {
home-manager.lib.homeManagerConfiguration { inherit pkgs;
inherit pkgs; extraSpecialArgs = {
extraSpecialArgs = { inherit inputs;
inherit inputs; inherit device;
inherit device; };
}; modules = [ { nixpkgs.config.allowUnfree = true; } ../common/home.nix ];
modules = [ };
{ }) devices)
nixpkgs.config.allowUnfree = true;
}
../common/home.nix
];
};
})
devices)

View File

@@ -67,20 +67,18 @@
}]; }];
}; };
}; };
style = style = let
let # mocha = fetchurl {
# mocha = fetchurl { # url = "https://github.com/catppuccin/waybar/releases/download/v1.0/mocha.css";
# url = "https://github.com/catppuccin/waybar/releases/download/v1.0/mocha.css"; # sha256 = pkgs.lib.fakeSha256;
# sha256 = pkgs.lib.fakeSha256; # };
# }; catppuccin = pkgs.fetchFromGitHub {
catppuccin = pkgs.fetchFromGitHub { owner = "catppuccin";
owner = "catppuccin"; repo = "waybar";
repo = "waybar"; rev = "v1.0";
rev = "v1.0"; sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw";
sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw"; };
}; mocha = builtins.readFile "${catppuccin}/mocha.css";
mocha = builtins.readFile "${catppuccin}/mocha.css"; in mocha + builtins.readFile ./ironbar.css;
in
mocha + builtins.readFile ./ironbar.css;
}; };
} }

View File

@@ -12,16 +12,18 @@
pkiBundle = "/etc/secureboot"; pkiBundle = "/etc/secureboot";
}; };
environment.etc = { # services.wireplumber.configPackages = with pkgs; [ bluez ];
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
bluez_monitor.properties = { # environment.etc = {
["bluez5.enable-sbc-xq"] = true, # "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
["bluez5.enable-msbc"] = true, # bluez_monitor.properties = {
["bluez5.enable-hw-volume"] = true, # ["bluez5.enable-sbc-xq"] = true,
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" # ["bluez5.enable-msbc"] = true,
} # ["bluez5.enable-hw-volume"] = true,
''; # ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
}; # }
# '';
# };
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;
@@ -96,8 +98,7 @@
fish fish
nushellFull nushellFull
(pkgs.wrapFirefox (pkgs.wrapFirefox
(pkgs.firefox-unwrapped.override { pipewireSupport = true; }) (pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { })
{ })
gnumake gnumake
python3 python3
(nerdfonts.override { fonts = [ "FiraCode" "Hasklig" ]; }) (nerdfonts.override { fonts = [ "FiraCode" "Hasklig" ]; })