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 = [
"Ethernet"
"Wi-Fi"

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{...}: {
_: {
homebrew.casks = [
"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-darwin = inputs.nixpkgs.legacyPackages.x86_64-darwin.alejandra;

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{...}: {
_: {
services.flatpak.enable = true;
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 = {
grub.enable = true;
grub.device = "/dev/vda"; # or "nodev" for efi only

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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