Files
nixcfg/hosts/common/default.nix

84 lines
1.6 KiB
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,
lib,
...
}: {
# Use the systemd-boot EFI boot loader.
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
# nix flakes compatibility
nix = {
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
};
# Set time zone.
time.timeZone = "Europe/London";
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
console = {
useXkbConfig = true;
};
virtualisation.docker.enable = true;
hardware.cpu.intel.updateMicrocode = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.daniel = {
isNormalUser = true;
home = "/home/daniel";
initialPassword = "password";
extraGroups = ["wheel" "networkmanager" "docker" "video" "syncthing"];
shell = pkgs.zsh;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
curl
fd
firefox
fzf
gcc
git
htop
helix
ripgrep
wget
zsh
];
environment.homeBinInPath = true;
environment.variables = {
EDITOR = "hx";
};
programs.zsh = {
enable = true;
ohMyZsh = {
enable = true;
plugins = ["git" "fzf"];
theme = "agnoster";
};
};
services = {
openssh.enable = true;
tailscale = {
enable = true;
};
};
}