Created
May 1, 2018 07:57
-
-
Save ebzzry/2c65f9cb7f380e43c38694c22b9c6ff3 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
{ config, lib, pkgs, ... }: | |
{ | |
imports = [ | |
./hardware-configuration.nix | |
]; | |
boot = { | |
loader = { | |
grub = { | |
device = "/dev/sda"; | |
enable = true; | |
version = 2; | |
}; | |
}; | |
initrd.luks.devices = [ | |
{ | |
device = "/dev/vg/root"; | |
name = "root"; | |
preLVM = false; | |
} | |
]; | |
cleanTmpDir = true; | |
}; | |
fileSystems = [ | |
{ | |
device = "/dev/mapper/root"; | |
fsType = "ext4"; | |
mountPoint = "/"; | |
} | |
]; | |
swapDevices = [ | |
{ | |
device = "/dev/vg/swap"; | |
} | |
]; | |
networking = { | |
hostName = "valeera"; | |
hostId = "9DCE82F7"; | |
networkmanager = { | |
enable = true; | |
insertNameservers = [ "1.1.1.1" "1.0.0.1" ]; | |
}; | |
}; | |
hardware = { | |
pulseaudio = { | |
enable = true; | |
package = pkgs.pulseaudioFull; | |
}; | |
bluetooth = { | |
enable = true; | |
powerOnBoot = true; | |
}; | |
}; | |
environment = { | |
systemPackages = with pkgs; [ zsh ]; | |
}; | |
time.timeZone = "Asia/Manila"; | |
security.sudo = { | |
enable = true; | |
configFile = '' | |
Defaults env_reset | |
root ALL = (ALL:ALL) ALL | |
%wheel ALL = (ALL) SETENV: NOPASSWD: ALL | |
''; | |
}; | |
services = { | |
avahi = { | |
enable = true; | |
publish = { | |
enable = true; | |
userServices = true; | |
}; | |
}; | |
xserver = { | |
autorun = true; | |
defaultDepth = 24; | |
enable = true; | |
desktopManager.gnome3.enable = true; | |
displayManager.lightdm.enable = true; | |
videoDrivers = [ "nvidia" ]; | |
}; | |
openssh.enable = true; | |
printing = { | |
enable = true; | |
drivers = [ pkgs.gutenprint pkgs.hplipWithPlugin pkgs.canon-cups-ufr2 ]; | |
}; | |
}; | |
users = { | |
extraUsers.zhaqenl = { | |
isNormalUser = true; | |
uid = 1000; | |
extraGroups = [ "wheel" "networkmanager" "lp" ]; | |
}; | |
defaultUserShell = "/run/current-system/sw/bin/zsh"; | |
}; | |
programs = { | |
command-not-found.enable = true; | |
ssh.startAgent = true; | |
}; | |
nixpkgs.config.allowUnfree = true; | |
system.autoUpgrade.enable = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment