Created
February 6, 2020 16:06
-
-
Save jakobrs/ebb4b55383a49fcf0fdf19b474fad3a6 to your computer and use it in GitHub Desktop.
Example NixOS config
This file contains hidden or 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
{ config, pkgs, ... }: | |
{ | |
imports = [ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> ]; | |
networking.firewall.enable = false; | |
# Enables the SSH Daemon | |
services.openssh.enable = true; | |
services.openssh.forwardX11 = true; # Adds X11Forwarding yes to /etc/ssh/sshd_config | |
# List of packages installed in system profile. | |
environment.systemPackages = with pkgs; [ | |
vim xorg.xhost | |
]; | |
# Enables TCP for the X server | |
#services.xserver.enableTCP = true; | |
#services.xserver.displayManager.sddm.extraConfig = '' | |
# [X11] | |
# ServerArguments=-listen tcp | |
#''; | |
# Let demo build as a trusted user. | |
#nix.trustedUsers = [ "demo" ]; | |
# Mount a VirtualBox shared folder. | |
# This is configurable in the VirtualBox menu at | |
# Machine / Settings / Shared Folders. | |
#fileSystems."/vboxsf" = { | |
# fsType = "vboxsf"; | |
# device = "nameofdevicetomount"; | |
# options = [ "rw" ]; | |
#}; | |
# By default, the NixOS VirtualBox demo image includes SDDM and Plasma. | |
# If you prefer another desktop manager or display manager, you may want | |
# to disable the default. | |
#services.xserver.desktopManager.plasma5.enable = lib.mkForce false; | |
#services.xserver.displayManager.sddm.enable = lib.mkForce false; | |
# Enable GDM/GNOME by uncommenting above two lines and two lines below. | |
#services.xserver.displayManager.gdm.enable = true; | |
#services.xserver.desktopManager.gnome3.enable = true; | |
# Set your time zone. | |
#time.timeZone = "Europe/Amsterdam"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment