Files
vms/distros/nixos/23.05/http/configuration.nix
T

59 lines
1.1 KiB
Nix
Raw Normal View History

2023-08-13 23:58:13 -05:00
{config, pkgs, lib, ...}:
{
imports = [
./hardware-configuration.nix
2023-08-22 00:18:02 -05:00
#PROVIDER_PLACEHOLDER
2023-08-13 23:58:13 -05:00
];
# Packages installed on the whole system
environment.systemPackages = with pkgs; [
curl
nano
python3
];
# Services that are running
services = {
openssh.enable = true;
#xserver.enable = true;
};
# User setup
2023-08-22 00:18:02 -05:00
users.groups.vagrant = {};
2023-08-13 23:58:13 -05:00
users.users.vagrant = {
isNormalUser = true;
2023-08-22 00:18:02 -05:00
group = "vagrant";
2023-08-13 23:58:13 -05:00
extraGroups = [ "wheel" ];
password = "vagrant";
};
security.sudo.extraRules = [
{
users = [ "vagrant" ];
groups = [ "vagrant" ];
commands = [
{ command = "ALL"; options = [ "NOPASSWD" ]; }
];
}
];
boot.loader.grub = {
enable = true;
devices = [ "@BOOT_DEVICE@" ];
};
networking = {
hostName = "vagrant";
networkmanager.enable = true;
#proxy.default = "http://user:password@proxy:port/";
#proxy.noProxy = "127.0.0.1,localhost,internal.domain";
};
time.timeZone = "UTC";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminux16";
keyMap = lib.mkForce "us";
useXkbConfig = true;
};
system.stateVersion = "23.05";
}