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 @@
{config, nushell-scripts, ...}: let
{
config,
nushell-scripts,
...
}: let
d = config.xdg.dataHome;
c = config.xdg.configHome;
cache = config.xdg.cacheHome;

View File

@@ -13,7 +13,7 @@
strace # system call monitoring
ltrace # library call monitoring
bpftrace # powerful tracing tool
tcpdump # network sniffer
tcpdump # network sniffer
lsof # list open files
# system tools

View File

@@ -1,4 +1,4 @@
{ username, ... }: {
{username, ...}: {
imports = [
../base/desktop

View File

@@ -1,4 +1,4 @@
{ username, ... }: {
{username, ...}: {
imports = [
../base/desktop

View File

@@ -6,7 +6,7 @@
}: {
home.packages = with pkgs; [
# creative
blender # 3d modeling
blender # 3d modeling
# gimp # image editing, I prefer using figma in browser instead of this one
inkscape # vector graphics
krita # digital painting
@@ -22,7 +22,7 @@
pkgs-unstable.yosys # fpga synthesis
pkgs-unstable.nextpnr # fpga place and route
pkgs-unstable.openfpgaloader # fpga programming
nur-ryan4yin.packages.${pkgs.system}.gowin-eda-edu-ide # app: `gowin-env` => `gw_ide` / `gw_pack` / ...
nur-ryan4yin.packages.${pkgs.system}.gowin-eda-edu-ide # app: `gowin-env` => `gw_ide` / `gw_pack` / ...
];
programs = {

View File

@@ -27,7 +27,7 @@
# misc
flameshot
ventoy # multi-boot usb creator
ventoy # multi-boot usb creator
];
# GitHub CLI tool

View File

@@ -1,4 +1,8 @@
{ pkgs, lib, ... }: {
{
pkgs,
lib,
...
}: {
# Adjust the color temperature(& brightness) of your screen according to
# your surroundings. This may help your eyes hurt less if you are
# working in front of the screen at night.
@@ -18,7 +22,7 @@
# https://gitlab.com/chinstrap/gammastep/-/blob/master/gammastep.conf.sample?ref_type=heads
settings = {
general = {
fade = "1"; # gradually apply the new screen temperature/brightness over a couple of seconds.
fade = "1"; # gradually apply the new screen temperature/brightness over a couple of seconds.
# it is a fake brightness adjustment obtained by manipulating the gamma ramps,
# which means that it does not reduce the backlight of the screen.
# Preferably only use it if your normal backlight adjustment is too coarse-grained.

View File

@@ -4,7 +4,7 @@
...
}: {
# If your themes for mouse cursor, icons or windows dont load correctly,
# try setting them with home.pointerCursor and gtk.theme,
# try setting them with home.pointerCursor and gtk.theme,
# which enable a bunch of compatibility options that should make the themes load in all situations.
home.pointerCursor = {
@@ -23,7 +23,7 @@
"*.dpi" = 150;
};
# gtk's theme settings, generate files:
# gtk's theme settings, generate files:
# 1. ~/.gtkrc-2.0
# 2. ~/.config/gtk-3.0/settings.ini
# 3. ~/.config/gtk-4.0/settings.ini
@@ -48,7 +48,7 @@
name = "Catppuccin-Macchiato-Compact-Pink-dark";
package = pkgs.catppuccin-gtk.override {
# https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix
accents = [ "pink" ];
accents = ["pink"];
size = "compact";
variant = "mocha";
};

View File

@@ -24,9 +24,11 @@
];
# https://github.com/catppuccin/cava
home.file.".config/cava/config".text = ''
# custom cava config
'' + builtins.readFile "${catppuccin-cava}/mocha.cava";
home.file.".config/cava/config".text =
''
# custom cava config
''
+ builtins.readFile "${catppuccin-cava}/mocha.cava";
programs = {
mpv = {

View File

@@ -1,6 +1,4 @@
{ wallpapers, ... }:
{
{wallpapers, ...}: {
# https://github.com/ryan4yin/wallpapers
home.file.".config/wallpapers".source = wallpapers;
home.file.".local/bin/wallpaper_random" = {

View File

@@ -62,10 +62,9 @@
"image/webp" = ["imv.desktop"];
};
associations.removed =
{
# ......
};
associations.removed = {
# ......
};
};
userDirs = {

View File

@@ -1,6 +1,8 @@
{ pkgs, anyrun, ... }:
{
pkgs,
anyrun,
...
}: {
imports = [
anyrun.homeManagerModules.default
];
@@ -83,5 +85,4 @@
}
'';
};
}

View File

@@ -1,4 +1,4 @@
{ pkgs, ...}: {
{pkgs, ...}: {
# i3 window manager's config, based on https://github.com/endeavouros-team/endeavouros-i3wm-setup
imports = [
@@ -43,5 +43,4 @@
"GBM_BACKEND" = "nvidia-drm";
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
};
}

View File

@@ -1,4 +1,4 @@
{ username, ... }: {
{username, ...}: {
imports = [
];

View File

@@ -1,4 +1,4 @@
{ username, ... }: {
{username, ...}: {
imports = [
../base/server