Misc: Add nixfmt-tree and run nix fmt

This commit is contained in:
2026-07-30 15:03:14 +02:00
parent 3831cc1540
commit b0a83e2ad5
29 changed files with 200 additions and 132 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
{
flake.modules.nixos.appimage = { pkgs, ...}: {
programs.appimage = {
enable = true;
binfmt = true;
};
flake.modules.nixos.appimage = { pkgs, ... }: {
programs.appimage = {
enable = true;
binfmt = true;
};
};
}
+25 -7
View File
@@ -1,9 +1,11 @@
{
flake.modules.homeManager.ashell =
{ config
, lib
, ...
}: {
{
config,
lib,
...
}:
{
programs.ashell = {
enable = true;
systemd.enable = true;
@@ -12,17 +14,33 @@
modules = {
left = [ "Workspaces" ];
center = [ "Clock" ];
right = [ "Tray" [ "SystemInfo" "Settings" ] ];
right = [
"Tray"
[
"SystemInfo"
"Settings"
]
];
};
system_info.indicators = [ "Cpu" "Memory" "Temperature" "DownloadSpeed" "UploadSpeed" ];
system_info.indicators = [
"Cpu"
"Memory"
"Temperature"
"DownloadSpeed"
"UploadSpeed"
];
settings.indicators = [ "Battery" ];
appearance = lib.mkIf config.catppuccin.enable {
success_color = "#a6e3a1";
text_color = "#cdd6f4";
workspace_colors = [ "#fab387" "#b4befe" "#cba6f7" ];
workspace_colors = [
"#fab387"
"#b4befe"
"#cba6f7"
];
primary_color = {
base = "#fab387";
+27 -32
View File
@@ -7,9 +7,10 @@
};
flake.modules.homeManager.browser =
{ pkgs
, lib
, ...
{
pkgs,
lib,
...
}:
let
mkExtension = shortId: guid: {
@@ -19,8 +20,7 @@
installation_mode = "normal_installed";
};
};
zen-pkg =
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped;
zen-pkg = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped;
prefs = {
"zen.tabs.vertical.right-side" = true;
@@ -55,35 +55,30 @@
in
{
home.packages = [
(
pkgs.wrapFirefox zen-pkg
{
extraPrefs = lib.concatLines (
lib.mapAttrsToList
(
name: value: ''lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});''
)
prefs
);
(pkgs.wrapFirefox zen-pkg {
extraPrefs = lib.concatLines (
lib.mapAttrsToList (
name: value: "lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});"
) prefs
);
extraPolicies = {
DisableTelemetry = true;
ExtensionSettings = builtins.listToAttrs extensions;
extraPolicies = {
DisableTelemetry = true;
ExtensionSettings = builtins.listToAttrs extensions;
SearchEngines = {
Default = "ddg";
Add = [
{
Name = "nixpkgs packages";
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
IconURL = "https://wiki.nixos.org/favicon.ico";
Alias = "@np";
}
];
};
};
}
)
SearchEngines = {
Default = "ddg";
Add = [
{
Name = "nixpkgs packages";
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
IconURL = "https://wiki.nixos.org/favicon.ico";
Alias = "@np";
}
];
};
};
})
];
};
}
+3 -3
View File
@@ -38,9 +38,9 @@
hyprcursor.size = size;
};
# wayland.windowManager.hyprland.settings.exec-once = [
# "hyprctl setcursor catppuccin-mocha-mauve-cursors 24"
# ];
# wayland.windowManager.hyprland.settings.exec-once = [
# "hyprctl setcursor catppuccin-mocha-mauve-cursors 24"
# ];
catppuccin.enable = true;
# Required for QT apps to use the catppuccin colors
+3 -6
View File
@@ -4,11 +4,8 @@
enable = true;
autoPrune.enable = true;
};
users.users =
lib.genAttrs
users
(_: {
extraGroups = [ "docker" ];
});
users.users = lib.genAttrs users (_: {
extraGroups = [ "docker" ];
});
};
}
+2 -1
View File
@@ -10,7 +10,8 @@
};
};
flake.modules.homeManager.randomized-aghpb-wallpaper = { pkgs, ... }:
flake.modules.homeManager.randomized-aghpb-wallpaper =
{ pkgs, ... }:
let
combined_wallpapers = pkgs.symlinkJoin {
name = "joined-wallpapers";