nixos/modules/home-manager/home.nix

114 lines
2.7 KiB
Nix

{ config, pkgs, userName, hostName, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = userName;
home.homeDirectory = "/home/${userName}";
programs.home-manager.enable = true;
home.stateVersion = "23.11"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
bat
corectrl
fd
firefox
foot
fzf
kakoune
keepassxc
mako
networkmanagerapplet
xfce.thunar
thunar
waybar
wofi
# Install fonts
(nerdfonts.override { fonts = [ "Hermit" ]; })
overpass
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file."${config.xdg.configHome}" = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
source = ../../dotfiles;
recursive = true;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. If you don't want to manage your shell through Home
# Manager then you have to manually source 'hm-session-vars.sh' located at
# either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/nate/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
EDITOR = "kak";
};
wayland.windowManager.sway = {
enable = true;
config = rec {
modifier = "Mod4";
terminal = "foot";
# startup = [
# {command = "firefox";}
# ];
};
};
# kdeconnect setup
services.kdeconnect = {
enabled = true;
indicator = true;
};
# Git setup
programs.git = {
enabled = true;
};
# Zsh setup
programs.zsh = {
enable = true;
#history = {
# Size = 10000;
#};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "half-life";
};
};
}