From 1b7b7ee245e5129255e7f1a4a3dc718df9208b34 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Thu, 13 Oct 2022 18:22:41 +0000 Subject: [PATCH] Fix config --- common.nix | 2 -- configuration.nix | 14 +++++++++++++- users.nix | 4 ++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/common.nix b/common.nix index b96a1af..7193449 100644 --- a/common.nix +++ b/common.nix @@ -13,8 +13,6 @@ nixos-option bat procs - plocate - exa age lsd ]; diff --git a/configuration.nix b/configuration.nix index b540b01..97233fe 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; + }; + }; + } diff --git a/users.nix b/users.nix index c0bfc71..56e8cfe 100644 --- a/users.nix +++ b/users.nix @@ -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;