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

68 lines
1.2 KiB
Nix
Raw Normal View History

2023-08-13 23:58:13 -05:00
{config, pkgs, lib, ...}:
{
imports = [
./hardware-configuration.nix
2023-12-30 05:37:32 +00:00
./guest-agent.nix
2023-08-13 23:58:13 -05:00
];
2023-11-28 10:30:17 -06:00
system.stateVersion = "23.05";
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" ]; }
];
}
];
2023-12-30 05:37:32 +00:00
boot.loader = {
systemd-boot = {
enable = true;
};
efi.canTouchEfiVariables = true;
2023-08-13 23:58:13 -05:00
};
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;
};
2023-11-28 10:30:17 -06:00
nix = {
package = pkgs.nixFlakes;
settings = {
experimental-features = "nix-command flakes";
};
};
2023-08-13 23:58:13 -05:00
}