dot_testing/configuration.nix

48 lines
888 B
Nix
Raw Normal View History

{ lib, config, pkgs, ... }:
2023-07-07 16:55:42 -05:00
let
hostname = "virtbox";
isVirtbox = hostname == "virtbox";
2023-07-07 23:44:40 -05:00
isNetbox = hostname == "netbox";
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
];
2023-07-07 23:44:40 -05:00
networking.networkmanager.enable = true;
2023-07-07 16:55:42 -05:00
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
environment.systemPackages = with pkgs; [
neovim
curl
htop
git
2023-07-07 23:44:40 -05:00
tree
dig
htop
2023-07-07 16:55:42 -05:00
];
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
test = lib.mkIf isVirtbox {
services.virtbox.enable = true;
2023-07-07 16:55:42 -05:00
};
2023-07-07 23:44:40 -05:00
2023-07-08 14:22:13 -05:00
test_ = lib.mkIf isNetbox {
2023-07-07 23:44:40 -05:00
services.netbox.enable = true;
};
2023-07-07 16:55:42 -05:00
}