-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modularize git config, packages configuration
- Loading branch information
1 parent
9255028
commit 031061a
Showing
5 changed files
with
200 additions
and
166 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ userSettings, ... }: | ||
{ | ||
# basic configuration of git, please change to your own | ||
programs.git = { | ||
enable = true; | ||
userName = userSettings.gitname; | ||
userEmail = userSettings.gitemail; | ||
signing.key = userSettings.gpgkey; | ||
signing.signByDefault = true; | ||
# compare diff using syntax | ||
difftastic.enable = true; | ||
extraConfig = { | ||
color.ui = true; | ||
# verbose messages | ||
commit.verbose = true; | ||
# always rebase when pulling | ||
pull.rebase = true; | ||
}; | ||
}; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# This config file is used to define system/global packages | ||
# this file is imported ../configuration.nix | ||
# User specific packages should be installed in ./user-packages.nix | ||
# Some packages/apps maybe handled by config options | ||
# They are scattered in ../system/ ../home-manager/ and ../apps/ directories | ||
|
||
{ pkgs, pkgs-stable, ... }: | ||
{ | ||
# List packages installed in system profile. To search, run: | ||
# $ nix search wget | ||
environment.systemPackages = | ||
(with pkgs; [ | ||
|
||
# System Packages | ||
ananicy-cpp # for better system performance | ||
baobab # disk usage analyzer | ||
# cpufrequtils | ||
# firewalld | ||
ffmpeg # codecs | ||
fuseiso # to mount iso system images | ||
git # obviously | ||
glib # for gsettings to work | ||
gnupg # for encryption and auth keys | ||
libappindicator | ||
libnotify | ||
linux-wifi-hotspot # for wifi hotspot | ||
openssh # for ssh | ||
python3 | ||
# pipewire # enabled via service | ||
udiskie # automount usb drives | ||
zip | ||
unzip | ||
# wireplumber # enabled via service | ||
|
||
## BROWSERS ## | ||
|
||
# firefox, chrome from unstable are incompatible with stable | ||
(google-chrome.override { | ||
# enable video encoding and hardware acceleration, along with several | ||
# suitable for my configuration | ||
# change it if you have any issues | ||
# note the spaces, they are required | ||
# Vulkan is not stable, likely because of drivers | ||
commandLineArgs = "" | ||
+ " --enable-accelerated-video-decode" | ||
+ " --enable-accelerated-mjpeg-decode" | ||
+ " --enable-gpu-compositing" | ||
+ " --enable-gpu-rasterization" # dont enable in about:flags | ||
+ " --enable-native-gpu-memory-buffers" | ||
+ " --enable-raw-draw" | ||
+ " --enable-zero-copy" # dont enable in about:flags | ||
+ " --ignore-gpu-blocklist" # dont enable in about:flags | ||
# + " --use-vulkan" | ||
+ " --enable-features=" | ||
+ "VaapiVideoEncoder," | ||
+ "CanvasOopRasterization," | ||
# + "Vulkan" | ||
; | ||
}) | ||
|
||
## URL FETCH TOOLS ## | ||
curl | ||
wget | ||
|
||
## EDITOR ## | ||
vim | ||
vscode | ||
|
||
## MONITORING TOOLS ## | ||
btop # for CPU, RAM, and Disk monitoring | ||
nvtop-amd # for AMD GPUs | ||
iotop # for disk I/O monitoring | ||
iftop # for network I/O monitoring | ||
]) | ||
|
||
++ | ||
|
||
(with pkgs-stable; [ | ||
# list of latest packages from stable repo | ||
# Can be used to downgrade packages | ||
|
||
]) | ||
; | ||
|
||
# Enable Firefox Wayland | ||
programs.firefox = { | ||
enable = true; | ||
package = pkgs.firefox-wayland; | ||
}; | ||
} |
Oops, something went wrong.