home-manager: modularized configs

This commit is contained in:
Aly Raffauf 2024-03-24 10:59:08 -04:00
parent 5b3e78e185
commit 970e840c16
11 changed files with 85 additions and 55 deletions

View file

@ -3,8 +3,11 @@
{ {
imports = [ imports = [
./gnome.nix ./gnome.nix
./shell.nix ./shell
./hyprland.nix ./hypr
./waybar
./mako
./bemenu
]; ];
home.username = "aly"; home.username = "aly";

7
home/bemenu/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
programs.bemenu = {
enable = true;
};
}

34
home/hypr/default.nix Normal file
View file

@ -0,0 +1,34 @@
{ config, pkgs, ... }:
{
# Packages that should be installed to the user profile.
home.packages = with pkgs; [
brightnessctl
hyprcursor
hypridle
hyprlock
hyprpaper
hyprshade
hyprshot
playerctl
udiskie
];
services.mako = {
enable = true;
font = "DroidSansM Nerd Font Mono 11";
backgroundColor = "#00000080";
textColor = "#FFFFFF";
borderRadius = 10;
defaultTimeout = 10000;
padding = "15";
};
wayland.windowManager.hyprland = {
enable = true;
extraConfig = builtins.readFile ./hyprland.conf;
};
xdg.configFile."hypr/hypridle.conf".source = ./hypridle.conf;
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
}

13
home/mako/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
services.mako = {
enable = true;
font = "DroidSansM Nerd Font Mono 11";
backgroundColor = "#00000080";
textColor = "#FFFFFF";
borderRadius = 10;
defaultTimeout = 10000;
padding = "15";
};
}

View file

@ -7,8 +7,10 @@
curl curl
gh gh
git git
wget
nixfmt nixfmt
python3
ruby
wget
]; ];
programs.bash = { programs.bash = {
@ -41,7 +43,7 @@
]) ])
); );
package = pkgs.emacs-nox; package = pkgs.emacs-nox;
extraConfig = builtins.readFile ./dotfiles/emacs.el; extraConfig = builtins.readFile ./emacs.el;
}; };
programs.eza = { programs.eza = {

View file

@ -3,62 +3,13 @@
{ {
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = with pkgs; [ home.packages = with pkgs; [
bemenu
brightnessctl
hyprcursor
hypridle
hyprlock
hyprpaper
hyprshade
hyprshot
mako
overskride overskride
pavucontrol pavucontrol
playerctl
udiskie
]; ];
services.mako = { xdg.configFile."waybar/style.css".source = ./waybar.css;
enable = true;
font = "DroidSansM Nerd Font Mono 11";
backgroundColor = "#00000080";
textColor = "#FFFFFF";
borderRadius = 10;
defaultTimeout = 10000;
padding = "15";
};
wayland.windowManager.hyprland = {
enable = true;
extraConfig = builtins.readFile ./dotfiles/hyprland.conf;
};
xdg.configFile."hypr/hypridle.conf".source = ./dotfiles/hypridle.conf;
xdg.configFile."hypr/hyprlock.conf".source = ./dotfiles/hyprlock.conf;
programs.waybar.enable = true; programs.waybar.enable = true;
programs.waybar.style = ''
* {
border: none;
border-radius: 0;
font-family: DroidSansM Nerd Font Mono;
font-size: 14px;
}
window#waybar {
background: rgba (0, 0, 0, 0.5);
color: #FFFFFF;
}
#workspaces button {
padding: 5px 10px;
background: #000;
color: #FFFFFF;
}
#clock, #battery, #pulseaudio, #bluetooth, #network, #tray, #power-profiles-daemon {
padding: 0 10px;
margin: 0 5px;
}
#battery.critical { color: red; }
'';
programs.waybar.settings = { programs.waybar.settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
@ -73,7 +24,7 @@
modules-right = [ "tray" "bluetooth" "network" "pulseaudio" "battery" "power-profiles-daemon" "clock"]; modules-right = [ "tray" "bluetooth" "network" "pulseaudio" "battery" "power-profiles-daemon" "clock"];
"hyprland/workspaces" = { "hyprland/workspaces" = {
all-outputs = true; "all-outputs" = true;
}; };
"hyprland/window" = { "hyprland/window" = {
"max-length" = 150; "max-length" = 150;

20
home/waybar/waybar.css Normal file
View file

@ -0,0 +1,20 @@
* {
border: none;
border-radius: 0;
font-family: "DroidSansM Nerd Font Mono";
font-size: 14px;
}
window#waybar {
background: rgba (0, 0, 0, 0.5);
color: #FFFFFF;
}
#workspaces button {
padding: 5px 10px;
background: #000;
color: #FFFFFF;
}
#clock, #battery, #pulseaudio, #bluetooth, #network, #tray, #power-profiles-daemon {
padding: 0 10px;
margin: 0 5px;
}
#battery.critical { color: red; }