From 71be5f3545997b64c72a1088731dc13017fc10fc Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:45:11 -0500 Subject: [PATCH] fmt --- .github/workflows/build-and-cache.yml | 2 -- flake.nix | 5 ++- home/niri/default.nix | 45 ++++++++++++++++++++------- 3 files changed, 38 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index cc56c9a..520c77e 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -25,7 +25,6 @@ jobs: cache: ${{ vars.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} - run: nix build -L '${{ matrix.package }}' - build-machines: strategy: matrix: @@ -66,7 +65,6 @@ jobs: with: persist-credentials: false - run: nix build -L --accept-flake-config .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel - build-homes: strategy: matrix: diff --git a/flake.nix b/flake.nix index 9c91249..ce47e6b 100644 --- a/flake.nix +++ b/flake.nix @@ -89,7 +89,10 @@ programs.typos.enable = true; programs.shellcheck.enable = true; - settings.global.excludes = [ "secrets/*" ]; + settings.global.excludes = [ + "secrets/*" + "**/*.png" # tries to format a png file?? + ]; }; }; diff --git a/home/niri/default.nix b/home/niri/default.nix index feedd04..22386df 100644 --- a/home/niri/default.nix +++ b/home/niri/default.nix @@ -1,8 +1,17 @@ -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: let wallpaper = "${./nixos-c-book.png}"; terminal = "foot"; - menu = [ "fuzzel" "-w" "100" ]; + menu = [ + "fuzzel" + "-w" + "100" + ]; browser = "librewolf"; file-manager = "thunar"; clipboard = "cliphist list | ${lib.concatStringsSep " " menu} --dmenu | cliphist decode | wl-copy"; @@ -13,7 +22,15 @@ in input.keyboard.xkb.options = "ctrl:nocaps"; spawn-at-startup = [ { command = [ "${lib.getExe pkgs.waybar}" ]; } - { command = [ "${lib.getExe pkgs.swaybg}" "-m" "fill" "-i" wallpaper ]; } + { + command = [ + "${lib.getExe pkgs.swaybg}" + "-m" + "fill" + "-i" + wallpaper + ]; + } { command = [ "${lib.getExe pkgs.xwayland-satellite}" ]; } ]; hotkey-overlay.skip-at-startup = true; @@ -36,10 +53,10 @@ in layout = { gaps = 4; focus-ring = { - width = 4; - active.color = "#00000055"; - inactive.color = "#505050"; - }; + width = 4; + active.color = "#00000055"; + inactive.color = "#505050"; + }; always-center-single-column = true; border.enable = false; }; @@ -47,25 +64,31 @@ in window-rules = [ { matches = [ - { app-id = "anki"; title = "Add"; } + { + app-id = "anki"; + title = "Add"; + } { app-id = "mpv"; } { app-id = "Bitwarden"; } ]; open-floating = true; } { - matches = [{ app-id = "anki"; }]; + matches = [ { app-id = "anki"; } ]; default-column-width.proportion = .25; } { matches = [ { app-id = "foot"; } - { app-id = "anki"; title = "^Browse"; } + { + app-id = "anki"; + title = "^Browse"; + } ]; default-column-width.proportion = .5; } { - matches = [{ app-id = "librewolf"; }]; + matches = [ { app-id = "librewolf"; } ]; default-column-width.proportion = .75; } ];