chore: refactor

This commit is contained in:
♥ Minnie ♥ 2025-03-08 12:02:30 +08:00
parent e21c3a8a1f
commit f06011e890
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
7 changed files with 50 additions and 45 deletions

View file

@ -1,27 +1,23 @@
{ {inputs, ...}: {
inputs,
pkgs,
...
}: {
imports = [ imports = [
./cava ./cava
./discord ./discord
./dunst ./dunst
./gtk
./picom ./picom
./rofi ./rofi
./thunar
./wezterm ./wezterm
]; ];
home.packages = with pkgs; [
feh
];
home.file = { home.file = {
# Install patched fonts
".local/share/fonts" = { ".local/share/fonts" = {
recursive = true; recursive = true;
source = "${inputs.self}/pkgs/patched-fonts"; source = "${inputs.self}/pkgs/patched-fonts";
}; };
# https://www.sainnhe.dev/post/patch-fonts-with-cursive-italic-styles/
# Configure the initialization of xinit
".xinitrc".source = ./xinitrc; ".xinitrc".source = ./xinitrc;
}; };
} }

View file

@ -1,15 +0,0 @@
{pkgs, ...}: {
gtk = {
enable = true;
theme = {
name = "Gruvbox-Material-Dark";
package = pkgs.unstable.gruvbox-material-gtk-theme;
};
iconTheme.name = "Gruvbox-Material-Dark";
};
home.packages = with pkgs; [
xfce.thunar
xfce.ristretto
];
}

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
home.packages = with pkgs; [
xfce.thunar
xfce.ristretto
];
}

View file

@ -9,8 +9,8 @@
./features/university ./features/university
]; ];
home = { # Packages for our user environment
packages = with pkgs; [ home.packages = with pkgs; [
# Graphics # Graphics
gimp gimp
# Hardware # Hardware
@ -22,5 +22,14 @@
# Browsers # Browsers
firefox firefox
]; ];
# Configure GTK 2/3 applications to use gruvbox-material
gtk = {
enable = true;
theme = {
name = "Gruvbox-Material-Dark";
package = pkgs.unstable.gruvbox-material-gtk-theme;
};
iconTheme.name = "Gruvbox-Material-Dark";
}; };
} }

View file

@ -19,7 +19,8 @@
nmap # network mapper nmap # network mapper
xclip # clipboard xclip # clipboard
ripgrep # searches the current directory for a regex pattern ripgrep # searches the current directory for a regex pattern
sshfs # Mount filesystems over SSH sshfs # mount filesystems over SSH
feh # image viewer
# HTTP # HTTP
curl # transfer dato to/from server curl # transfer dato to/from server

View file

@ -3,7 +3,21 @@
inputs, inputs,
... ...
}: { }: {
# Install our XMonad and Xmobar configuration
environment = { environment = {
systemPackages = [inputs.xmonad-config.packages.${pkgs.system}.default]; systemPackages = [inputs.xmonad-config.packages.${pkgs.system}.default];
}; };
# Required dependencies for our xfce/gtk programs
programs = {
# Configuration storage system for xfce
xfconf.enable = true;
};
services = {
# Mount, trash, and other functionalities
gvfs.enable = true;
# Thumbnail support for images
tumbler.enable = true;
};
} }

View file

@ -37,18 +37,12 @@
direnv.enable = true; direnv.enable = true;
# Android debug bridge: communicate with devices # Android debug bridge: communicate with devices
adb.enable = true; adb.enable = true;
# Configuration storage system for xfce
xfconf.enable = true;
}; };
# Configure services # Configure services
services = { services = {
# Access smart cards using SCard API # Access smart cards using SCard API
pcscd.enable = true; pcscd.enable = true;
# Mount, trash, and other functionalities
gvfs.enable = true;
# Thumbnail support for images
tumbler.enable = true;
}; };
# Manage linux containers # Manage linux containers