Skip to content

Instantly share code, notes, and snippets.

@ebzzry
Last active May 21, 2020 00:17
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/d36825f3de69e5da475e7d1408677d0e to your computer and use it in GitHub Desktop.
Save ebzzry/d36825f3de69e5da475e7d1408677d0e to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
initrd.luks.devices = {
"root" = {
device = "/dev/vg/root";
preLVM = false;
};
};
cleanTmpDir = true;
};
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/D5FE-BECB";
fsType = "vfat";
};
"/" = {
device = "/dev/mapper/root";
fsType = "ext4";
};
};
swapDevices = [
{
device = "/dev/vg/swap";
}
];
networking = {
hostName = "mehfoo";
hostId = "7B1548AE";
enableIPv6 = true;
networkmanager.enable = 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 = {
xserver = {
autorun = true;
defaultDepth = 24;
enable = true;
displayManager.lightdm.enable = true;
desktopManager.plasma5.enable = true;
videoDrivers = [ "intel" ];
};
};
users = {
extraUsers.user = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" "networkmanager" "docker" ];
};
defaultUserShell = "/run/current-system/sw/bin/zsh";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment