chore: refactor
This commit is contained in:
		
							parent
							
								
									9555f53d70
								
							
						
					
					
						commit
						e73e614016
					
				
					 7 changed files with 48 additions and 45 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,15 @@
 | 
			
		|||
{...}: {
 | 
			
		||||
{pkgs, ...}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./git.nix
 | 
			
		||||
    ./irc.nix
 | 
			
		||||
    ./mpd.nix
 | 
			
		||||
    ./nvim.nix
 | 
			
		||||
    ./remarkable.nix
 | 
			
		||||
    ./ssh.nix
 | 
			
		||||
    ./zsh.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    pulsemixer
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,12 @@
 | 
			
		|||
{pkgs, ...}: {
 | 
			
		||||
 | 
			
		||||
  # Install some applications for managing mpd 
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    mpc-cli
 | 
			
		||||
    ncmpcpp
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Setup our mpd client service
 | 
			
		||||
  services.mpd = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    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;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,14 +1,24 @@
 | 
			
		|||
{inputs, ...}: {
 | 
			
		||||
{
 | 
			
		||||
  inputs,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./cava
 | 
			
		||||
    ./dunst
 | 
			
		||||
    ./mpv
 | 
			
		||||
    ./picom
 | 
			
		||||
    ./rofi
 | 
			
		||||
    ./thunar
 | 
			
		||||
    ./wezterm
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Install some packages for our desktop environment
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    firefox
 | 
			
		||||
    gimp
 | 
			
		||||
    piper
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  home.file = {
 | 
			
		||||
    # Install patched fonts
 | 
			
		||||
    ".local/share/fonts" = {
 | 
			
		||||
| 
						 | 
				
			
			@ -20,4 +30,14 @@
 | 
			
		|||
    # Configure the initialization of xinit
 | 
			
		||||
    ".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";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +0,0 @@
 | 
			
		|||
{pkgs, ...}: {
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    xfce.thunar
 | 
			
		||||
    xfce.ristretto
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,34 +1,9 @@
 | 
			
		|||
{pkgs, ...}: {
 | 
			
		||||
{...}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./global
 | 
			
		||||
    ./features/cli
 | 
			
		||||
    ./features/desktop
 | 
			
		||||
    ./features/games
 | 
			
		||||
    ./features/printing
 | 
			
		||||
    ./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";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,6 @@
 | 
			
		|||
{outputs, ...}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../features/cli/git.nix
 | 
			
		||||
    ../features/cli/ssh.nix
 | 
			
		||||
    ../features/cli/nvim.nix
 | 
			
		||||
    ../features/cli/zsh.nix
 | 
			
		||||
    ../features/cli
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  nixpkgs = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,17 +3,23 @@
 | 
			
		|||
  inputs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  # Unfortunately some of these cannot be managed by
 | 
			
		||||
  # home-manager, so we must install them to the system.
 | 
			
		||||
 | 
			
		||||
  environment = {
 | 
			
		||||
    systemPackages = [
 | 
			
		||||
      # Required for some XFCE/GTK stuff
 | 
			
		||||
      pkgs.dconf
 | 
			
		||||
      # Picture viewer
 | 
			
		||||
      pkgs.xfce.ristretto
 | 
			
		||||
      # Install our XMonad and Xmobar configuration
 | 
			
		||||
      inputs.xmonad-config.packages.${pkgs.system}.default
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Required dependencies for our xfce/gtk programs
 | 
			
		||||
  programs = {
 | 
			
		||||
    # File browser
 | 
			
		||||
    thunar.enable = true;
 | 
			
		||||
    # Configuration storage system for xfce
 | 
			
		||||
    xfconf.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue