nixos/hosts/fileserver/default.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-14 14:51:09 +01:00
{ inputs, config, lib, pkgs, outputs, configLib, ... }:
{
imports =
[
# Import core options
./hardware-configuration.nix
../common/core
# Import optional options
../common/optional/openssh
2024-05-15 21:46:48 +01:00
../common/optional/fileserver-nfs-mount.nix
2024-05-14 14:51:09 +01:00
# Create users for this host
../common/users/admin
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
config = {
allowUnfree = true;
};
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.loader.grub.enable = true;
2024-05-15 20:52:03 +01:00
boot.loader.grub.device = "/dev/vda";
2024-05-14 14:51:09 +01:00
networking = {
hostName = "fileserver";
networkmanager.enable = true;
enableIPv6 = false;
2024-05-16 11:55:24 +01:00
hosts = { "192.168.122.223" = [ "fileserver" ]; };
};
2024-05-14 14:51:09 +01:00
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_GB.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "uk";
useXkbConfig = false;
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
system.stateVersion = "23.11";
}