nixos-config/modules/system.nix

55 lines
1.2 KiB
Nix

{
pkgs,
lib,
username,
...
}: {
users.users.${username} = {
isNormalUser = true;
description = username;
extraGroups = [ "networkmanager" "wheel" ];
};
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
};
nix.gc = {
automatic = lib.mkDefault true;
dates = lib.mkDefault "weekly";
options = lib.mkDefault "--delete-older-than 7d";
};
nixpkgs.config.allowUnfree = true;
time.timeZone = "Indian/Reunion";
console.keyMap = "fr";
i18n = {
defaultLocale = "fr_FR.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
};
};
services.printing.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
environment.systemPackages = with pkgs; [
git
vim
wget
];
}