nix-home/home/macbook-home.nix

79 lines
1.9 KiB
Nix
Raw Normal View History

2021-12-08 19:21:58 +00:00
{ config, pkgs, lib, ... }:
2021-09-29 16:31:49 +00:00
{
2021-09-29 16:38:27 +00:00
imports = [ ./common.nix ];
2021-12-08 19:21:58 +00:00
2021-09-29 16:31:49 +00:00
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "nki";
home.homeDirectory = "/Users/nki";
2021-09-29 16:38:27 +00:00
# Additional packages to be used only on this MacBook.
2021-09-29 16:31:49 +00:00
home.packages = with pkgs; [
2021-12-08 19:21:58 +00:00
pkgs.x86.anki-bin
2021-09-29 16:31:49 +00:00
];
2021-09-29 16:39:40 +00:00
# Additional settings for programs
programs.fish.shellAliases = {
2021-12-08 19:21:58 +00:00
brew64 = "arch -x86_64 /usr/local/bin/brew";
};
2022-12-12 12:19:23 +00:00
nki.programs.kitty.enable = true;
nki.programs.kitty.package = pkgs.hello; # We install kitty for ourselves
nki.programs.kitty.background = ./images/chise-bg.png;
2021-12-08 19:21:58 +00:00
home.sessionPath = [
# Personal .bin
"$HOME/.bin"
"$HOME/.local/bin"
# Rust
"$HOME/.cargo/bin"
# Haskell
"$HOME/.ghcup/bin"
"$HOME/.cabal/bin"
# Go
"$HOME/go/bin"
# Node.js
"$HOME/.local/opt/node/bin"
# Ruby
"$HOME/.gem/bin"
"$HOME/.gem/ruby/2.7.0/bin"
];
home.sessionVariables = {
VISUAL = "$EDITOR";
# Other C++ stuff
LIBRARY_PATH = lib.concatStringsSep ":" [
"$LIBRARY_PATH"
"$HOME/.local/share/lib"
];
CPATH = lib.concatStringsSep ":" [
"$CPATH"
"$HOME/.local/share/include"
];
# Ruby
GEM_HOME = "$HOME/.gem";
# .NET
DOTNET_CLI_TELEMETRY_OPTOUT = "true";
2022-05-13 21:16:52 +00:00
# Override home-manager package path to first
PATH = "/etc/profiles/per-user/${config.home.username}/bin:$PATH";
2021-09-29 16:39:40 +00:00
};
2021-09-29 16:31:49 +00:00
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
}