Run nixpkgs-fmt

This commit is contained in:
Bad 2021-08-31 23:21:03 +02:00
parent cd50ad37b1
commit 64fa4ec76c
10 changed files with 72 additions and 72 deletions

View file

@ -79,7 +79,7 @@
deploy.overlay deploy.overlay
./pkgs/default.nix ./pkgs/default.nix
fenix.overlay fenix.overlay
]; ];
}; };
latest = { }; latest = { };

View file

@ -12,7 +12,7 @@
leaveDotGit = false; leaveDotGit = false;
sha256 = "0rr66y86g6g8ixg69yd6ahyzirl82gfvyv6j2w6b0zv5x0979x9v"; sha256 = "0rr66y86g6g8ixg69yd6ahyzirl82gfvyv6j2w6b0zv5x0979x9v";
}; };
}; };
manix = { manix = {
pname = "manix"; pname = "manix";
@ -25,6 +25,6 @@
leaveDotGit = false; leaveDotGit = false;
sha256 = "1b7xi8c2drbwzfz70czddc4j33s7g1alirv12dwl91hbqxifx8qs"; sha256 = "1b7xi8c2drbwzfz70czddc4j33s7g1alirv12dwl91hbqxifx8qs";
}; };
}; };
} }

View file

@ -1,6 +1,6 @@
{ lib, sources, stdenv, vimUtils, ... }: { lib, sources, stdenv, vimUtils, ... }:
vimUtils.buildVimPluginFrom2Nix { vimUtils.buildVimPluginFrom2Nix {
inherit (sources.go-fold-if-err-nil) src version; inherit (sources.go-fold-if-err-nil) src version;
name = "go-fold-if-err-nil"; name = "go-fold-if-err-nil";
meta.homepage = "https://im.badat.dev/bad/nvimgofoldiferrnil"; meta.homepage = "https://im.badat.dev/bad/nvimgofoldiferrnil";
} }

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
services.flatpak.enable = true; services.flatpak.enable = true;
} }

View file

@ -2,6 +2,6 @@
{ {
programs.java.enable = true; programs.java.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
jdk jdk
]; ];
} }

View file

@ -1,46 +1,46 @@
{...}: { ... }:
{ {
# rtkit is optional but recommended # rtkit is optional but recommended
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
# If you want to use JACK applications, uncomment this # If you want to use JACK applications, uncomment this
#jack.enable = true; #jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default, # use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now) # no need to redefine it in your config for now)
media-session.enable = true; media-session.enable = true;
#bluetooth config #bluetooth config
media-session.config.bluez-monitor.rules = [ media-session.config.bluez-monitor.rules = [
{ {
# Matches all cards # Matches all cards
matches = [ { "device.name" = "~bluez_card.*"; } ]; matches = [{ "device.name" = "~bluez_card.*"; }];
actions = { actions = {
"update-props" = { "update-props" = {
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ]; "bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
# mSBC is not expected to work on all headset + adapter combinations. # mSBC is not expected to work on all headset + adapter combinations.
"bluez5.msbc-support" = true; "bluez5.msbc-support" = true;
# SBC-XQ is not expected to work on all headset + adapter combinations. # SBC-XQ is not expected to work on all headset + adapter combinations.
"bluez5.sbc-xq-support" = true; "bluez5.sbc-xq-support" = true;
};
}; };
}; }
} {
{ matches = [
matches = [ # Matches all sources
# Matches all sources { "node.name" = "~bluez_input.*"; }
{ "node.name" = "~bluez_input.*"; } # Matches all outputs
# Matches all outputs { "node.name" = "~bluez_output.*"; }
{ "node.name" = "~bluez_output.*"; } ];
]; actions = {
actions = { "node.pause-on-idle" = false;
"node.pause-on-idle" = false; };
}; }
} ];
]; };
};
} }

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { pkgs, ... }:
{ {
sound.enable = true; sound.enable = true;
hardware.pulseaudio = { hardware.pulseaudio = {
enable = true; enable = true;

View file

@ -4,12 +4,12 @@
home.sessionVariables = { home.sessionVariables = {
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
# NIX_BUILD_SHELL = "zsh"; # NIX_BUILD_SHELL = "zsh";
}; };
gtk.theme.name = "arc-dark"; gtk.theme.name = "arc-dark";
gtk.theme.package = pkgs.arc-theme; gtk.theme.package = pkgs.arc-theme;
programs.go = { programs.go = {
enable = true; enable = true;
goPath = ".local/go"; goPath = ".local/go";
}; };
} }

View file

@ -2,8 +2,8 @@
programs.direnv = { programs.direnv = {
enable = true; enable = true;
nix-direnv = { nix-direnv = {
enable = true; enable = true;
enableFlakes = true; enableFlakes = true;
}; };
}; };
} }

View file

@ -1,6 +1,6 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
rofi = pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; }; rofi = pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; };
in in
{ {
wayland.windowManager.sway = rec { wayland.windowManager.sway = rec {
@ -14,7 +14,7 @@ in
xkb_layout = "pl"; xkb_layout = "pl";
accel_profile = "flat"; accel_profile = "flat";
dwt = "disabled"; dwt = "disabled";
pointer_accel = "0.0"; pointer_accel = "0.0";
}; };
}; };
bars = [{ bars = [{
@ -25,12 +25,12 @@ in
}]; }];
floating.criteria = [{ title = "Steam - Update News"; }]; floating.criteria = [{ title = "Steam - Update News"; }];
startup = [ startup = [
# Copied from https://git.sr.ht/~sumner/home-manager-config/tree/master/item/modules/window-manager/wayland.nix#L64 # Copied from https://git.sr.ht/~sumner/home-manager-config/tree/master/item/modules/window-manager/wayland.nix#L64
# See https://github.com/nix-community/home-manager/issues/2028 # See https://github.com/nix-community/home-manager/issues/2028
# Make all the pinentry stuff work # Make all the pinentry stuff work
# See: https://github.com/NixOS/nixpkgs/issues/119445#issuecomment-820507505 # See: https://github.com/NixOS/nixpkgs/issues/119445#issuecomment-820507505
# and: https://github.com/NixOS/nixpkgs/issues/57602#issuecomment-820512097 # and: https://github.com/NixOS/nixpkgs/issues/57602#issuecomment-820512097
{ command = "dbus-update-activation-environment WAYLAND_DISPLAY"; } { command = "dbus-update-activation-environment WAYLAND_DISPLAY"; }
]; ];
}; };
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
@ -45,20 +45,20 @@ in
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
''; '';
}; };
programs.rofi = { programs.rofi = {
enable = true; enable = true;
package = rofi; package = rofi;
theme = "purple"; theme = "purple";
extraConfig = { extraConfig = {
modi = "combi"; modi = "combi";
combi-modi = "drun,emoji"; combi-modi = "drun,emoji";
}; };
}; };
programs.mako = { programs.mako = {
enable = true; enable = true;
defaultTimeout = 2000; defaultTimeout = 2000;
}; };
programs.i3status-rust = { programs.i3status-rust = {