feat: format via 'ls **/*.nix | each { |it| nixfmt $it.name }'

This commit is contained in:
Ryan Yin
2025-07-30 12:17:24 +08:00
parent d10b30b06b
commit 13bb77108c
219 changed files with 2103 additions and 1728 deletions

View File

@@ -1,3 +1,4 @@
{mylib, ...}: {
{ mylib, ... }:
{
imports = mylib.scanPaths ./.;
}

View File

@@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
# FHS environment, flatpak, appImage, etc.
environment.systemPackages = [
# create a fhs environment by command `fhs`, so we can run non-nixos packages in nixos!
@@ -6,14 +7,16 @@
let
base = pkgs.appimageTools.defaultFhsEnvArgs;
in
pkgs.buildFHSEnv (base
// {
name = "fhs";
targetPkgs = pkgs: (base.targetPkgs pkgs) ++ [pkgs.pkg-config];
profile = "export FHS=1";
runScript = "bash";
extraOutputsToInstall = ["dev"];
})
pkgs.buildFHSEnv (
base
// {
name = "fhs";
targetPkgs = pkgs: (base.targetPkgs pkgs) ++ [ pkgs.pkg-config ];
profile = "export FHS=1";
runScript = "bash";
extraOutputsToInstall = [ "dev" ];
}
)
)
];

View File

@@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
# all fonts are linked to /nix/var/nix/profiles/system/sw/share/X11/fonts
fonts = {
# use fonts specified by user rather than default ones
@@ -37,7 +38,7 @@
# 西文
"JetBrainsMono Nerd Font"
];
emoji = ["Noto Color Emoji"];
emoji = [ "Noto Color Emoji" ];
};
antialias = true; # 抗锯齿
hinting.enable = false; # 禁止字体微调 - 高分辨率下没这必要

View File

@@ -4,7 +4,8 @@
pkgs,
pkgs-unstable,
...
}: {
}:
{
boot.loader.timeout = lib.mkForce 10; # wait for x seconds to select the boot entry
# add user's shell into /etc/shells

View File

@@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
#============================= Audio(PipeWire) =======================
# List packages installed in system profile. To search, run:

View File

@@ -2,7 +2,8 @@
pkgs,
mylib,
...
}: {
}:
{
imports = mylib.scanPaths ./.;
environment.systemPackages = with pkgs; [

View File

@@ -30,7 +30,7 @@
# =============================================================
{
# make the tailscale command usable to users
environment.systemPackages = [pkgs.tailscale];
environment.systemPackages = [ pkgs.tailscale ];
# enable the tailscale service
services.tailscale = {

View File

@@ -2,7 +2,8 @@
pkgs,
# nur-ataraxiasjel,
...
}: {
}:
{
###################################################################################
#
# Virtualisation - Libvirt(QEMU/KVM) / Docker / LXD / WayDroid
@@ -20,7 +21,7 @@
# boot.kernelModules = ["kvm-intel"];
# boot.extraModprobeConfig = "options kvm_intel nested=1"; # for intel cpu
boot.kernelModules = ["vfio-pci"];
boot.kernelModules = [ "vfio-pci" ];
services.flatpak.enable = true;
@@ -36,7 +37,7 @@
autoPrune = {
enable = true;
dates = "weekly";
flags = ["--all"];
flags = [ "--all" ];
};
};

View File

@@ -1,25 +1,26 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
xdg.terminal-exec = {
enable = true;
package = pkgs.xdg-terminal-exec-mkhl;
settings = let
my_terminal_desktop = [
# NOTE: We have add these packages at user level
"Alacritty.desktop"
"kitty.desktop"
"foot.desktop"
"com.mitchellh.ghostty.desktop"
];
in {
GNOME =
my_terminal_desktop
++ [
settings =
let
my_terminal_desktop = [
# NOTE: We have add these packages at user level
"Alacritty.desktop"
"kitty.desktop"
"foot.desktop"
"com.mitchellh.ghostty.desktop"
];
in
{
GNOME = my_terminal_desktop ++ [
"com.raggesilver.BlackBox.desktop"
"org.gnome.Terminal.desktop"
];
niri = my_terminal_desktop;
default = my_terminal_desktop;
};
niri = my_terminal_desktop;
default = my_terminal_desktop;
};
};
xdg.portal = {