Skip to content

Instantly share code, notes, and snippets.

@quiloos39
Created March 31, 2021 10:15
Show Gist options
  • Save quiloos39/fa45217893356def9c3c59348d028906 to your computer and use it in GitHub Desktop.
Save quiloos39/fa45217893356def9c3c59348d028906 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
<home-manager>
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Istanbul";
networking.useDHCP = false;
networking.interfaces.eno1.useDHCP = true;
networking.interfaces.wlo1.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "trq";
};
services.xserver.enable = true;
services.xserver = {
layout = "tr";
xkbOptions = "eurosign:e";
desktopManager.plasma5.enable = true;
displayManager.sddm.enable = true;
};
sound.enable = true;
hardware.pulseaudio.enable = true;
users.users.necdet = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" ];
shell = pkgs.zsh;
};
home-manager.users.necdet = {
git = {
enable = true;
userName = "quiloos39";
userEmail = "[email protected]";
};
};
environment.variables = {
EDITOR="nvim";
VISUAL="nvim";
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
vim
neovim
firefox
msr-tools
google-chrome
docker
discord
git
openvpn
bc
bash
tmux
vscode
zsh
postman
nodejs
oh-my-zsh
htop
qemu_kvm
libvirt
ghc
virt-manager
python
uget
uget-integrator
home-manager
linuxPackages.cpupower
i7z
mprime
xclip
];
virtualisation = {
docker.enable = true;
libvirtd.enable = true;
};
powerManagement = {
# enable = true;
cpuFreqGovernor = "performance";
scsiLinkPolicy = "max_performance";
};
programs.zsh = {
enable = true;
shellAliases = {
vim = "nvim";
};
ohMyZsh = {
enable = true;
theme = "gentoo";
plugins = [ "git" ];
};
};
system.stateVersion = "20.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment