rix101/hosts/nix-darwin/x86_64-darwin/apavel-a01/home/apavel.nix
reo101 2941536b80
refactor(flake)!: export packages using a flake module
Also stop passing `outputs` around, prefer `inputs.self`
Also put all `auto_` in `readOnly` `internal` options
- `autoModules`, `autoConfigurations` and `autoPackages`
Do not export packages as overlay (causes an infinite recursion)
- this is documented on the two places it has effect on
-- in `./overlays/default.nix` and `./modules/flake/configurations.nix`
-- in `autoConfigurations` we manually extend `pkgs` with the flake packages
Allow packages to say what `systems` they are compatible with
- See `./pkgs/swww/systems.nix` - disabled for all systems
- See `./pkgs/pngpaste/systems.nix` - enabled only for `darwin` targets
2024-07-29 01:54:22 +03:00

53 lines
1 KiB
Nix

{ inputs, lib, pkgs, config, ... }:
{
home = {
# username = "apavel";
# homeDirectory = "/Users/apavel";
stateVersion = "22.05";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = with pkgs; [
# Dhall
dhall
# dhall-lsp-server
# Nix
nil
# Zig
zigpkgs.master
inputs.zls-overlay.packages.x86_64-darwin.default
];
programs.git = {
enable = true;
userName = "apavel";
userEmail = "apavel@vmware.com";
signing = {
signByDefault = true;
key = "0x52F3E1D376F692C0";
};
};
# services.gpg-agent = {
# enable = true;
# defaultCacheTtl = 1800;
# enableSshSupport = true;
# };
# home.file.".stack/config.yaml".text = lib.generators.toYAML {} {
# templates = {
# scm-init = "git";
# params = with config.programs.git; {
# author-name = userName;
# author-email = userEmail;
# github-username = userName;
# };
# };
# nix.enable = true;
# };
}