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

69 lines
2.0 KiB
Nix
Raw 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
{ config # Represents the realized final configuration
, pkgs # This is by default just ``= import <nixpkgs>{}`
2022-11-09 11:35:28 +00:00
, myHome
2022-12-08 21:00:53 +00:00
, myLib
, option # The options we're given, this might be useful for typesafety?
, proj_root
2022-11-09 11:35:28 +00:00
, ...
}:
2022-12-03 06:43:44 +00:00
let
2022-12-08 21:00:53 +00:00
inherit (myLib) fromYaml;
2022-12-03 06:43:44 +00:00
in
2022-11-06 20:23:10 +00:00
{
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";
};
home.packages = pkgs.lib.unique ([
2022-12-23 22:51:04 +00:00
# pkgs.ncdu
pkgs.rclone # cloud file operations
pkgs.htop # system diagnostics in CLI
pkgs.ripgrep # content fuzzy search
pkgs.unzip # compression
pkgs.zip # compression
# cool utilities
pkgs.yq # Yaml adaptor for jq (only pretty print, little query)
2022-12-30 08:45:15 +00:00
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
2022-12-15 19:45:30 +00:00
# pkgs.nixops_unstable # nixops v2 # insecure for now
pkgs.lynx # Web browser at your local terminal
2022-12-30 08:45:15 +00:00
pkgs.zk
2022-12-21 22:49:03 +00:00
# pkgs.tailscale # VPC;; This should be installed in system-nix
2022-12-15 19:30:14 +00:00
pkgs.python310 # dev packages should be in project
2022-11-09 15:35:44 +00:00
# pkgs.python310.numpy
# pkgs.python310Packages.tensorflow
# pkgs.python310Packages.scikit-learn
] ++ (myHome.packages or [ ])
);
2022-11-06 20:23:10 +00:00
2022-11-06 22:22:09 +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;
};
# not exist in home-manager
# have to do it at system level
# services.ntp.enable = true; # automatic time
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
}