nix-dotfiles/profiles/base.nix

67 lines
1.3 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
{
imports =
[
../packages/vim.nix
../services/ssh.nix
];
2024-04-08 20:01:01 +02:00
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
2024-04-12 11:41:33 +02:00
htop
bottom
foot.terminfo
2024-04-08 20:01:01 +02:00
tailscale
];
2024-01-14 21:00:30 +01:00
#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
2024-03-22 12:55:22 +01:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc.automatic = true;
2024-04-08 21:34:10 +02:00
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"
];
};
2024-03-22 12:55:22 +01:00
}