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,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;