treewide: run statix fix

This commit is contained in:
Guanran Wang 2023-12-02 18:42:59 +08:00
parent f38bf90691
commit 8e32e60451
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
46 changed files with 49 additions and 49 deletions

View file

@ -1,4 +1,4 @@
{...}: { _: {
networking.knownNetworkServices = [ networking.knownNetworkServices = [
"Ethernet" "Ethernet"
"Wi-Fi" "Wi-Fi"

View file

@ -1,4 +1,4 @@
{...}: { _: {
# Enable Flakes # Enable Flakes
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
nix = { nix = {
### Auto hard linking ### Auto hard linking
settings.auto-optimise-store = true; settings.auto-optimise-store = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
homebrew = { homebrew = {
enable = true; enable = true;
brews = [ brews = [

View file

@ -1,4 +1,4 @@
{...}: { _: {
system.defaults = { system.defaults = {
# Apple... Do I really have to change literally # Apple... Do I really have to change literally
# every setting in macOS to make it actually usable. # every setting in macOS to make it actually usable.

View file

@ -1,4 +1,4 @@
{...}: { _: {
homebrew.casks = [ homebrew.casks = [
"steam" "steam"
]; ];

View file

@ -150,7 +150,7 @@
}; };
}; };
outputs = {...} @ inputs: { outputs = inputs: {
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra; formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;
formatter.x86_64-darwin = inputs.nixpkgs.legacyPackages.x86_64-darwin.alejandra; formatter.x86_64-darwin = inputs.nixpkgs.legacyPackages.x86_64-darwin.alejandra;

View file

@ -1,4 +1,4 @@
{...}: { _: {
nix = { nix = {
### Auto hard linking ### Auto hard linking
settings.auto-optimise-store = true; settings.auto-optimise-store = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
hardware = { hardware = {
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
#enableAllFirmware = true; #enableAllFirmware = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ./nautilus.nix) (import ./nautilus.nix)
(import ./prismlauncher.nix) (import ./prismlauncher.nix)

View file

@ -1,4 +1,4 @@
{...}: { _: {
boot.kernelModules = ["tcp_bbr"]; boot.kernelModules = ["tcp_bbr"];
boot.kernel.sysctl = { boot.kernel.sysctl = {
### https://madaidans-insecurities.github.io/guides/linux-hardening.html#sysctl ### https://madaidans-insecurities.github.io/guides/linux-hardening.html#sysctl

View file

@ -1,4 +1,4 @@
{...}: { _: {
services.flatpak.enable = true; services.flatpak.enable = true;
services.gnome.core-utilities.enable = false; # remove default gnome pkgs, for example, gnome-music, to use flatpaks instead services.gnome.core-utilities.enable = false; # remove default gnome pkgs, for example, gnome-music, to use flatpaks instead

View file

@ -1,4 +1,4 @@
{...}: { _: {
boot.loader = { boot.loader = {
grub.enable = true; grub.enable = true;
grub.device = "/dev/vda"; # or "nodev" for efi only grub.device = "/dev/vda"; # or "nodev" for efi only

View file

@ -1,4 +1,4 @@
{...}: { _: {
### systemd-resolved ### systemd-resolved
services.resolved = { services.resolved = {
enable = true; enable = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
} }

View file

@ -1,3 +1,3 @@
{...}: { _: {
virtualisation.virtualbox.host.enable = true; virtualisation.virtualbox.host.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.xwayland.enable = true; # enable XWayland programs.xwayland.enable = true; # enable XWayland
hardware.nvidia.nvidiaSettings = false; # NVIDIA settings menu, wont do anything on wayland hardware.nvidia.nvidiaSettings = false; # NVIDIA settings menu, wont do anything on wayland
environment.sessionVariables = { environment.sessionVariables = {

View file

@ -1,4 +1,4 @@
{...}: { _: {
services.zram-generator = { services.zram-generator = {
enable = true; enable = true;
settings.zram0 = { settings.zram0 = {

View file

@ -1,4 +1,4 @@
{...}: { _: {
### home-manager ### home-manager
home-manager.users.guanranwang.imports = map (n: ../../../../home-manager/${n}) [ home-manager.users.guanranwang.imports = map (n: ../../../../home-manager/${n}) [
"profiles/graphical-stuff/darwin" "profiles/graphical-stuff/darwin"

View file

@ -1,4 +1,4 @@
{...}: { _: {
home-manager.users.guanranwang.imports = [ home-manager.users.guanranwang.imports = [
../../../../../home-manager/profiles/gaming/darwin ../../../../../home-manager/profiles/gaming/darwin
]; ];

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings.env.WINIT_X11_SCALE_FACTOR = "1"; # workaround for scaling in X11 settings.env.WINIT_X11_SCALE_FACTOR = "1"; # workaround for scaling in X11

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.bat.enable = true; programs.bat.enable = true;
home.sessionVariables = { home.sessionVariables = {
"MANPAGER" = "sh -c 'col -bx | bat -l man -p'"; "MANPAGER" = "sh -c 'col -bx | bat -l man -p'";

View file

@ -1,3 +1,3 @@
{...}: { _: {
services.batsignal.enable = true; services.batsignal.enable = true;
} }

View file

@ -1,3 +1,3 @@
{...}: { _: {
programs.bottom.enable = true; programs.bottom.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.chromium = { programs.chromium = {
enable = true; enable = true;
#package = pkgs.ungoogled-chromium; #package = pkgs.ungoogled-chromium;

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.eza = { programs.eza = {
enable = true; enable = true;
git = true; git = true;

View file

@ -14,11 +14,11 @@
plugins = [ plugins = [
{ {
name = "autopair"; name = "autopair";
src = pkgs.fishPlugins.autopair.src; inherit (pkgs.fishPlugins.autopair) src;
} }
{ {
name = "done"; name = "done";
src = pkgs.fishPlugins.done.src; inherit (pkgs.fishPlugins.done) src;
} }
#{ #{
# name = "tide"; # name = "tide";
@ -26,11 +26,11 @@
#} #}
{ {
name = "sponge"; name = "sponge";
src = pkgs.fishPlugins.sponge.src; inherit (pkgs.fishPlugins.sponge) src;
} }
{ {
name = "puffer"; name = "puffer";
src = pkgs.fishPlugins.puffer.src; inherit (pkgs.fishPlugins.puffer) src;
} }
{ {
name = "sudope"; name = "sudope";

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Guanran Wang"; userName = "Guanran Wang";

View file

@ -1,3 +1,3 @@
{...}: { _: {
programs.joshuto.enable = true; programs.joshuto.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
settings.confirm_os_window_close = 0; settings.confirm_os_window_close = 0;

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.mangohud = { programs.mangohud = {
enable = true; enable = true;
# TODO: add configuration, i have no idea how to display stuff with nix syntax # TODO: add configuration, i have no idea how to display stuff with nix syntax

View file

@ -1,3 +1,3 @@
{...}: { _: {
programs.mpv.enable = true; programs.mpv.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
#defaultEditor = true; #defaultEditor = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
services.picom = { services.picom = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,4 +1,4 @@
{...}: { _: {
services.polybar = { services.polybar = {
enable = true; enable = true;
script = "polybar bar"; script = "polybar bar";

View file

@ -1,3 +1,3 @@
{...}: { _: {
programs.ripgrep.enable = true; programs.ripgrep.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.skim = { programs.skim = {
enable = true; enable = true;
defaultCommand = "rg --files || fd --type f || find ."; defaultCommand = "rg --files || fd --type f || find .";

View file

@ -88,7 +88,7 @@
modifier = "Mod4"; modifier = "Mod4";
modes = {}; modes = {};
keybindings = let keybindings = let
modifier = config.wayland.windowManager.sway.config.modifier; inherit (config.wayland.windowManager.sway.config) modifier;
setBrightness = "/home/guanranwang/.local/bin/wrapped-brightnessctl"; setBrightness = "/home/guanranwang/.local/bin/wrapped-brightnessctl";
setVolume = "/home/guanranwang/.local/bin/wrapped-pamixer"; setVolume = "/home/guanranwang/.local/bin/wrapped-pamixer";
screenshot = "/home/guanranwang/.local/bin/wrapped-grim"; screenshot = "/home/guanranwang/.local/bin/wrapped-grim";

View file

@ -1,3 +1,3 @@
{...}: { _: {
programs.tealdeer.enable = true; programs.tealdeer.enable = true;
} }

View file

@ -1,3 +1,3 @@
{...}: { _: {
services.udiskie.enable = true; services.udiskie.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''

View file

@ -1,3 +1,3 @@
{...}: { _: {
programs.zoxide.enable = true; programs.zoxide.enable = true;
} }

View file

@ -1,4 +1,4 @@
{...}: { _: {
xdg.dataFile."backgrounds" = { xdg.dataFile."backgrounds" = {
source = ./wallpapers; source = ./wallpapers;
recursive = true; recursive = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
# Default application associstions, ro. # Default application associstions, ro.
xdg.mimeApps = { xdg.mimeApps = {
enable = true; enable = true;

View file

@ -1,4 +1,4 @@
{...}: { _: {
home-manager.users.guanranwang.imports = [ home-manager.users.guanranwang.imports = [
../../../home-manager/profiles/opt-in/gaming/nixos ../../../home-manager/profiles/opt-in/gaming/nixos
]; ];

View file

@ -1,4 +1,4 @@
{...}: { _: {
home-manager.users.guanranwang.imports = [ home-manager.users.guanranwang.imports = [
../../../home-manager/profiles/opt-in/torrenting/nixos ../../../home-manager/profiles/opt-in/torrenting/nixos
]; ];