nix-dotfiles/home/root/base.nix

83 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2024-06-13 00:23:24 +02:00
{ pkgs, lib, ... }:
{
imports = [
../common/sshconfig.nix
2024-06-13 00:23:24 +02:00
];
2024-06-13 14:40:34 +02:00
programs.nix-index = {
enable = true;
};
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
2024-06-13 00:23:24 +02:00
programs.bash = {
2024-09-13 00:32:00 +02:00
enable = true;
2024-06-13 00:23:24 +02:00
shellAliases = {
"rebuild" = "sudo nixos-rebuild switch --update-input nixpkgs --update-input unstable --no-write-lock-file --refresh --flake git+https://github.com/adrlau/nix-dotfiles.git --upgrade";
"nixedit" = "vim /etc/nixos/nix-dotfiles/.";
2024-09-11 14:57:36 +02:00
"nixdir" = "cd /etc/nixos/nix-dotfiles";
2024-06-13 14:40:34 +02:00
"," = "comma ";
2024-09-11 14:57:36 +02:00
2024-06-13 00:23:24 +02:00
"gst" = "git status";
"gsw" = "git switch";
"gcm" = "git commit -m ";
"gca" = "git commit --amend";
"gaa" = "git add -A";
"gb" = "git branch";
2024-09-11 14:57:36 +02:00
2024-06-13 14:40:34 +02:00
"sl" = "eza";
"ls" = "eza";
"lls" = "ls";
"la" = "eza -la";
2024-09-11 14:57:36 +02:00
"tree" = "eza -T";
2024-06-13 00:23:24 +02:00
"neofetch" = "fastfetch";
};
2024-09-13 00:32:00 +02:00
historyControl = ["ignoredups" "ignorespace" "erasedups"];
2024-06-13 14:40:34 +02:00
historyIgnore = [ "ls" "cd" "exit" "cd .." ".." "la"];
2024-06-13 00:23:24 +02:00
};
home.packages = with pkgs; [
bottom
htop
fastfetch
2024-06-13 14:40:34 +02:00
eza
ripgrep
foot.terminfo
comma
2024-06-13 00:23:24 +02:00
];
programs.git = {
enable = true;
extraConfig = {
pull.rebase = true;
push.autoSetupRemote = true;
color.ui = "auto";
init.defaultBranch = "main";
lfs.enable = true;
user = {
name = "Adrian G L";
email = "adrian@lauterer.it";
};
};
ignores = [
"*~"
"*.swp"
".DS_Store"
".vscode"
"*__PYCACHE__*"
"*__pycache__*"
];
};
2024-06-13 00:23:24 +02:00
home.stateVersion = "23.05";
}
2024-06-13 00:23:24 +02:00