Created
March 12, 2017 00:43
-
-
Save anonymous/480555a3a23448adbf63ca35a7cc4672 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 | |
]; | |
nixpkgs.config = { | |
allowUnfree = true; | |
}; | |
# Use the GRUB boot loader. | |
boot.loader.grub.enable = true; | |
boot.loader.grub.enableCryptodisk = true; | |
# inner luks + lvm partition | |
boot.loader.grub.device = "/dev/sda"; | |
# This is the uuid path to /dev/sda1, but now try with simply /dev/sda | |
#boot.loader.grub.device = "/dev/disk/by-uuid/3560b10c-bef4-4812-b86b-11935448a435"; | |
# outer /dev/sda1 | |
#boot.loader.grub.device = "/dev/disk/by-uuid/6eb337ef-3a0e-400b-ae92-5f336fc56dd3"; | |
boot.initrd.luks.devices.lvm.device = "/dev/disk/by-uuid/6eb337ef-3a0e-400b-ae92-5f336fc56dd3"; | |
# Use the systemd-boot EFI boot loader. | |
#boot.loader.systemd-boot.enable = true; | |
#boot.loader.efi.canTouchEfiVariables = true; | |
networking.hostName = "ark"; # Define your hostname. | |
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. | |
# Select internationalisation properties. | |
# i18n = { | |
# consoleFont = "Lat2-Terminus16"; | |
# consoleKeyMap = "us"; | |
# defaultLocale = "en_US.UTF-8"; | |
# }; | |
# Set your time zone. | |
# time.timeZone = "Europe/Amsterdam"; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = with pkgs; [ | |
wget | |
vim | |
]; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
# 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"; | |
# Enable the KDE Desktop Environment. | |
# services.xserver.displayManager.kdm.enable = true; | |
# services.xserver.desktopManager.kde4.enable = true; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.extraUsers.art = { | |
home = "/home/art"; | |
extraGroups = [ "wheel" "networkmanager" ]; | |
uid = 1000; | |
}; | |
# The NixOS release to be compatible with for stateful data such as databases. | |
system.stateVersion = "16.09"; | |
} |
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
# Do not modify this file! It was generated by ‘nixos-generate-config’ | |
# and may be overwritten by future invocations. Please make changes | |
# to /etc/nixos/configuration.nix instead. | |
{ config, lib, pkgs, ... }: | |
{ | |
imports = | |
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | |
]; | |
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; | |
boot.kernelModules = [ "kvm-intel" "wl" ]; | |
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; | |
fileSystems."/" = | |
{ device = "/dev/disk/by-uuid/3560b10c-bef4-4812-b86b-11935448a435"; | |
fsType = "ext4"; | |
}; | |
swapDevices = [ ]; | |
nix.maxJobs = lib.mkDefault 4; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment