This commit is contained in:
Miguel Palhas
2025-01-05 09:02:50 +00:00
8 changed files with 25 additions and 61 deletions
-6
View File
@@ -15,12 +15,6 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland.git";
ref = "refs/tags/v0.45.2";
submodules = true;
};
nix-colors.url = "github:misterio77/nix-colors"; nix-colors.url = "github:misterio77/nix-colors";
nixvim.url = "github:nix-community/nixvim"; nixvim.url = "github:nix-community/nixvim";
catppuccin.url = "github:catppuccin/nix"; catppuccin.url = "github:catppuccin/nix";
+7
View File
@@ -18,6 +18,13 @@
pavucontrol pavucontrol
zathura zathura
lxappearance lxappearance
xournalpp
jq
# networking
networkmanagerapplet
mtr
dnsutils
# networking # networking
networkmanagerapplet networkmanagerapplet
+13 -32
View File
@@ -14,6 +14,7 @@ in
pamixer pamixer
hyprshot hyprshot
hyprpanel hyprpanel
playerctl
]; ];
home.sessionVariables = { home.sessionVariables = {
@@ -23,31 +24,14 @@ in
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
decoration = {
blur = {
enabled = "yes";
size = 30;
passes = 1;
new_optimizations = "on";
};
# shadow = {
# range = 2;
# render_power = 4;
# };
};
input = { input = {
kb_layout = "us";
kb_options = "ctrl:nocaps"; kb_options = "ctrl:nocaps";
follow_mouse = 1;
repeat_delay = 150; repeat_delay = 150;
repeat_rate = 25;
touchpad = { touchpad = {
natural_scroll = "yes"; natural_scroll = "yes";
}; };
numlock_by_default = "true"; numlock_by_default = 2;
}; };
cursor = { cursor = {
@@ -83,14 +67,6 @@ in
}; };
dwindle = {
preserve_split = "yes";
};
master = {
orientation = "center";
};
env = [ env = [
"GDK_SCALE, 1.5" "GDK_SCALE, 1.5"
"XCURSOR_SIZE, 32" "XCURSOR_SIZE, 32"
@@ -121,6 +97,7 @@ in
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
bind = [ bind = [
"$mod, t, exec, kitty" "$mod, t, exec, kitty"
"$mod, e, exec, thunar" "$mod, e, exec, thunar"
@@ -169,16 +146,20 @@ in
"$mod, mouse_down, workspace, e+1" "$mod, mouse_down, workspace, e+1"
"$mod, mouse_up, workspace, e-1" "$mod, mouse_up, workspace, e-1"
# media ];
", XF86AudioRaiseVolume, exec, volumectl -u up"
", XF86AudioLowerVolume, exec, volumectl -u down" bindel = [
", XF86AudioMute, exec, volumectl toggle-mute" ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86MonBrightnessUp, exec, brightnessctl set 5%+"
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
];
bindl = [
", XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle"
", XF86AudioMicMute, exec, volumectl -m toggle-mute" ", XF86AudioMicMute, exec, volumectl -m toggle-mute"
", XF86AudioNext, exec, playerctl next" ", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous" ", XF86AudioPrev, exec, playerctl previous"
", XF86AudioPlay, exec, playerctl play-pause" ", XF86AudioPlay, exec, playerctl play-pause"
", XF86MonBrightnessUp, exec, brightnessctl set 5%+"
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
]; ];
bindm = [ bindm = [
+2 -2
View File
@@ -10,8 +10,8 @@
enabled_layouts = "tall, grid, fat, splits"; enabled_layouts = "tall, grid, fat, splits";
# font # font
font_family = "FiraCode Nerd Font Regular"; font_family = "FiraCode Nerd Font Mono";
bold_font = "FiraCode Nerd Font Bold"; bold_font = "FiraCode Nerd Font Mono Bold";
italic_font = "VictorMono Nerd Font Mono Oblique"; italic_font = "VictorMono Nerd Font Mono Oblique";
bold_italic_font = "VictorMono Nerd Font Mono Bold Oblique"; bold_italic_font = "VictorMono Nerd Font Mono Bold Oblique";
disable_ligatures = "cursor"; disable_ligatures = "cursor";
-4
View File
@@ -4,10 +4,6 @@
config, config,
... ...
}: }:
let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
hyprland-session = "${pkgs.hyprland}/share/wayland-sessions";
in
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
+2 -8
View File
@@ -10,15 +10,9 @@
packages = with pkgs; [ packages = with pkgs; [
ubuntu_font_family ubuntu_font_family
libertine libertine
fira-code nerd-fonts.fira-code
fira-code-symbols nerd-fonts.victor-mono
roboto roboto
(nerdfonts.override {
fonts = [
"FiraCode"
"VictorMono"
];
})
]; ];
fontconfig = { fontconfig = {
+1 -5
View File
@@ -4,10 +4,6 @@
config, config,
... ...
}: }:
let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
hyprland-session = "${pkgs.hyprland}/share/wayland-sessions";
in
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -50,7 +46,7 @@ in
let let
authorizedKeys = pkgs.fetchurl { authorizedKeys = pkgs.fetchurl {
url = "https://github.com/naps62.keys"; url = "https://github.com/naps62.keys";
sha256 = "sha256-v0WtkeIENYjPnHjRUkhfKkEMTa/0DGF6qA6+jBsx+B0="; sha256 = "sha256-xVrGO4Cultc3tPcnLFKLa98btLh7EAl3tLM1MTvwmn8=";
}; };
in in
pkgs.lib.splitString "\n" (builtins.readFile authorizedKeys); pkgs.lib.splitString "\n" (builtins.readFile authorizedKeys);
-4
View File
@@ -4,10 +4,6 @@
config, config,
... ...
}: }:
let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
hyprland-session = "${pkgs.hyprland}/share/wayland-sessions";
in
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix