65 lines
1.6 KiB
Nix
65 lines
1.6 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../common/default-minimal.nix
|
|
|
|
# ../../common/packages/syncthing.nix
|
|
|
|
# If you want to use modules your own flake exports (from modules/nixos):
|
|
# outputs.nixosModules.example
|
|
|
|
# Or modules from other flakes (such as nixos-hardware):
|
|
# inputs.hardware.nixosModules.common-cpu-amd
|
|
# inputs.hardware.nixosModules.common-ssd
|
|
];
|
|
|
|
boot.loader.grub.enable = false;
|
|
# Enables the generation of /boot/extlinux/extlinux.conf
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
networking = {
|
|
hostName = "enry";
|
|
|
|
firewall.enable = true;
|
|
# firewall.allowedTCPPorts = [8080 12345 13378];
|
|
# firewall.allowedUDPPorts = [8080];
|
|
};
|
|
|
|
users.users.user = {
|
|
isNormalUser = true;
|
|
description = "User";
|
|
extraGroups = ["networkmanager" "wheel" "dialout" "syncthing"];
|
|
initialPassword = "correcthorsebatterystaple";
|
|
openssh.authorizedKeys.keys = [
|
|
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
|
|
];
|
|
};
|
|
|
|
# services.btrfs.autoScrub = {
|
|
# enable = true;
|
|
# interval = "weekly";
|
|
# fileSystems = ["/" "/data"];
|
|
# };
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
# started in user sessions.
|
|
# programs.mtr.enable = true;
|
|
# programs.gnupg.agent = {
|
|
# enable = true;
|
|
# enableSSHSupport = true;
|
|
# };
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
];
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
networking.wireless.enable = true;
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
system.stateVersion = "23.11";
|
|
}
|