dotfiles/nix-conf/home-manager/home.nix

77 lines
2.1 KiB
Nix
Raw Permalink Normal View History

# This is a nix module, with an additional wrapper from home-manager
# myHome, myLib is injected from extraSpecialArgs in flake.nix
# This file represents the base settings for each machine
# Additional configurations goes to profiles/<user>
# or inlined in flake.nix
2022-11-06 20:23:10 +00:00
{
config,
# Represents the realized final configuration
pkgs,
# This is by default just ``= import <nixpkgs>{}`
2023-06-18 00:46:31 +00:00
myHome,
myLib,
option,
# The options we're given, this might be useful for typesafety?
2023-06-18 00:46:31 +00:00
proj_root,
...
}: let
inherit (myLib) fromYaml;
in {
2022-12-28 02:53:38 +00:00
imports = [
./base/neovim.nix
2022-12-30 10:40:05 +00:00
./base/keepass.nix
2022-12-28 02:53:38 +00:00
];
home = {
username = myHome.username;
homeDirectory = myHome.homeDirectory;
stateVersion = myHome.stateVersion or "22.05";
};
2023-06-18 00:46:31 +00:00
home.packages = pkgs.lib.unique (
[
# pkgs.ncdu
pkgs.rclone # cloud file operations
pkgs.htop # system diagnostics in CLI
pkgs.ripgrep # content fuzzy search
pkgs.unzip # compression
pkgs.zip # compression
2023-06-18 00:46:31 +00:00
# cool utilities
pkgs.yq-go # Yaml adaptor for jq (only pretty print, little query)
# pkgs.xorg.xclock # TODO: only include if have gui # For testing GL installation
# pkgs.logseq # TODO: only include if have GL # Obsidian alt
pkgs.mosh # Parsec for SSH
# pkgs.nixops_unstable # nixops v2 # insecure for now
pkgs.lynx # Web browser at your local terminal
pkgs.zk
2022-12-21 22:49:03 +00:00
2023-06-18 00:46:31 +00:00
# pkgs.tailscale # VPC;; This should be installed in system-nix
pkgs.python310 # dev packages should be in project
# pkgs.python310.numpy
# pkgs.python310Packages.tensorflow
# pkgs.python310Packages.scikit-learn
]
++ (myHome.packages or [])
++ (
if pkgs.system == "x86_64-linux"
then [
pkgs.logseq
]
else []
)
);
2022-11-06 20:23:10 +00:00
2023-06-18 00:46:31 +00:00
## Configs ##
xdg.configFile."zk/config.toml".source = "${proj_root.config.path}//zk/config.toml";
2022-11-06 22:22:09 +00:00
## Programs ##
2022-11-09 13:00:23 +00:00
programs.jq = {
enable = true;
};
2022-12-24 04:11:56 +00:00
programs.nix-index = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
base.keepass.enable = true;
2022-11-06 20:23:10 +00:00
}