Skip to content

Instantly share code, notes, and snippets.

@ebzzry
Created May 1, 2018 11:01
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 ebzzry/ddfc6ab0f414820e12d16a24054516c0 to your computer and use it in GitHub Desktop.
Save ebzzry/ddfc6ab0f414820e12d16a24054516c0 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot = {
loader = {
grub = {
device = "/dev/sda";
enable = true;
version = 2;
};
};
cleanTmpDir = true;
};
fileSystems = [
{
device = "/dev/sda2";
fsType = "ext4";
mountPoint = "/";
}
];
swapDevices = [
{
device = "/dev/sda1";
}
];
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