Fix config
This commit is contained in:
parent
898f855278
commit
1b7b7ee245
|
@ -13,8 +13,6 @@
|
||||||
nixos-option
|
nixos-option
|
||||||
bat
|
bat
|
||||||
procs
|
procs
|
||||||
plocate
|
|
||||||
exa
|
|
||||||
age
|
age
|
||||||
lsd
|
lsd
|
||||||
];
|
];
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
# Define on which hard drive you want to install Grub.
|
# Define on which hard drive you want to install Grub.
|
||||||
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
|
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
|
||||||
|
# Clear /tmp during boot
|
||||||
|
boot.cleanTmpDir = true;
|
||||||
# networking.hostName = "nixos"; # Define your hostname.
|
# networking.hostName = "nixos"; # Define your hostname.
|
||||||
# Pick only one of the below networking options.
|
# Pick only one of the below networking options.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# 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).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
# Services
|
||||||
|
services = {
|
||||||
|
timesyncd.enable = true;
|
||||||
|
locate = {
|
||||||
|
enable = true;
|
||||||
|
locate = pkgs.plocate;
|
||||||
|
interval = "hourly";
|
||||||
|
localuser = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
ls = "lsd";
|
ls = "lsd";
|
||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
vim = "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 = {
|
security.sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue