mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 10:33:55 -05:00
home-manager: modularized configs
This commit is contained in:
parent
5b3e78e185
commit
970e840c16
|
@ -3,8 +3,11 @@
|
|||
{
|
||||
imports = [
|
||||
./gnome.nix
|
||||
./shell.nix
|
||||
./hyprland.nix
|
||||
./shell
|
||||
./hypr
|
||||
./waybar
|
||||
./mako
|
||||
./bemenu
|
||||
];
|
||||
|
||||
home.username = "aly";
|
||||
|
|
7
home/bemenu/default.nix
Normal file
7
home/bemenu/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.bemenu = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
34
home/hypr/default.nix
Normal file
34
home/hypr/default.nix
Normal 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
13
home/mako/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -7,8 +7,10 @@
|
|||
curl
|
||||
gh
|
||||
git
|
||||
wget
|
||||
nixfmt
|
||||
python3
|
||||
ruby
|
||||
wget
|
||||
];
|
||||
|
||||
programs.bash = {
|
||||
|
@ -41,7 +43,7 @@
|
|||
])
|
||||
);
|
||||
package = pkgs.emacs-nox;
|
||||
extraConfig = builtins.readFile ./dotfiles/emacs.el;
|
||||
extraConfig = builtins.readFile ./emacs.el;
|
||||
};
|
||||
|
||||
programs.eza = {
|
|
@ -3,62 +3,13 @@
|
|||
{
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
bemenu
|
||||
brightnessctl
|
||||
hyprcursor
|
||||
hypridle
|
||||
hyprlock
|
||||
hyprpaper
|
||||
hyprshade
|
||||
hyprshot
|
||||
mako
|
||||
overskride
|
||||
pavucontrol
|
||||
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 ./dotfiles/hyprland.conf;
|
||||
};
|
||||
|
||||
xdg.configFile."hypr/hypridle.conf".source = ./dotfiles/hypridle.conf;
|
||||
xdg.configFile."hypr/hyprlock.conf".source = ./dotfiles/hyprlock.conf;
|
||||
xdg.configFile."waybar/style.css".source = ./waybar.css;
|
||||
|
||||
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 = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
|
@ -73,7 +24,7 @@
|
|||
modules-right = [ "tray" "bluetooth" "network" "pulseaudio" "battery" "power-profiles-daemon" "clock"];
|
||||
|
||||
"hyprland/workspaces" = {
|
||||
all-outputs = true;
|
||||
"all-outputs" = true;
|
||||
};
|
||||
"hyprland/window" = {
|
||||
"max-length" = 150;
|
20
home/waybar/waybar.css
Normal file
20
home/waybar/waybar.css
Normal 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; }
|
Loading…
Reference in a new issue