nixos-config/hosts/nuc/default.nix

61 lines
1.3 KiB
Nix
Raw Normal View History

2023-01-23 17:30:09 +01:00
{ config, pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
2023-01-23 23:35:44 +01:00
./modules/networks
2023-04-12 22:09:37 +02:00
./modules/backup
2023-01-24 12:05:09 +01:00
./modules/nextcloud
2023-01-25 14:24:10 +01:00
./modules/vaultwarden
2023-01-24 12:05:09 +01:00
./modules/nginx
2023-04-12 10:06:32 +02:00
./modules/nix-serve
2023-01-23 17:30:09 +01:00
];
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
2023-02-17 21:35:12 +01:00
kernelPackages = pkgs.linuxPackages_latest;
2023-04-16 13:43:30 +02:00
tmp.useTmpfs = true;
2023-01-23 17:30:09 +01:00
};
2023-02-17 21:35:12 +01:00
services.btrfs.autoScrub.enable = true;
2023-01-23 17:30:09 +01:00
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "dvorak";
};
2023-04-14 11:41:01 +02:00
programs.command-not-found.enable = false;
2023-01-23 17:30:09 +01:00
environment.systemPackages = with pkgs; [
vim
wget
2023-01-28 22:28:56 +01:00
htop-vim
2023-04-14 11:38:08 +02:00
comma
2023-01-23 17:30:09 +01:00
];
programs.git = {
enable = true;
config = {
user.name = "Rouven Seifert";
user.email = "rouven@rfive.de";
};
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
2023-04-17 11:16:50 +02:00
# firmware updates
services.fwupd.enable = true;
2023-01-23 17:30:09 +01:00
users.users.root.openssh.authorizedKeys.keyFiles = [
../../keys/ssh/rouven-thinkpad
../../keys/ssh/rouven-pixel
# ../../keys/ssh/rouven-smartcard
];
2023-04-06 22:31:45 +02:00
system.stateVersion = "22.11";
2023-01-23 17:30:09 +01:00
}