Files
nixcfg/hosts/dingserver/configuration.nix
2022-02-05 23:24:11 +00:00

52 lines
974 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./synapse.nix
./caddy.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "dingserver";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
# nix flakes compatibility
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
};
users.users.daniel = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
environment.systemPackages = with pkgs; [
curl
git
kitty
lazygit
wget
];
programs.neovim = {
enable = true;
vimAlias = true;
viAlias = true;
};
services.openssh.enable = true;
system.stateVersion = "21.11"; # Did you read the comment?
}