nixos/users/ruben/home.nix
2024-04-21 22:39:52 -05:00

76 lines
2.9 KiB
Nix

# ╭──────────────────────────────────────────────────────────────────────────────────╮
# │ __ │
# │ / /_ ____ ____ ___ ___ ____ ___ ____ _____ ____ _____ ____ _____ │
# │ / __ \/ __ \/ __ `__ \/ _ \______/ __ `__ \/ __ `/ __ \/ __ `/ __ `/ _ \/ ___/ │
# │ / / / / /_/ / / / / / / __/_____/ / / / / / /_/ / / / / /_/ / /_/ / __/ / │
# │ /_/ /_/\____/_/ /_/ /_/\___/ /_/ /_/ /_/\__,_/_/ /_/\__,_/\__, /\___/_/ │
# │ /____/ │
# │ home manager config │
# ╰──────────────────────────────────────────────────────────────────────────────────╯
{
inputs,
lib,
osConfig,
config,
pkgs,
flake-inputs,
...
}: {
# You can import other home-manager modules here
imports = [
# flatpaks home-manager flake
flake-inputs.flatpaks.homeManagerModules.nix-flatpak
# catppuccin home-manager flake
flake-inputs.catppuccin.homeManagerModules.catppuccin
# plasma-manager
flake-inputs.plasma-manager.homeManagerModules.plasma-manager
# user packages
./packages.nix
# plasma config
./desktop.nix
# theme config
./themes.nix
];
home = {
username = "ruben";
homeDirectory = "/home/ruben";
};
xdg.userDirs.enable = true;
# dotfiles
# modified zsh plugins
home.file.".config/zsh" = {
source = ./config/zsh;
recursive = true;
};
# ╭───────────────────────────────────────────────╮
# │ _ __ _ │
# │ _ __ ___ __| |_ ___ __ ___ _ _ / _(_)__ _ │
# │ | '_ \/ _ (_-< _|___/ _/ _ \ ' \| _| / _` | │
# │ | .__/\___/__/\__| \__\___/_||_|_| |_\__, | │
# │ |_| |___/ │
# │ post-config │
# ╰───────────────────────────────────────────────╯
# post-setup things
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
# Enable home-manager
programs.home-manager.enable = true;
# home-manager should automatically update for me
services.home-manager.autoUpgrade.enable = true;
services.home-manager.autoUpgrade.frequency = "daily";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "23.11";
}