feat: nix fmt

This commit is contained in:
Ryan Yin
2023-12-18 00:36:59 +08:00
parent a04a058077
commit b2f75a37dc
50 changed files with 293 additions and 269 deletions

View File

@@ -1,4 +1,8 @@
{pkgs, config, ...}: {
{
pkgs,
config,
...
}: {
##########################################################################
#
# Install all apps and packages here.
@@ -20,12 +24,12 @@
neovim
git
nushell # my custom shell
gnugrep # replacee macos's grep
gnugrep # replacee macos's grep
gnutar # replacee macos's tar
];
environment.variables = {
# Fix https://github.com/LnL7/nix-darwin/wiki/Terminfo-issues
TERMINFO_DIRS = map (path: path + "/share/terminfo") config.environment.profiles ++ [ "/usr/share/terminfo" ];
TERMINFO_DIRS = map (path: path + "/share/terminfo") config.environment.profiles ++ ["/usr/share/terminfo"];
EDITOR = "nvim";
};

View File

@@ -24,10 +24,10 @@
# customize dock
dock = {
autohide = true; # automatically hide and show the dock
autohide = true; # automatically hide and show the dock
show-recents = false; # do not show recent apps in dock
# do not automatically rearrange spaces based on most recent use.
mru-spaces = false;
# do not automatically rearrange spaces based on most recent use.
mru-spaces = false;
# customize Hot Corners(触发角, 鼠标移动到屏幕角落时触发的动作)
wvous-tl-corner = 2; # top-left - Mission Control
@@ -158,7 +158,7 @@
# will change to `fonts.packages` after this PR is merged:
# https://github.com/LnL7/nix-darwin/pull/754
fonts = with pkgs; [
# packages = with pkgs; [
# packages = with pkgs; [
# icon fonts
material-design-icons
font-awesome

View File

@@ -1,5 +1,4 @@
{ username, ... }:
{
{username, ...}: {
####################################################################
#
# NixOS's Configuration for Remote Building / Distributed Building

View File

@@ -1,6 +1,4 @@
{ username, ... }:
{
{username, ...}: {
# Don't allow mutation of users outside the config.
users.mutableUsers = false;
@@ -9,7 +7,7 @@
docker = {};
wireshark = {};
# for android platform tools's udev rules
adbusers ={};
adbusers = {};
dialout = {};
# for openocd (embedded system development)
plugdev = {};

View File

@@ -34,9 +34,9 @@
enable = true;
settings = {
default_session = {
user = "ryan"; # Hyprland is installed only for user ryan via home-manager!
command = "Hyprland"; # start Hyprland directly without a login manager
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; # start Hyprland with a TUI login manager
user = "ryan"; # Hyprland is installed only for user ryan via home-manager!
command = "Hyprland"; # start Hyprland directly without a login manager
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; # start Hyprland with a TUI login manager
};
};
};

View File

@@ -18,7 +18,7 @@
# https://github.com/NixOS/nixpkgs/issues/118655
security.sudo.extraRules = [
{
users = [ username ];
users = [username];
commands = [
{
command = "ALL";

View File

@@ -1,5 +1,4 @@
{pkgs, ...}: {
# =========================================================================
# Base NixOS Configuration
# =========================================================================
@@ -27,12 +26,12 @@
neovim
# networking
mtr # A network diagnostic tool
iperf3 # A tool for measuring TCP and UDP bandwidth performance
nmap # A utility for network discovery and security auditing
ldns # replacement of dig, it provide the command `drill`
socat # replacement of openbsd-netcat
tcpdump # A powerful command-line packet analyzer
mtr # A network diagnostic tool
iperf3 # A tool for measuring TCP and UDP bandwidth performance
nmap # A utility for network discovery and security auditing
ldns # replacement of dig, it provide the command `drill`
socat # replacement of openbsd-netcat
tcpdump # A powerful command-line packet analyzer
# archives
zip
@@ -66,7 +65,7 @@
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "prohibit-password"; # disable root login with password
PermitRootLogin = "prohibit-password"; # disable root login with password
PasswordAuthentication = false; # disable password login
};
openFirewall = true;