Compare commits
3 Commits
19a4870450
...
ba09321f6b
| Author | SHA1 | Date | |
|---|---|---|---|
| ba09321f6b | |||
| 7d938288ab | |||
| 9f16735547 |
@@ -4,9 +4,10 @@
|
|||||||
myConfig,
|
myConfig,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
# This enables the btop configuration file generation in your home directory.
|
||||||
|
# The btop package itself is now installed system-wide via modules/nixos/btop.nix
|
||||||
programs.btop = {
|
programs.btop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.btop.override {rocmSupport = true;};
|
|
||||||
settings = {
|
settings = {
|
||||||
vim_keys = true;
|
vim_keys = true;
|
||||||
color_theme = "TTY";
|
color_theme = "TTY";
|
||||||
@@ -15,19 +16,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This updates your Hyprland settings to use the btop-power wrapper.
|
||||||
wayland.windowManager.hyprland.settings = lib.mkMerge [
|
wayland.windowManager.hyprland.settings = lib.mkMerge [
|
||||||
{
|
{
|
||||||
bindd = [
|
bindd = [
|
||||||
"CTRL SHIFT, Escape, Open Btop Minimal, exec, uwsm app -- xdg-terminal-exec -e btop -p 2"
|
"CTRL SHIFT, Escape, Open Btop Minimal, exec, uwsm app -- xdg-terminal-exec -e btop-power -p 2"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
(lib.mkIf (myConfig.btop.autostart) {
|
(lib.mkIf (myConfig.btop.autostart) {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"uwsm app -- xdg-terminal-exec -e btop -p 2"
|
"uwsm app -- xdg-terminal-exec -e btop-power -p 2"
|
||||||
];
|
];
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"monitor ${myConfig.btop.monitor}, title:^(btop)$"
|
"monitor ${myConfig.btop.monitor}, title:^(btop)$"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -92,6 +92,26 @@ in {
|
|||||||
tasks = {
|
tasks = {
|
||||||
image_bound = [10000 10000];
|
image_bound = [10000 10000];
|
||||||
};
|
};
|
||||||
|
opener = {
|
||||||
|
pdf = [
|
||||||
|
{
|
||||||
|
run = "zathura \"$@\"";
|
||||||
|
desc = "Open with Zathura";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "firefox \"$@\"";
|
||||||
|
desc = "Open with Firefox";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
open = {
|
||||||
|
rules = [
|
||||||
|
{
|
||||||
|
mime = "application/pdf";
|
||||||
|
use = "pdf";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./apps-optional.nix
|
./apps-optional.nix
|
||||||
./backlight.nix
|
./backlight.nix
|
||||||
|
./btop.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
|
|||||||
@@ -24,11 +24,19 @@
|
|||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
# Complements printer support
|
# Complements printer support
|
||||||
printing.enable = true;
|
printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = with pkgs; [
|
||||||
|
gutenprint
|
||||||
|
cups-filters
|
||||||
|
hplip
|
||||||
|
cups-browsed
|
||||||
|
];
|
||||||
|
};
|
||||||
avahi = {
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
openFirewall = false;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user