chore: refactor

This commit is contained in:
♥ Minnie ♥ 2025-05-01 12:00:03 +08:00
parent 9555f53d70
commit e73e614016
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
7 changed files with 48 additions and 45 deletions

View file

@ -1,7 +1,15 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
./git.nix
./irc.nix ./irc.nix
./mpd.nix ./mpd.nix
./nvim.nix
./remarkable.nix ./remarkable.nix
./ssh.nix
./zsh.nix
];
home.packages = with pkgs; [
pulsemixer
]; ];
} }

View file

@ -1,4 +1,12 @@
{pkgs, ...}: { {pkgs, ...}: {
# Install some applications for managing mpd
home.packages = with pkgs; [
mpc-cli
ncmpcpp
];
# Setup our mpd client service
services.mpd = { services.mpd = {
enable = true; enable = true;
musicDirectory = "nfs://viridian.home.arpa/srv/multimedia/library/music"; musicDirectory = "nfs://viridian.home.arpa/srv/multimedia/library/music";
@ -17,9 +25,4 @@
} }
''; '';
}; };
services.mpd-discord-rpc = {
enable = true;
package = pkgs.unstable.mpd-discord-rpc;
};
} }

View file

@ -1,14 +1,24 @@
{inputs, ...}: { {
inputs,
pkgs,
...
}: {
imports = [ imports = [
./cava ./cava
./dunst ./dunst
./mpv ./mpv
./picom ./picom
./rofi ./rofi
./thunar
./wezterm ./wezterm
]; ];
# Install some packages for our desktop environment
home.packages = with pkgs; [
firefox
gimp
piper
];
home.file = { home.file = {
# Install patched fonts # Install patched fonts
".local/share/fonts" = { ".local/share/fonts" = {
@ -20,4 +30,14 @@
# Configure the initialization of xinit # Configure the initialization of xinit
".xinitrc".source = ./xinitrc; ".xinitrc".source = ./xinitrc;
}; };
# 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

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

View file

@ -1,34 +1,9 @@
{pkgs, ...}: { {...}: {
imports = [ imports = [
./global ./global
./features/cli
./features/desktop ./features/desktop
./features/games ./features/games
./features/printing ./features/printing
./features/university ./features/university
]; ];
# Packages for our user environment
home.packages = with pkgs; [
# Graphics
gimp
# Hardware
piper
pulsemixer
# Multimedia
mpc-cli
ncmpcpp
# Browsers
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

@ -1,9 +1,6 @@
{outputs, ...}: { {outputs, ...}: {
imports = [ imports = [
../features/cli/git.nix ../features/cli
../features/cli/ssh.nix
../features/cli/nvim.nix
../features/cli/zsh.nix
]; ];
nixpkgs = { nixpkgs = {

View file

@ -3,17 +3,23 @@
inputs, inputs,
... ...
}: { }: {
# Unfortunately some of these cannot be managed by
# home-manager, so we must install them to the system.
environment = { environment = {
systemPackages = [ systemPackages = [
# Required for some XFCE/GTK stuff # Required for some XFCE/GTK stuff
pkgs.dconf pkgs.dconf
# Picture viewer
pkgs.xfce.ristretto
# Install our XMonad and Xmobar configuration # Install our XMonad and Xmobar configuration
inputs.xmonad-config.packages.${pkgs.system}.default inputs.xmonad-config.packages.${pkgs.system}.default
]; ];
}; };
# Required dependencies for our xfce/gtk programs
programs = { programs = {
# File browser
thunar.enable = true;
# Configuration storage system for xfce # Configuration storage system for xfce
xfconf.enable = true; xfconf.enable = true;
}; };