treewide: run statix fix
This commit is contained in:
parent
f38bf90691
commit
8e32e60451
46 changed files with 49 additions and 49 deletions
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
networking.knownNetworkServices = [
|
networking.knownNetworkServices = [
|
||||||
"Ethernet"
|
"Ethernet"
|
||||||
"Wi-Fi"
|
"Wi-Fi"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
# Enable Flakes
|
# Enable Flakes
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
nix = {
|
nix = {
|
||||||
### Auto hard linking
|
### Auto hard linking
|
||||||
settings.auto-optimise-store = true;
|
settings.auto-optimise-store = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
brews = [
|
brews = [
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
homebrew.casks = [
|
homebrew.casks = [
|
||||||
"steam"
|
"steam"
|
||||||
];
|
];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
nix = {
|
nix = {
|
||||||
### Auto hard linking
|
### Auto hard linking
|
||||||
settings.auto-optimise-store = true;
|
settings.auto-optimise-store = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
hardware = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
#enableAllFirmware = true;
|
#enableAllFirmware = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./nautilus.nix)
|
(import ./nautilus.nix)
|
||||||
(import ./prismlauncher.nix)
|
(import ./prismlauncher.nix)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
### systemd-resolved
|
### systemd-resolved
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
services.zram-generator = {
|
services.zram-generator = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.zram0 = {
|
settings.zram0 = {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
home-manager.users.guanranwang.imports = [
|
home-manager.users.guanranwang.imports = [
|
||||||
../../../../../home-manager/profiles/gaming/darwin
|
../../../../../home-manager/profiles/gaming/darwin
|
||||||
];
|
];
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'";
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
services.batsignal.enable = true;
|
services.batsignal.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.bottom.enable = true;
|
programs.bottom.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#package = pkgs.ungoogled-chromium;
|
#package = pkgs.ungoogled-chromium;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
git = true;
|
git = true;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Guanran Wang";
|
userName = "Guanran Wang";
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.joshuto.enable = true;
|
programs.joshuto.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.confirm_os_window_close = 0;
|
settings.confirm_os_window_close = 0;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.mpv.enable = true;
|
programs.mpv.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#defaultEditor = true;
|
#defaultEditor = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
services.polybar = {
|
services.polybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
script = "polybar bar";
|
script = "polybar bar";
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.ripgrep.enable = true;
|
programs.ripgrep.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 .";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.tealdeer.enable = true;
|
programs.tealdeer.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
services.udiskie.enable = true;
|
services.udiskie.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.wezterm = {
|
programs.wezterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{...}: {
|
_: {
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
xdg.dataFile."backgrounds" = {
|
xdg.dataFile."backgrounds" = {
|
||||||
source = ./wallpapers;
|
source = ./wallpapers;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
_: {
|
||||||
# Default application associstions, ro.
|
# Default application associstions, ro.
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue