From 4d691af4bcb051f7bab6f412715039d65c196bbf Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Fri, 19 May 2023 19:42:20 +0200 Subject: [PATCH] ADD plocate and user config ADD graphviz --- hosts/x201/nixos/configuration.nix | 3 +-- hosts/x201/nixos/services.nix | 6 ++++++ hosts/x201/nixpkgs/packages.nix | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/x201/nixos/configuration.nix b/hosts/x201/nixos/configuration.nix index 1d0fac8..275e638 100644 --- a/hosts/x201/nixos/configuration.nix +++ b/hosts/x201/nixos/configuration.nix @@ -137,8 +137,7 @@ fonts = { isNormalUser = true; home = "/home/alexandre"; description = "alexandre"; - extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" "scanner" " -lp" ]; + extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" "scanner" "plocate" "lp" ]; hashedPassword = "$6$7m77oPQxa$W9YnRLo1X2eqztBHwpoH8diHGkBno5O39AMyL9Qm8y8I6uW63H2Nwx4p239OG5zhOxA8J1lZvHTQ3hKPSP9mT/"; }; }; diff --git a/hosts/x201/nixos/services.nix b/hosts/x201/nixos/services.nix index 8965865..8ab604d 100644 --- a/hosts/x201/nixos/services.nix +++ b/hosts/x201/nixos/services.nix @@ -29,6 +29,12 @@ ntp.enable = true; tlp.enable = true; + locate = { + enable = true; + locate = pkgs.plocate; + interval = "hourly"; + localuser = null; + }; # udev.extraRules = '' # ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", RUN+="/usr/bin/lockscreen-all" diff --git a/hosts/x201/nixpkgs/packages.nix b/hosts/x201/nixpkgs/packages.nix index 0c0d51c..45c04c9 100644 --- a/hosts/x201/nixpkgs/packages.nix +++ b/hosts/x201/nixpkgs/packages.nix @@ -32,5 +32,6 @@ nodejs vlc guake + graphviz ]; }