1
0
Fork 0
forked from lukas/nixos-config
nixos-config/hosts/pinix/configuration.nix

55 lines
1.4 KiB
Nix

{ config, lib, pkgs, inputs, ... }:
{
imports =
[
./hardware-configuration.nix
../user/drone.nix
../globalServices/default.nix
./localServices/default.nix
# ./disko.nix
];
networking.firewall.allowedTCPPorts = [22 8050 8012 8026 3000 9000];
networking = {
wireless.enable = true;
wireless.secretsFile = config.age.secrets.wirelessSecretsFile.path;
# wireless.networks.idea.pskRaw = "ext:psk_mango";
wireless.networks.Vodafone-E6EF.pskRaw = "ext:psk_home";
interfaces.wlan0.useDHCP = true;
};
documentation.nixos.enable = false;
#boot.kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
# fileSystems."/".device = "/dev/disk/by-label/NIXOS_SD";
# fileSystems."/".fsType = "ext4";
# fileSystems."/".options = [ "noatime" ];
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnsupportedSystems = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "root" "builder" "@wheel" ];
networking.hostName = "pinix"; # Define your hostname.
time.timeZone = "Europe/Berlin";
console = {
keyMap = "de";
};
environment.variables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
system.stateVersion = "25.11"; # Did you read the comment?
}