nixos 26.05

This commit is contained in:
müde 2026-05-27 19:21:09 +02:00
parent 246ce7eeb1
commit 2397049d74
10 changed files with 102 additions and 156 deletions

View file

@ -104,5 +104,7 @@
};
services.poweralertd.enable = true;
gtk.gtk4.theme = null;
};
}

View file

@ -49,7 +49,7 @@
};
};
container = {
format = "\[$symbol$name\]";
format = "[$symbol$name]";
};
directory = {
format = "$path[( $read_only)]($read_only_style)";
@ -91,7 +91,7 @@
package = {
symbol = "󰏗";
format = "$symbol$version ";
version_format = "$\{raw\}";
version_format = "\${raw}";
};
rust = {
symbol = "󱘗";
@ -100,7 +100,7 @@
};
nix_shell = {
symbol = "";
format = "$symbol( \($name\))";
format = "$symbol( ($name))";
};
status = {

View file

@ -6,7 +6,7 @@
in
{
enable = true;
systemdTarget = "graphical-session.target";
systemdTargets = [ "graphical-session.target" ];
timeouts = [
{
timeout = 30;
@ -17,11 +17,8 @@
command = "${pkgs.systemd}/bin/systemctl suspend";
}
];
events = [
{
event = "before-sleep";
command = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
}
];
events = {
before-sleep = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
};
};
}

View file

@ -5,9 +5,8 @@
NIXOS_OZONE_WL = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
};
programs.vscode = {
programs.vscodium = {
enable = true;
package = pkgs.vscodium;
profiles.default = {
enableUpdateCheck = false;
extensions =
@ -83,16 +82,16 @@
"dotnetAcquisitionExtension.sharedExistingDotnetPath" =
"${lib.getBin pkgs.dotnetCorePackages.sdk_9_0}/bin/dotnet";
"\[makefile\]" = {
"[makefile]" = {
"editor.insertSpaces" = false;
"editor.detectIndentation" = false;
};
"\[nix\]" = {
"[nix]" = {
"editor.formatOnSave" = false;
};
"\[css\]" = {
"[css]" = {
"editor.formatOnSave" = false;
};
};

View file

@ -158,8 +158,9 @@
backlight = {
device = "intel_backlight";
format = "{percent}% ";
on-scroll-down = "light -U 1";
on-scroll-up = "light -A 1";
# `light` removed in nixpkgs 26.05; migrate to brightnessctl when re-enabling backlight module
# on-scroll-down = "light -U 1";
# on-scroll-up = "light -A 1";
};
cpu = {
interval = 1;

View file

@ -2,9 +2,8 @@
{
config = {
home.sessionVariables.NIXOS_OZONE_WL = "1";
programs.vscode = {
programs.vscodium = {
enable = true;
package = pkgs.vscodium;
profiles.default = {
enableUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
@ -52,12 +51,12 @@
"nix.formatterPath" = "${lib.getBin pkgs.nixfmt-rfc-style}/bin/nixfmt";
"\[makefile\]" = {
"[makefile]" = {
"editor.insertSpaces" = false;
"editor.detectIndentation" = false;
};
"\[nix\]" = {
"[nix]" = {
"editor.formatOnSave" = false;
};
};