Skip to content

Instantly share code, notes, and snippets.

@pmwhite
Created January 31, 2018 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmwhite/5c8fbb052cf133c3f20d6039a5dab0e8 to your computer and use it in GitHub Desktop.
Save pmwhite/5c8fbb052cf133c3f20d6039a5dab0e8 to your computer and use it in GitHub Desktop.
NixOS configuration
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "mordor"; # Define your hostname.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "US/Eastern";
environment.systemPackages = with pkgs; [
netbeans
wget
git
firefox
qutebrowser
libreoffice
(vim_configurable.customize {
name = "vim";
vimrcConfig.customRC = ''
source $HOME/.vimrc
'';
})
];
nixpkgs.config = {
vim = {
python = true;
netbeans = true;
ftNixSupport = true;
};
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.bash.enableCompletion = true;
# 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 = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.xkbOptions = "eurosign:e";
services.xserver.windowManager.i3.enable = true;
services.xserver.windowManager.icewm.enable = true;
# Enable touchpad support.
# services.xserver.libinput.enable = true;
# Enable the KDE Desktop Environment.
# services.xserver.displayManager.sddm.enable = true;
# services.xserver.desktopManager.plasma5.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers = {
philip = {
isNormalUser = true;
extraGroups = [ "wheel"];
};
guest = {
isNormalUser = true;
};
};
virtualisation.virtualbox.host.enable = true;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "17.09"; # Did you read the comment?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment