This commit is contained in:
iFargle 2023-06-29 21:40:55 +09:00
parent 4ab6800e43
commit 4cac24d349
2 changed files with 42 additions and 2 deletions

View file

@ -10,9 +10,22 @@
./home-manager.nix ./home-manager.nix
]; ];
# Basic configs
time.timeZone = ${timezone}
# Keep the system up-to-date automatically
system = {
autoUpgrade = {
enable = true;
allowReboot = false;
channel = https://channels.nixos.org/nixos-23.05
};
};
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.cleanTmpDir = true;
# Plymouth splash screen # Plymouth splash screen
boot.plymouth.enable = true; boot.plymouth.enable = true;
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
@ -170,6 +183,35 @@
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
# Configure BASH exports
programs = {
bash = {
enableCompletion = true;
enableLsColors = true;
shellAliases = {
d = "docker";
dc = "docker-compose";
de = "docker exec -it";
ddate = "date +%Y.%m.%d";
dday = "date +%A";
g = "git";
ga = "git add -A";
gb = "git branch";
gc = "git commit";
gca = "git commit -a";
gco = "git checkout";
gd = "git diff";
gl = "git pull --prune";
gp = "git push origin HEAD";
gs = "git status -sb";
hs = "home-manager switch";
ll = "ls -lah";
rm = "rm -i";
tdate = "date +%Y.%m.%d..%H.%M";
ttime = "date +%H.%M";
}
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View file

@ -138,8 +138,6 @@
de = "docker exec -it"; de = "docker exec -it";
ddate = "date +%Y.%m.%d"; ddate = "date +%Y.%m.%d";
dday = "date +%A"; dday = "date +%A";
e = "emacsclient -nw"; # emacs in a terminal
f = "fossil";
g = "git"; g = "git";
ga = "git add -A"; ga = "git add -A";
gb = "git branch"; gb = "git branch";