Talos-Nixos/configuration.nix

74 lines
2.1 KiB
Nix
Raw Normal View History

2024-03-04 00:23:39 -05:00
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
./application-configuration.nix
./virtualisation.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "talos";
# Set your time zone.
time.timeZone = "America/New_York";
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"intel-ocl"
];
hardware.opengl.extraPackages = with pkgs; [
intel-ocl
];
users.users.caleb = {
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPassword = "$y$j9T$v6EDyPW8C/K.Th4xg8MHL/$tA67k6U0kLtafTNNW2DM7j.xObjPSaZFQ4e/beBX7g2";
};
environment.systemPackages = with pkgs; [
wget
git
screen
];
# disable sudo password for wheel
security.sudo.wheelNeedsPassword = false;
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Enable tailscale
services.tailscale.enable = true;
#neovim
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
};
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "23.11"; # Did you read the comment?
}