36 lines
945 B
Nix
36 lines
945 B
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";
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.nix-colors.homeManagerModules.default
|
|
inputs.walker.homeManagerModules.default
|
|
./fonts.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; [
|
|
alacritty
|
|
];
|
|
|
|
home.shellAliases = {
|
|
sys-update = "sudo nixos-rebuild switch --flake /etc/nixos#default";
|
|
env-update = "home-manager switch --flake /etc/nixos#default --impure";
|
|
};
|
|
}
|