mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
modularize configs
This commit is contained in:
parent
bc5649390f
commit
f4565fcd86
16 changed files with 1045 additions and 651 deletions
|
|
@ -1,93 +1,25 @@
|
|||
# ./home-manager/death916-homelab.nix
|
||||
# ~/nixconfig/home-manager/death916-homelab.nix.new
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ../modules/home-manager/common.nix ];
|
||||
|
||||
home.username = "death916";
|
||||
home.homeDirectory = "/home/death916";
|
||||
|
||||
# Basic shell configuration (can be more elaborate)
|
||||
programs.bash.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "death916";
|
||||
userEmail = "mail@trentnelson.dev";
|
||||
extraConfig = {
|
||||
credential.helper = "store";
|
||||
};
|
||||
};
|
||||
|
||||
# Server-specific tools or dotfiles for death916
|
||||
programs.tmux.enable = true; # Example from your repo image
|
||||
|
||||
# Example: Different shell prompt or aliases for server environment
|
||||
# programs.bash.shellAliases = {
|
||||
# ll = "ls -alh";
|
||||
# update-system = "sudo nixos-rebuild switch --flake /etc/nixos#homelab";
|
||||
# };
|
||||
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "autumn_night_transparent";
|
||||
editor = {
|
||||
cursor-shape = {
|
||||
normal = "block";
|
||||
insert = "bar";
|
||||
select = "underline";
|
||||
};
|
||||
true-color = true;
|
||||
soft-wrap = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
languages.language = [
|
||||
{
|
||||
name = "nix";
|
||||
auto-format = true;
|
||||
formatter.command = lib.getExe pkgs.nixfmt-rfc-style;
|
||||
}
|
||||
# Python configuration
|
||||
{
|
||||
name = "python";
|
||||
language-servers = [ "pylsp" ];
|
||||
auto-format = true;
|
||||
}
|
||||
];
|
||||
themes = {
|
||||
autumn_night_transparent = {
|
||||
"inherits" = "autumn_night";
|
||||
"ui.background" = { };
|
||||
};
|
||||
};
|
||||
extraPackages = [
|
||||
pkgs.python3Packages.python-lsp-server # Required for pylsp
|
||||
];
|
||||
};
|
||||
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
search_mode = "fuzzy";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Any user-specific packages for death916 on the server
|
||||
fastfetch
|
||||
wget
|
||||
zellij
|
||||
systemctl-tui
|
||||
gemini-cli
|
||||
];
|
||||
|
||||
# Keep this consistent with your system's state version
|
||||
home.stateVersion = "24.11";
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue