Last active
December 20, 2020 20:07
-
-
Save Ortuna/f0372232e1de9d3f005ce0d3e6c29e3f 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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = [ | |
./hardware-configuration.nix | |
]; | |
nix.gc.automatic = true; | |
networking.hostName = "nix"; | |
time.timeZone = "America/Los_Angeles"; | |
nixpkgs.config = { | |
allowUnfree = true; | |
allowBroken = true; | |
}; | |
boot = { | |
loader.systemd-boot.enable = true; | |
#kernelPackages = pkgs.linuxPackages_latest; # docker not working with 5.9.x | |
extraModulePackages = with config.boot.kernelPackages; [ | |
# r8168 | |
]; | |
}; | |
console = { | |
font = "Lat2-Terminus16"; | |
useXkbConfig = true; | |
}; | |
networking = { | |
useDHCP = false; | |
interfaces.enp6s0.useDHCP = true; | |
}; | |
fileSystems."/mnt/titan" = { | |
fsType = "ext4"; | |
device = "/dev/disk/by-uuid/e241087e-6907-45dc-8b33-014a1168b4e6"; | |
options = [ "rw" "noatime" ]; | |
}; | |
environment.etc = { | |
"resolv.conf".text = "nameserver 8.8.8.8\n"; | |
}; | |
users.users.ortuna = { | |
shell = "${pkgs.zsh}/bin/zsh"; | |
isNormalUser = true; | |
createHome = true; | |
uid = 1000; | |
extraGroups = [ "wheel" "networkManager" ]; # Enable ‘sudo’ for the user. | |
}; | |
services = { | |
xserver = { | |
enable = true; | |
layout = "us"; | |
xkbOptions = "ctrl:swapcaps"; | |
autoRepeatDelay = 200; | |
autoRepeatInterval =30; # 30hz | |
displayManager.gdm.enable = true; | |
desktopManager.gnome3.enable = true; | |
videoDrivers = [ "nvidia" ]; | |
}; | |
openssh.enable = false; | |
printing.enable = false; | |
dbus.enable = true; | |
packagekit.enable = false; | |
gnome3 = { | |
gnome-user-share.enable = false; | |
gnome-online-accounts.enable = false; | |
}; | |
}; | |
programs = { | |
gnome-documents.enable = false; | |
zsh = { | |
enable = true; | |
enableCompletion = true; | |
autosuggestions.enable = true; | |
promptInit = ""; | |
interactiveShellInit = '' | |
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh/ | |
ZSH_THEME="kolo" | |
plugins=(ruby git) | |
source $ZSH/oh-my-zsh.sh | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export EDITOR='nvim' | |
source "$(fzf-share)/key-bindings.zsh" | |
source "$(fzf-share)/completion.zsh" | |
''; | |
}; | |
}; | |
fonts.fonts = with pkgs; [ | |
dejavu_fonts | |
nerdfonts | |
overpass | |
anonymousPro | |
agave | |
]; | |
# $ nix search wget | |
environment.systemPackages = with pkgs; [ | |
coreutils | |
lsof | |
pciutils | |
wget | |
zsh | |
oh-my-zsh | |
curl | |
fzf | |
file #fzf preview | |
ag | |
htop | |
unzip | |
zip | |
gnumake | |
glib | |
blueman | |
networkmanagerapplet | |
git | |
neovim | |
firefox-bin | |
vlc | |
spotify | |
kitty | |
arc-theme | |
numix-icon-theme-square | |
gnome3.gnome-tweaks | |
]; | |
environment.gnome3.excludePackages = [ | |
pkgs.gnome3.epiphany | |
pkgs.gnome3.evince | |
pkgs.gnome3.gedit | |
pkgs.gnome3.totem | |
pkgs.gnome3.gnome-remote-desktop | |
pkgs.gnome3.yelp | |
pkgs.gnome3.simple-scan | |
pkgs.gnome3.gnome-documents | |
pkgs.gnome3.gnome-online-accounts | |
pkgs.gnome3.evolution-data-server | |
pkgs.gnome3.evolution | |
pkgs.gnome3.gnome-contacts | |
pkgs.gnome3.gnome-music | |
pkgs.gnome3.gnome-software | |
pkgs.gnome3.simple-scan | |
pkgs.gnome3.gnome-packagekit | |
pkgs.gnome3.gnome-maps | |
pkgs.gnome3.geary | |
pkgs.gnome3.gnome-photos | |
pkgs.gnome3.gnome-user-docs | |
pkgs.gnome3.gnome-calendar | |
pkgs.gnome3.gnome-weather | |
pkgs.gnome3.accerciser | |
pkgs.gnome3.cheese | |
pkgs.gnome3.gnome-clocks | |
pkgs.gnome3.eog | |
pkgs.gnome3.gnome-logs | |
pkgs.gnome3.gnome-characters | |
#pkgs.gnome3.nautilus-sendto | |
]; | |
# This value determines the NixOS release from which the default | |
# settings for stateful data, like file locations and database versions | |
# on your system were taken. It‘s perfectly fine and recommended to leave | |
# this value at the release version of the first install of this system. | |
# Before changing this value read the documentation for this option | |
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | |
system.stateVersion = "20.09"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment