2022-12-09 06:48:46 +00:00
|
|
|
# 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
|
2022-12-06 03:09:36 +00:00
|
|
|
, 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
|
2022-12-09 06:48:46 +00:00
|
|
|
, option # The options we're given, this might be useful for typesafety?
|
2022-12-26 10:42:14 +00:00
|
|
|
, 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
|
|
|
];
|
2022-11-08 19:14:47 +00:00
|
|
|
home = {
|
|
|
|
username = myHome.username;
|
|
|
|
homeDirectory = myHome.homeDirectory;
|
|
|
|
stateVersion = myHome.stateVersion or "22.05";
|
|
|
|
};
|
2022-11-29 23:36:35 +00:00
|
|
|
home.packages = pkgs.lib.unique ([
|
2022-12-23 22:51:04 +00:00
|
|
|
# pkgs.ncdu
|
2023-01-13 06:42:21 +00:00
|
|
|
pkgs.rclone # cloud file operations
|
|
|
|
pkgs.htop # system diagnostics in CLI
|
|
|
|
pkgs.ripgrep # content fuzzy search
|
|
|
|
pkgs.unzip # compression
|
|
|
|
pkgs.zip # compression
|
2022-11-29 23:36:35 +00:00
|
|
|
|
|
|
|
# cool utilities
|
2023-01-13 06:42:21 +00:00
|
|
|
pkgs.yq # Yaml adaptor for jq (only pretty print, little query)
|
2023-01-13 06:51:50 +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
|
2022-11-29 23:36:35 +00:00
|
|
|
pkgs.mosh # Parsec for SSH
|
2022-12-15 19:45:30 +00:00
|
|
|
# pkgs.nixops_unstable # nixops v2 # insecure for now
|
2022-11-29 23:36:35 +00:00
|
|
|
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
|
|
|
|
2022-11-24 01:26:56 +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
|
2023-01-13 06:51:50 +00:00
|
|
|
] ++ (myHome.packages or [ ]) ++ (if pkgs.system == "x86_64-linux" then [
|
|
|
|
pkgs.logseq
|
|
|
|
] else [ ])
|
2022-12-26 11:03:56 +00:00
|
|
|
);
|
2022-11-06 20:23:10 +00:00
|
|
|
|
2022-11-06 22:22:09 +00:00
|
|
|
## Configs ##
|
2022-12-26 10:42:14 +00:00
|
|
|
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-21 23:42:59 +00:00
|
|
|
# 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;
|
|
|
|
};
|
2022-12-30 14:10:55 +00:00
|
|
|
base.keepass.enable = true;
|
2022-11-06 20:23:10 +00:00
|
|
|
}
|