mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-08 12:47:00 +01:00
31 lines
813 B
Nix
31 lines
813 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, pkgs, ... }:
|
||
|
||
{
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Rome";
|
||
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
services.openssh.enable = true;
|
||
|
||
# Open ports in the firewall.
|
||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||
networking.firewall.allowedUDPPorts = [ ];
|
||
# Or disable the firewall altogether.
|
||
networking.firewall.enable = true;
|
||
xdg.portal.extraPortals = with pkgs; [
|
||
xdg-desktop-portal-gtk
|
||
];
|
||
}
|