-
-
Save lejonet/104c72784242f51e8d65ae3799149cb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
./hardening.nix | |
]; | |
# Use the systemd-boot EFI boot loader. | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
i18n = { | |
# consoleFont = "Lat2-Terminus16"; | |
consoleKeyMap = "sv-latin1"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
# Set your time zone. | |
time.timeZone = "Europe/UTC"; | |
#List packages installed in system profile. To search by name, run: | |
#$ nix-env -qaP | grep wget | |
environment.systemPackages = with pkgs; [ | |
wget | |
zsh | |
tmux | |
bridge-utils | |
vim | |
rxvt_unicode.terminfo | |
]; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
services.openssh.permitRootLogin = "without-password"; | |
# Open ports in the firewall. | |
# networking.firewall.allowedTCPPorts = [ ... ]; | |
# networking.firewall.allowedUDPPorts = [ ... ]; | |
# Or disable the firewall altogether. | |
networking.firewall.enable = true; | |
services.nixosManual.enable = false; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.extraUsers.ssh = { | |
isNormalUser = true; | |
uid = 1000; | |
extraGroups = [ "wheel" ]; | |
#shell = pkgs.zsh; | |
}; | |
# The NixOS release to be compatible with for stateful data such as databases. | |
system.stateVersion = "17.09"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment