Fix config

main
Alexandre LUCAZEAU 2022-10-13 18:22:41 +00:00
parent 898f855278
commit 1b7b7ee245
3 changed files with 17 additions and 3 deletions

View File

@ -13,8 +13,6 @@
nixos-option
bat
procs
plocate
exa
age
lsd
];

View File

@ -20,7 +20,8 @@
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
# Clear /tmp during boot
boot.cleanTmpDir = true;
# networking.hostName = "nixos"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -113,5 +114,16 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.05"; # Did you read the comment?
# Services
services = {
timesyncd.enable = true;
locate = {
enable = true;
locate = pkgs.plocate;
interval = "hourly";
localuser = null;
};
};
}

View File

@ -30,6 +30,10 @@
ls = "lsd";
vi = "nvim";
vim = "nvim";
cat = "bat";
sysrs = "sudo nixos-rebuild switch";
sysup = "sudo nixos-rebuild switch --upgrade";
sysclean = "sudo nix-collect-garbage -d; and sudo nix-store --optimise";
};
security.sudo = {
enable = true;