flake: add auto formatter

This commit is contained in:
Leonardo Eugênio 2024-03-23 12:41:45 -03:00
parent 3313416291
commit eb25c3c32f
6 changed files with 16 additions and 9 deletions

4
switch
View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
nix fmt
git diff
sudo nice ionice \
nixos-rebuild \
switch \

View file

@ -1,7 +1,8 @@
{ config, pkgs, lib, font, ... }:
let inherit (pkgs.uservars) desktop browser;
bugfixedFirefox = pkgs.firefox-esr-unwrapped // { requireSigning = false; allowAddonSideload = true; };
in {
in
{
config = {
programs.firefox = {
enable = true;

View file

@ -152,10 +152,12 @@
text-editor = lib.mkDefault "kak.desktop";
image-viewer = lib.mkDefault "pqiv.desktop";
video-player = lib.mkDefault "mpv.desktop";
web-browser = lib.mkDefault ({
web-browser = lib.mkDefault (
{
firefox = lib.mkDefault "firefox.desktop";
qutebrowser = lib.mkDefault "org.qutebrowser.qutebrowser.desktop";
}.${pkgs.uservars.browser});
}.${pkgs.uservars.browser}
);
document-viewer = lib.mkDefault "org.pwmt.zathura.desktop";
file-manager = lib.mkDefault "thunar.desktop";
archive-manager = "engrampa.desktop";