nixos/nixos/common.nix

51 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
nix.settings.experimental-features = "nix-command flakes";
system.autoUpgrade.enable = true;
system.autoUpgrade.dates = "weekly";
nix.gc.automatic = true;
nix.gc.dates = "daily";
nix.gc.options = "--delete-older-than 10d";
nix.settings.auto-optimise-store = true;
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_GB.UTF-8";
i18n.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";
};
users.users.hms = {
isNormalUser = true;
description = "hms";
extraGroups = [ "wheel" ];
packages = [ ];
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
helix
wget
];
services.openssh.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
networking.extraHosts = ''
51.38.50.192 mystra
'';
}