Move all files from from the nix folder

This commit is contained in:
Dave Gallant
2021-01-17 01:47:47 -05:00
parent c04db05438
commit 90f561608d
18 changed files with 4 additions and 18 deletions

29
main/fonts.nix Normal file
View File

@@ -0,0 +1,29 @@
{ pkgs, ... }:
{
# Set system-wide fonts.
fonts.fonts = with pkgs; [
dejavu_fonts
fira-code
fira-code-symbols
fira-mono
font-awesome
google-fonts
liberation_ttf # Free replacement for MS Fonts.
noto-fonts
noto-fonts
noto-fonts-cjk
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-emoji
noto-fonts-extra
];
# Set default fonts.
fonts.fontconfig.defaultFonts = {
sansSerif = [ "Noto Sans" ];
serif = [ "Noto Serif" ];
monospace = [ "MesloLGS Nerd Font" "Noto Sans Mono" ];
emoji = [ "Noto Color Emoji" ];
};
}

39
main/general.nix Normal file
View File

@@ -0,0 +1,39 @@
{ pkgs, ... }:
{
system.stateVersion = "unstable";
system.autoUpgrade.enable = true;
# Automatically optimize the Nix store.
nix.autoOptimiseStore = true;
# Enable Nix flake support.
nix.package = pkgs.nixUnstable;
nix.extraOptions = "experimental-features = nix-command flakes";
nixpkgs.config.allowUnfree = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.dave = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
};
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Set your time zone.
time.timeZone = "America/Toronto";
# Set keyboard layout.
services.xserver = {
layout = "us";
xkbVariant = "altgr-intl";
xkbOptions = "caps:escape";
};
}

9
main/kernel.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
# Use the latest stable kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# Enable support for additional filesystems
boot.supportedFilesystems = [ "ntfs" ];
}

159
main/packages.nix Normal file
View File

@@ -0,0 +1,159 @@
{ config, lib, pkgs, unstable, ... }:
{
# System-wide packages to install.
environment.systemPackages = with unstable;
let
common = [
# utils
bat
bind
binutils-unwrapped
colordiff
curl
direnv
exa
fd
fzf
git
gnumake
jq
ripgrep
tree
unzip
zip
# education
anki
# monitoring
htop
# password
gopass
# social media
rtv
# imaging
gifsicle
gimp
# editors
libreoffice
vscodium
# audio
audio-recorder
spotify
# video
youtube-dl
vlc
# network
bandwhich
deluge
nmap
openvpn
postman
# terraform
terraform-ls
terraform_0_14
tflint
tfsec
# gcp
google-cloud-sdk
# jvm
jdk8
gradle
groovy
maven
# encryption
cryptsetup
# browser
brave
firefox
# docker
docker
docker-compose
# k8s
kubectl
kubernetes-helm
# nix
nix-index
nixfmt
nixpkgs-fmt
nixpkgs-review
rnix-lsp
# games
steam
minecraft
yuzu
# communication
discord
element-desktop
signal-desktop
slack
zoom-us
## aws
awscli2
ssm-session-manager-plugin
# python
black
python38
python38Packages.ipython
python38Packages.pip
python38Packages.poetry
python38Packages.setuptools
python38Packages.virtualenv
# misc
asciinema
github-cli
glibcLocales
go-jira
hadolint
nodejs-12_x
imagemagick
pfetch
pinentry-curses
shellcheck
shfmt
starship
xclip
xdg_utils
zathura
# gnome
gnome3.gnome-tweaks
# overlays
# lpass
# rfd
# vpngate
];
in common;
# Don't install optional default packages.
environment.defaultPackages = [ ];
# Install ADB and fastboot.
programs.adb.enable = true;
# Install GnuPG agent.
programs.gnupg.agent.enable = true;
}

6
main/printing.nix Normal file
View File

@@ -0,0 +1,6 @@
{ pkgs, ... }:
{
# Setup CUPS for printing documents.
services.printing.enable = true;
}