mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-02-23 13:42:05 +00:00
Need to commit and push for community help at @hackclub slack later. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
211 lines
6.3 KiB
Nix
211 lines
6.3 KiB
Nix
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
vscExts = (import ../../../shared/vscode-extensions.nix) {
|
|
pkgs = pkgs;
|
|
lib = lib;
|
|
};
|
|
#extList = lib.attrsets.mapAttrsToList (name: value: value) vscExts;
|
|
in
|
|
with pkgs;
|
|
{
|
|
# https://fnordig.de/til/nix/home-manager-allow-unfree.html
|
|
nixpkgs = {
|
|
config = {
|
|
allowUnfree = true;
|
|
# https://github.com/nix-community/home-manager/issues/2942
|
|
allowUnfreePredicate = (_: true);
|
|
};
|
|
};
|
|
|
|
# Home Manager needs a bit of information about you and the paths it should
|
|
# manage. Also don't ask how we got here on the roleplaying part.
|
|
home.username = "gildedguy";
|
|
home.homeDirectory = "/home/gildedguy";
|
|
|
|
# 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 should not change this value, even if you update Home Manager. If you do
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
# release notes.
|
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
# environment.
|
|
home.packages = with pkgs; [
|
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
|
# # "Hello, world!" when run.
|
|
# pkgs.hello
|
|
|
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
|
# # overrides. You can do that directly here, just don't forget the
|
|
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
|
# # fonts?
|
|
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
|
|
# # You can also create simple shell scripts directly inside your
|
|
# # configuration. For example, this adds a command 'my-hello' to your
|
|
# # environment:
|
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
# echo "Hello, ${config.home.username}!"
|
|
# '')
|
|
|
|
## devtools ##
|
|
# https://httpie.io
|
|
httpie
|
|
# https://devenv.sh
|
|
devenv
|
|
# https://cli.github.com
|
|
gh
|
|
# bet we'll going to have a field day since Copilot is now available for free
|
|
# (this is seperate from the gh copilot extension for those asking)
|
|
# context: https://github.blog/news-insights/product-news/github-copilot-in-vscode-free/
|
|
github-copilot-cli
|
|
# markdownlint
|
|
markdownlint-cli
|
|
# https://doppler.com
|
|
doppler
|
|
|
|
## programming languages
|
|
deno
|
|
nodejs_22
|
|
python313
|
|
pipx
|
|
pipenv
|
|
|
|
## language servers ##
|
|
# nix language server - https://github.com/oxalica/nil
|
|
nil
|
|
# https://github.com/alesbrelih/gitlab-ci-ls
|
|
gitlab-ci-ls
|
|
];
|
|
|
|
home.sessionPath = [
|
|
"$HOME/bin"
|
|
];
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
# plain files is through 'home.file'.
|
|
home.file = {
|
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
|
# # symlink to the Nix store copy.
|
|
# ".screenrc".source = dotfiles/screenrc;
|
|
|
|
# # You can also set the file content immediately.
|
|
# ".gradle/gradle.properties".text = ''
|
|
# org.gradle.console=verbose
|
|
# org.gradle.daemon.idletimeout=3600000
|
|
# '';
|
|
};
|
|
|
|
# Home Manager can also manage your environment variables through
|
|
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
|
# shell provided by Home Manager. If you don't want to manage your shell
|
|
# through Home Manager then you have to manually source 'hm-session-vars.sh'
|
|
# located at either
|
|
#
|
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
#
|
|
# or
|
|
#
|
|
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
#
|
|
# or
|
|
#
|
|
# /etc/profiles/per-user/gildedguy/etc/profile.d/hm-session-vars.sh
|
|
#
|
|
home.sessionVariables = {
|
|
EDITOR = "nano";
|
|
NIXOS_ALLOW_UNFREE = "1"; # for impure builds
|
|
GIT_EDITOR = "code --wait";
|
|
VISUAL = "code --wait";
|
|
DOCKER_BUILDKIT = "1";
|
|
};
|
|
|
|
# Let Home Manager install and manage itself.
|
|
programs.home-manager.enable = true;
|
|
|
|
# let me cook with the configs, starting with git
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.gitAndTools.gitFull;
|
|
lfs = {
|
|
enable = true;
|
|
};
|
|
userName = "Andrei Jiroh Halili";
|
|
userEmail = "ajhalili2006@andreijiroh.dev";
|
|
aliases = {
|
|
signoff = "commit --signoff";
|
|
amend = "commit -a --amend";
|
|
remotes = "remote -v";
|
|
root = "rev-parse --show-toplevel";
|
|
unstage = "restore --staged";
|
|
stats = "status";
|
|
};
|
|
extraConfig = {
|
|
format = {
|
|
signOff = true;
|
|
};
|
|
init = {
|
|
defaultBranch = "main";
|
|
};
|
|
|
|
# https://groups.google.com/g/binary-transparency/c/f-BI4o8HZW0
|
|
transfer = {
|
|
fsckobjects = true;
|
|
};
|
|
fetch = {
|
|
fsckobjects = true;
|
|
};
|
|
receive = {
|
|
fsckobjects = true;
|
|
};
|
|
push = {
|
|
autoSetupRemote = true;
|
|
};
|
|
|
|
|
|
};
|
|
};
|
|
|
|
programs.vscode = {
|
|
enable = true;
|
|
package = pkgs.vscode;
|
|
enableExtensionUpdateCheck = true;
|
|
mutableExtensionsDir = true;
|
|
# userSettings = {
|
|
# "nix.enableLanguageServer" = true;
|
|
# "nix.serverPath" = "nil";
|
|
# "window.customTitleBarVisibility" = "auto";
|
|
# "window.titleBarStyle" = "custom";
|
|
# "window.menuBarVisibility" = "classic";
|
|
# "redhat.telemetry.enabled" = true;
|
|
# "github.copilot.editor.enableAutoCompletions" = false;
|
|
# "github.copilot.chat.followUps" = "always";
|
|
# "github.copilot.chat.terminalChatLocation" = "terminal";
|
|
# "git.confirmSync" = false;
|
|
# "microsoft-authentication.implementation" = "msal";
|
|
# "workbench.colorTheme" = "GitHub Dark Colorblind (Beta)";
|
|
# "workbench.iconTheme" = "material-icon-theme";
|
|
# "workbench.productIconTheme" = "material-product-icons";
|
|
# };
|
|
# Note that not all extensions are available over gh:NixOS/nixpkgs repo, but
|
|
# we'll work on that soon.
|
|
extensions = with vscExts; [
|
|
pkief.material-icon-theme
|
|
pkief.material-product-icons
|
|
github.github-vscode-theme
|
|
wakatime.vscode-wakatime
|
|
doppler.doppler-vscode
|
|
eamodio.gitlens
|
|
vivaxy.vscode-conventional-commits
|
|
denoland.vscode-deno
|
|
jnoortheen.nix-ide
|
|
#redhat.vscode-yaml
|
|
unifiedjs.vscode-mdx
|
|
];
|
|
};
|
|
}
|