nix-git/yodaTab/home-manager.nix

67 lines
1.8 KiB
Nix
Raw Normal View History

2023-08-15 20:55:27 +02:00
{ config, pkgs, ... }:
let
2023-08-31 13:13:47 +02:00
# Import Home Manager with niv.
2023-08-15 20:55:27 +02:00
home-manager = (import ./nix/sources.nix).home-manager;
in
{
imports = [
(import "${home-manager}/nixos")
2023-08-31 14:02:30 +02:00
./git.home.nix
2023-08-31 14:07:09 +02:00
./nitrokey-ssh-gpg.home.nix
2023-08-15 20:55:27 +02:00
];
2023-08-31 13:13:43 +02:00
/* Enable home-manager to configure GNOME */
programs.dconf.enable = true;
2023-08-15 20:55:27 +02:00
home-manager.users.yoda = {
/* The home.stateVersion option does not have a default and must be set */
2023-08-16 18:28:29 +02:00
/* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */
2023-08-15 20:55:27 +02:00
home.stateVersion = "23.05";
2023-08-16 18:28:29 +02:00
2023-08-15 20:55:27 +02:00
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
2023-08-28 17:17:01 +02:00
#home.username = "yoda";
#home.homeDirectory = "/home/yoda";
2023-08-31 13:13:47 +02:00
2023-08-15 20:55:27 +02:00
#services.gpg-agent = {
# enable = true;
# enableSshSupport = true;
# defaultCacheTtl = 1800;
#};
2023-08-28 17:17:01 +02:00
2023-08-28 17:52:35 +02:00
# TODO: See history.path below.
2023-08-28 17:17:01 +02:00
# xdg = {
# enable = true;
# #dataHome = "${config.xdg.home.homeDirectory}/.local/share";
# };
programs.zsh = {
enable = true;
shellAliases = {
#ll = "ls -l";
#update = "sudo nixos-rebuild switch";
};
history.size = 1000;
2023-08-28 17:52:35 +02:00
history.ignoreDups = true;
2023-08-28 17:17:01 +02:00
#history.ignoreAllDups = true;
2023-08-28 17:52:35 +02:00
# TODO:
# Currently, `config` is my NixOS config. However, I want to access Home Manager's `config`.
# I could change home-manager.users.yoda to be a function and take config as an argument there.
#history.path = "${config.xdg.dataHome}/.histfile";
oh-my-zsh = {
enable = true;
2023-08-28 19:33:33 +02:00
plugins = [
# Provides many aliases and a few useful functions.
#"git"
# Easily prefix your current or previous commands with sudo by pressing `esc` twice.
#"sudo"
];
2023-08-28 17:52:35 +02:00
#theme = "robbyrussell";
theme = "agnoster";
};
2023-08-28 17:17:01 +02:00
};
2023-08-15 20:55:27 +02:00
};
}