Initial commit
This commit is contained in:
21
home/common/bash-aliases.nix
Normal file
21
home/common/bash-aliases.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ self, ... } : {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
editor = "nano";
|
||||
|
||||
sync = "cd ${self} && git pull && cd -";
|
||||
|
||||
rebuild = "sudo nixos-rebuild switch --flake ${self}";
|
||||
|
||||
nix-path = "cd ${self}";
|
||||
gen-list = "sudo nix-env -p /nix/var/nix/profiles/system --list-generations";
|
||||
clean = "sudo nix-collect-garbage -d";
|
||||
update = "sudo nix-channel --update";
|
||||
update-flake = "cd ${self} && nix flake update && cd -";
|
||||
upgrade = "sudo nixos-rebuild switch --upgrade --flake ${self}";
|
||||
|
||||
search = "nix search";
|
||||
};
|
||||
};
|
||||
}
|
||||
45
home/common/fastfetch.nix
Normal file
45
home/common/fastfetch.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ pkgs, ... } : {
|
||||
home.packages = with pkgs; [
|
||||
fastfetch
|
||||
];
|
||||
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
source = "nixos";
|
||||
type = "auto";
|
||||
};
|
||||
display = {
|
||||
separator = " › ";
|
||||
};
|
||||
modules = [
|
||||
"title"
|
||||
"separator"
|
||||
"os"
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"terminal"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"swap"
|
||||
"disk"
|
||||
"locale"
|
||||
"localip"
|
||||
"break"
|
||||
"colors"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
fetch = "fastfetch";
|
||||
};
|
||||
initExtra = "fetch";
|
||||
};
|
||||
}
|
||||
12
home/common/git.nix
Normal file
12
home/common/git.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... } : {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "AXOLOTsh";
|
||||
email = "96595812+AXOLOTsh@users.noreply.github.com";
|
||||
};
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/common/packages.nix
Normal file
23
home/common/packages.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ pkgs, ... } : {
|
||||
home.packages = with pkgs; [
|
||||
# region Tools
|
||||
git
|
||||
gh
|
||||
|
||||
screen
|
||||
|
||||
mc
|
||||
|
||||
btop
|
||||
|
||||
wget
|
||||
traceroute
|
||||
dnsutils
|
||||
|
||||
atool
|
||||
zip
|
||||
unzip
|
||||
p7zip
|
||||
# endregion
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user