nix-dotfiles/profiles/base.nix

64 lines
1.2 KiB
Nix

{ config, pkgs, lib, ... }:
{
imports =
[
../packages/vim.nix
../services/ssh.nix
];
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget
git
rsync
ripgrep
tailscale
];
#system vide bash aliases.
environment.shellAliases = {
gst="git status";
gcm="git commit -m";
gsw="git switch";
gaa="git add -A";
gb="git branch";
dc="cd";
la="ls -la";
lls="ls";
};
programs.bash.shellAliases = config.environment.shellAliases;
environment.interactiveShellInit = ''
alias gst='git status'
alias gcm='git commit -m'
alias gsw='git switch'
alias gaa='git add -A'
alias gb='git branch'
alias dc='cd'
alias la='ls -la'
alias lls='ls'
'';
#nix stuff
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc.automatic = true;
system.autoUpgrade = {
enable = true;
flake = "git+https://github.com/adrlau/nix-dotfiles.git";
flags = [
"--update-input" "nixpkgs"
"--update-input" "nixpkgs-unstable"
"--no-write-lock-file"
];
};
}