Add initial dingserver config

This commit is contained in:
2022-01-14 18:47:54 +00:00
parent 500b5608e9
commit 432f7fe39d
5 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
{ 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;
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?
}