Skip to content

Instantly share code, notes, and snippets.

@Th0rgal
Created December 27, 2019 21:11
Show Gist options
  • Save Th0rgal/b8ccceb039b9678b868cd0fcc37e9105 to your computer and use it in GitHub Desktop.
Save Th0rgal/b8ccceb039b9678b868cd0fcc37e9105 to your computer and use it in GitHub Desktop.
My laptop system configuration
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ];
cleanTmpDir = true;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
networking = {
hostName = "horus";
networkmanager.enable = true;
useDHCP = false;
interfaces.wlo1.useDHCP = true;
};
# tty layout
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "fr";
defaultLocale = "fr_FR.UTF-8";
};
time.timeZone = "Europe/Paris";
environment.systemPackages = with pkgs; [
wget vim git
];
fonts.fonts = with pkgs; [
nerdfonts
];
# Enable CUPS to print documents.
services.printing.enable = true;
# Optimize battery
services.tlp.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Allows to edit brightness
hardware.brightnessctl.enable = true;
programs = {
zsh = {
enable = true;
interactiveShellInit = ''
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh/
# oh-my-zsh options
ZSH_THEME="agnoster"
plugins=(git)
source $ZSH/oh-my-zsh.sh
'';
promptInit = ""; # Clear this to avoid conflict with omz
};
};
# Enable the X11 windowing system.
services.xserver = {
enable = true;
layout = "fr";
xkbOptions = "eurosign:e";
# Enable touchpad support.
libinput.enable = true;
# Enable lightdm
displayManager.lightdm.enable = true;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.thomas = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" ];
};
system.stateVersion = "19.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment