refactored some stuff

This commit is contained in:
Alexander Szczepanski
2021-07-16 18:51:50 +02:00
parent 05bbbd6871
commit ee66f009da
9 changed files with 223 additions and 129 deletions

View File

@ -126,11 +126,6 @@ in
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];

View File

@ -117,8 +117,6 @@
# enableSSHSupport = true;
# };
# List services that you want to enable:
services.openssh.enable = true;
services.netdata.enable = true;

View File

@ -8,22 +8,17 @@ in
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
../configs/gui.nix
# ../configs/virtualisation.nix
../configs/common.nix
../configs/user.nix
../configs/desktop.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
networking.hostName = "nixos-vm"; # Define your hostname.
# Set your time zone.
time.timeZone = "Europe/Berlin";
@ -33,10 +28,6 @@ in
networking.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
@ -44,52 +35,10 @@ in
# keyMap = "us";
# };
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
# users.users.alex = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable sudo for the user.
# environment.variables = {
# XDG_CURRENT_DESKTOP = "MATE";
# };
# List packages installed in system profile. To search, run:
# $ nix search wget
# environment.systemPackages = with pkgs; [
# # wget
# git
# ];
# 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;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];

View File

@ -170,11 +170,6 @@ in
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
#networking.firewall.allowedTCPPorts = [ 52698 ];
#networking.firewall.allowedUDPPorts = [ 52698 ];

View File

@ -47,16 +47,6 @@
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
openFirewall = true;
};
security.acme.email = "webmaster@szczepan.ski";
security.acme.acceptTerms = true;
services.nginx = {