- Update flake.nix with 25.11 release and core inputs - Add dedicated modules for audio (Pipewire), bluetooth, and networking - Update GEMINI.md with the new Modular Merging Architecture blueprint - Configure graphical installer ISO and test VM outputs
64 lines
1.7 KiB
Nix
64 lines
1.7 KiB
Nix
{ config, pkgs, inputs, lib, ... }:
|
|
|
|
let
|
|
palettes = import ../../themes/nomarchy-palettes.nix;
|
|
# Reads the state file. If it doesn't exist, defaults to dracula.
|
|
stateFile = "${config.home.homeDirectory}/.config/home-manager/theme-state.nix";
|
|
activeThemeName = if builtins.pathExists stateFile then
|
|
lib.removeSuffix "\n" (builtins.readFile stateFile)
|
|
else "dracula";
|
|
userPackagesFile = "${config.home.homeDirectory}/.config/home-manager/user-packages.json";
|
|
userPackages = if builtins.pathExists userPackagesFile then
|
|
let
|
|
pkgNames = builtins.fromJSON (builtins.readFile userPackagesFile);
|
|
# Filter to only packages that exist in pkgs to prevent build failures
|
|
validPkgs = builtins.filter (name: builtins.hasAttr name pkgs) pkgNames;
|
|
in builtins.map (name: pkgs.${name}) validPkgs
|
|
else [];
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.nix-colors.homeManagerModules.default
|
|
inputs.walker.homeManagerModules.default
|
|
./fonts.nix
|
|
./alacritty.nix
|
|
./nightlight.nix
|
|
./idle.nix
|
|
./stylix.nix
|
|
./hyprland.nix
|
|
./waybar.nix
|
|
./walker.nix
|
|
./theme-switcher.nix
|
|
./scripts.nix
|
|
./configs.nix
|
|
];
|
|
|
|
colorScheme = palettes.${activeThemeName} or palettes.dracula;
|
|
|
|
home.packages = with pkgs; [
|
|
firefox
|
|
thunar
|
|
imv
|
|
mpv
|
|
neovim
|
|
wl-clipboard
|
|
grim
|
|
slurp
|
|
brightnessctl
|
|
playerctl
|
|
pamixer
|
|
mise
|
|
jq
|
|
xmlstarlet
|
|
nerd-fonts.jetbrains-mono
|
|
nerd-fonts.roboto-mono
|
|
nerd-fonts.fira-code
|
|
nerd-fonts.ubuntu-mono
|
|
] ++ userPackages;
|
|
|
|
home.shellAliases = {
|
|
sys-update = "sudo nixos-rebuild switch --flake /etc/nixos#default";
|
|
env-update = "home-manager switch --flake /etc/nixos#default --impure";
|
|
};
|
|
}
|