helm/hosts/cube/configuration.nix

59 lines
2.2 KiB
Nix
Raw Normal View History

2022-04-17 07:26:27 -07:00
{ config, pkgs, ... }:
{
imports =
2022-04-21 05:57:34 -07:00
[ # Include the results of the hardware scan.
2022-04-17 07:26:27 -07:00
./hardware-configuration.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
2022-04-21 05:57:34 -07:00
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
2022-04-17 07:26:27 -07:00
networking.hostName = "cube"; # Define your hostname.
time.timeZone = "Australia/Brisbane";
# Use flakes
nix = {
2022-04-21 05:57:34 -07:00
trustedUsers = [ "root" "@wheel" ];
2022-04-17 07:26:27 -07:00
package = pkgs.nixFlakes; # or versioned attributes like nix_2_7
extraOptions = ''
experimental-features = nix-command flakes
'';
2022-04-21 05:57:34 -07:00
};
2022-04-20 21:26:38 -07:00
2022-04-17 07:26:27 -07:00
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
users.users.anish = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
2022-04-21 05:57:34 -07:00
initialPassword = "SuperDuper";
2022-04-17 07:26:27 -07:00
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDM0Zvei46x/yZl/IeBCq6+IYQQ0avulzVyBysF9cPigZMCybWRV7IEU+E3k9t6JrbdbdGfJkcZIWmsWDdKS8W8mBnZpVoT0ffLynu8JQ/TKdGm4Qv6bgUeKNrGsNv0ZPs2CDaGSLj0oJfRF7Ko10tcLP0vW+yujrh+y6TH/vVzJioaV4TGvtCUpn+wEQah9ROwPQLUUofsSWdnRsDJ/gp37zXWs4l5wyjSKtP3O9RZUP7kBekbSqEgSXiTk0oUQSVqIWl9NDiP6onk/gSOjXsR/JPqsSN/XI/c/yj6gyY0f51Ru2D7iBxuMJIJcWV+rU6coIj+ULcQWLzt/7TI8jq5AOOzI/ll4zbL24Eo84Rz+TP9tvMMhDZ0VaMN22AJ8qQEjc5P09tWKsX7Jg39XelyV1jHXncE4yvIE9F4RSCHzWCeKeXakizQNuzSaxTxIExRFYHjNW5bR6+3MTGwVrEIXU+qML+0yFTR86MT+tdY5AreAJQLwbog79O1NupeXJE= anish@curve" ];
};
environment.systemPackages = with pkgs; [
2022-04-21 05:57:34 -07:00
vim
gitAndTools.gitFull
2022-04-17 07:26:27 -07:00
];
2022-04-21 05:57:34 -07:00
# services."anish.lakhwara.com".enable = true;
# security.acme.email = "anish+acme@lakhwara.com";
# security.acme.acceptTerms = true;
2022-04-17 07:26:27 -07:00
2022-04-21 05:57:34 -07:00
# Enable the OpenSSH daemon.
services.openssh.enable = true;
security.sudo.wheelNeedsPassword = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
2022-04-17 07:26:27 -07:00
}