{ config, pkgs, ...}: { users = { groups = { alexandre = {}; }; users = { alexandre = { isNormalUser = true; createHome = true; home = "/home/alexandre"; description = "Alexandre LUCAZEAU"; extraGroups = [ "wheel" ]; group = "alexandre"; shell = pkgs.fish; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com" ]; }; }; }; programs.git = { enable = true; config.user.email = "lucazeau.alexandre@gmail.com"; config.user.name = "Alexandre LUCAZEAU"; config.init.defaultBranch = "main"; config.core.sshCommand = "ssh -i ~/.ssh/id_ed25519-perso"; }; programs.fish.enable = true; programs.fish.shellAliases = { ll = "ls -l"; 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; execWheelOnly = true; extraRules = [ { users = [ "alexandre" ]; commands = [ { command = "ALL"; options = [ "NOPASSWD" ]; } ]; } ]; }; }