Created
June 2, 2018 18:39
-
-
Save isobit/4d508743e65d4ecaed698149f3cc00d7 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 | |
]; | |
boot = { | |
# GRUB 2 | |
loader.grub = { | |
enable = true; | |
version = 2; | |
device = "/dev/sda"; | |
}; | |
# Encrypted disk with LUKS | |
initrd.luks.devices = [ | |
{ | |
name = "root"; | |
device = "/dev/disk/by-uuid/6f205ac4-6660-4308-b3c9-51668ce31336"; | |
preLVM = true; | |
} | |
]; | |
}; | |
networking = { | |
hostName = "test-nix"; | |
#wireless.enable = true; # Enables wireless support via wpa_supplicant. | |
# Open ports in the firewall. | |
#firewall.allowedTCPPorts = [ ... ]; | |
#firewall.allowedUDPPorts = [ ... ]; | |
# Or disable the firewall altogether. | |
#firewall.enable = false; | |
}; | |
# Select internationalisation properties. | |
# i18n = { | |
# consoleFont = "Lat2-Terminus16"; | |
# consoleKeyMap = "us"; | |
# defaultLocale = "en_US.UTF-8"; | |
# }; | |
# Set your time zone. | |
time.timeZone = "America/Chicago"; | |
# Enable the OpenSSH daemon. | |
# services.openssh.enable = true; | |
# Enable CUPS to print documents. | |
# services.printing.enable = true; | |
# Enable sound. | |
sound.enable = true; | |
hardware.pulseaudio.enable = true; | |
services = { | |
xserver = { | |
enable = true; | |
layout = "us"; | |
xkbOptions = "caps:escape"; | |
desktopManager = { | |
gnome3 = { | |
enable = true; | |
extraGSettingsOverrides = '' | |
[org.gnome.desktop.wm.preferences] | |
button-layout=":minimize,maximize,close" | |
''; | |
}; | |
default = "gnome3"; | |
}; | |
windowManager = { | |
i3.enable = true; | |
}; | |
# monitorSection = '' | |
# DisplaySize 406 228 | |
# ''; | |
}; | |
gnome3 = { | |
gnome-keyring.enable = true; | |
}; | |
}; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.extraUsers = { | |
josh = { | |
isNormalUser = true; | |
uid = 1000; | |
createHome = true; | |
extraGroups = ["wheel" "networkmanager"]; | |
}; | |
}; | |
environment.systemPackages = with pkgs; [ | |
bash | |
curl | |
gitAndTools.gitFull | |
gnutar | |
htop | |
jq | |
numix-cursor-theme | |
numix-icon-theme-square | |
numix-sx-gtk-theme | |
pstree | |
python36Full | |
ruby | |
screen | |
subversion | |
unzip | |
vim | |
w3m | |
wget | |
xclip | |
zip | |
zsh | |
]; | |
# 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 = "18.03"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment