added mini and some other stuff

This commit is contained in:
Alexander Szczepanski
2021-08-01 13:14:12 +02:00
parent a565591b8c
commit c446c9d356
4 changed files with 50 additions and 2 deletions

39
machine/mini.nix Normal file
View File

@ -0,0 +1,39 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
../configs/virtualisation.nix
../configs/common.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "mini";
networking.useDHCP = false;
networking.interfaces.enp3s0.useDHCP = true;
users.users.alex = {
defaultUserShell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment?
}