dot_testing/configuration.nix

42 lines
819 B
Nix
Raw Normal View History

2023-07-07 23:20:00 -05:00
{ lib, config, pkgs, ... }:
2023-07-07 16:55:42 -05:00
2023-07-07 23:13:57 -05:00
with lib;
2023-07-07 16:55:42 -05:00
let
hostname = "virtbox";
2023-07-07 23:17:41 -05:00
isVirtbox = hostname == "virtbox";
2023-07-07 16:55:42 -05:00
in
{
imports =
[
./hardware-configuration.nix # include the results of the hardware scan
./virtbox.nix
./netbox.nix
2023-07-07 16:55:42 -05:00
];
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
environment.systemPackages = with pkgs; [
neovim
curl
htop
git
];
system.copySystemConfiguration = true;
system.stateVersion = "23.05"; # don't change this, lol
2023-07-07 16:55:42 -05:00
# branch and enable different capabilities based on the system
2023-07-07 16:55:42 -05:00
2023-07-07 23:19:21 -05:00
test = mkIf isVirtbox {
services.virtbox.enable = true;
2023-07-07 16:55:42 -05:00
};
}