From e400367fa3f6d99623fbb86abaa098fd2427bc12 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 12:49:09 -0500 Subject: [PATCH 01/21] can we build chrome --- .github/workflows/build-and-cache.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index aca9d1e..95cb54d 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -7,7 +7,8 @@ jobs: strategy: matrix: package: - - github:cything/nixpkgs/fd06e41125350bc3db5628df49d3b84e4652a59d#lact + - github:cything/nixpkgs/301762de4d6dab6d1a100b4c0dde7e0168d09489#lact + - github:nixos/nixpkgs/be139555bb144501ba96e93e4c44e8f074b5a5ff#ungoogled-chromium os: - ubuntu-latest - macos-latest From 8cf5db6c43733506e3b7f27da652e6a00d1e187f Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 19:18:25 -0500 Subject: [PATCH 02/21] build stuff --- .github/workflows/build-and-cache.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index 95cb54d..4c22e7d 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -7,8 +7,10 @@ jobs: strategy: matrix: package: - - github:cything/nixpkgs/301762de4d6dab6d1a100b4c0dde7e0168d09489#lact - - github:nixos/nixpkgs/be139555bb144501ba96e93e4c44e8f074b5a5ff#ungoogled-chromium + - github:cything/nixpkgs/lact#lact + - github:cything/nixpkgs/attic#attic-client + - github:cything/nixpkgs/attic#attic-server + - github:sodiboo/niri-flake#niri-unstable os: - ubuntu-latest - macos-latest From b114a0182e8ce46ff39625c36a2f25d870d4ac31 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 19:54:35 -0500 Subject: [PATCH 03/21] can we build machines --- .github/workflows/build-and-cache.yml | 35 ++++++++++++++++++++++++++- flake.lock | 18 +++++++------- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index 4c22e7d..e4576d4 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: push: jobs: - build: + build-packages: strategy: matrix: package: @@ -28,3 +28,36 @@ jobs: cache: ${{ vars.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} - run: nix build -L '${{ matrix.package }}' + build-machines: + strategy: + matrix: + machine: + - chunk + - ytnix + - titan + home: + - yt@ytnix + - yt@chunk + + os: + - ubuntu-latest + # - macos-latest + runs-on: ${{ matrix.os }} + continue-on-error: true + steps: + - uses: DeterminateSystems/nix-installer-action@main + with: + logger: pretty + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Setup Attic cache + uses: ryanccn/attic-action@v0 + with: + endpoint: ${{ vars.ATTIC_ENDPOINT }} + cache: ${{ vars.ATTIC_CACHE }} + token: ${{ secrets.ATTIC_TOKEN }} + - name: Sync repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - run: nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel + # - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage diff --git a/flake.lock b/flake.lock index db6dff3..25c44cd 100644 --- a/flake.lock +++ b/flake.lock @@ -266,11 +266,11 @@ ] }, "locked": { - "lastModified": 1737221749, - "narHash": "sha256-igllW0yG+UbetvhT11jnt9RppSHXYgMykYhZJeqfHs0=", + "lastModified": 1737299337, + "narHash": "sha256-0NBrY2A7buujKmeCbieopOMSbLxTu8TFcTLqAbTnQDw=", "owner": "nix-community", "repo": "home-manager", - "rev": "97d7946b5e107dd03cc82f21165251d4e0159655", + "rev": "f8ef4541bb8a54a8b52f19b52912119e689529b3", "type": "github" }, "original": { @@ -436,11 +436,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1737241062, - "narHash": "sha256-GM4ZnlsuJWjk+tbespU/DWQsZ2V0u0CS3Hqg0JGMt5M=", + "lastModified": 1737274611, + "narHash": "sha256-tmD7875tu1P0UvhI3Q/fXvIe8neJo7H9ZrPQ+QF7Q3E=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b681ff2c9c9163f24ca705d948bb0cee1b3e09f9", + "rev": "50165c4f7eb48ce82bd063e1fb8047a0f515f8ce", "type": "github" }, "original": { @@ -525,11 +525,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1737200978, - "narHash": "sha256-QTUx/F8HVjrRIHQxHKrr72aPMj+cDk18WTbvBCCBBdI=", + "lastModified": 1737308837, + "narHash": "sha256-Sro74XNFgGgIIW4uo/YSVGafZhKnZwPLJNBvMsgpl4k=", "owner": "nix-community", "repo": "nixvim", - "rev": "cbf960e5659054b2ccf27b67218782e69016bef5", + "rev": "8fb2fe22c237b25b8af346870e126fdaeaff688b", "type": "github" }, "original": { From 2b4a139db110bb768d1729dd3f5564922cde5a7d Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:08:27 -0500 Subject: [PATCH 04/21] how about homes --- .github/workflows/build-and-cache.yml | 36 ++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index e4576d4..79f49b2 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -13,7 +13,7 @@ jobs: - github:sodiboo/niri-flake#niri-unstable os: - ubuntu-latest - - macos-latest + # - macos-latest runs-on: ${{ matrix.os }} continue-on-error: true steps: @@ -28,6 +28,7 @@ jobs: cache: ${{ vars.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} - run: nix build -L '${{ matrix.package }}' + build-machines: strategy: matrix: @@ -35,10 +36,6 @@ jobs: - chunk - ytnix - titan - home: - - yt@ytnix - - yt@chunk - os: - ubuntu-latest # - macos-latest @@ -60,4 +57,31 @@ jobs: with: persist-credentials: false - run: nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel - # - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage + + build-homes: + strategy: + matrix: + home: + - yt@ytnix + - yt@chunk + os: + - ubuntu-latest + # - macos-latest + runs-on: ${{ matrix.os }} + continue-on-error: true + steps: + - uses: DeterminateSystems/nix-installer-action@main + with: + logger: pretty + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Setup Attic cache + uses: ryanccn/attic-action@v0 + with: + endpoint: ${{ vars.ATTIC_ENDPOINT }} + cache: ${{ vars.ATTIC_CACHE }} + token: ${{ secrets.ATTIC_TOKEN }} + - name: Sync repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage From de5e7ad35c3aa84da1ce7f42d72b5b5193fd548d Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:34:24 -0500 Subject: [PATCH 05/21] rm lanzaboote on ytnix --- hosts/ytnix/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index 8912c19..a700227 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -37,7 +37,7 @@ boot = { loader = { # lanzaboote replaces systemd-boot - systemd-boot.enable = lib.mkForce false; + systemd-boot.enable = true; efi.canTouchEfiVariables = false; # toggle when installing }; tmp.cleanOnBoot = true; @@ -53,10 +53,10 @@ extraModprobeConfig = '' blacklist rtw88_8821ce ''; - lanzaboote = { - enable = true; - pkiBundle = "/var/lib/sbctl"; - }; + # lanzaboote = { + # enable = true; + # pkiBundle = "/var/lib/sbctl"; + # }; kernel.sysctl."kernel.sysrq" = 1; }; From dcc2a9c040c7f72ceb890462a2550b6af1193a59 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:37:34 -0500 Subject: [PATCH 06/21] set display variable --- home/niri/default.nix | 8 ++++++++ home/yt/ytnix.nix | 1 + 2 files changed, 9 insertions(+) diff --git a/home/niri/default.nix b/home/niri/default.nix index 5071256..feedd04 100644 --- a/home/niri/default.nix +++ b/home/niri/default.nix @@ -118,6 +118,14 @@ in cooldown-ms = 150; action = focus-column-left; }; + "Mod+Shift+WheelScrollDown" = { + cooldown-ms = 150; + action = focus-workspace-down; + }; + "Mod+Shift+WheelScrollUp" = { + cooldown-ms = 150; + action = focus-workspace-up; + }; "XF86AudioRaiseVolume".action = sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+"; "XF86AudioLowerVolume".action = sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-"; diff --git a/home/yt/ytnix.nix b/home/yt/ytnix.nix index a64bc73..6d34814 100644 --- a/home/yt/ytnix.nix +++ b/home/yt/ytnix.nix @@ -42,6 +42,7 @@ home.sessionVariables = { ANKI_WAYLAND = "1"; + DISPLAY = ":0"; }; home.packages = with pkgs; [ From c7328349e7ebddae4d1658450fb6cfbb71a9f862 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:47:21 -0500 Subject: [PATCH 07/21] accept flake config --- .github/workflows/build-and-cache.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index 79f49b2..319a7e3 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -56,7 +56,7 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false - - run: nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel + - run: nix build -L --accept-flake-config .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel build-homes: strategy: @@ -84,4 +84,4 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false - - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage + - run: nix build -L --accept-flake-config .#homeConfigurations."${{ matrix.home }}".activationPackage From 7cc8d19b1b968e3cdee879b4ae2329e14a774731 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:52:45 -0500 Subject: [PATCH 08/21] Revert "rm lanzaboote on ytnix" This reverts commit de5e7ad35c3aa84da1ce7f42d72b5b5193fd548d. --- hosts/ytnix/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index a700227..8912c19 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -37,7 +37,7 @@ boot = { loader = { # lanzaboote replaces systemd-boot - systemd-boot.enable = true; + systemd-boot.enable = lib.mkForce false; efi.canTouchEfiVariables = false; # toggle when installing }; tmp.cleanOnBoot = true; @@ -53,10 +53,10 @@ extraModprobeConfig = '' blacklist rtw88_8821ce ''; - # lanzaboote = { - # enable = true; - # pkiBundle = "/var/lib/sbctl"; - # }; + lanzaboote = { + enable = true; + pkiBundle = "/var/lib/sbctl"; + }; kernel.sysctl."kernel.sysrq" = 1; }; From 4a8df24072ae715e7833f7da114dd93fa204990e Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:53:31 -0500 Subject: [PATCH 09/21] try lanzaboote from master --- flake.lock | 98 +++++++++++++++--------------------------------------- flake.nix | 2 +- 2 files changed, 28 insertions(+), 72 deletions(-) diff --git a/flake.lock b/flake.lock index 25c44cd..6b93a04 100644 --- a/flake.lock +++ b/flake.lock @@ -1,18 +1,12 @@ { "nodes": { "crane": { - "inputs": { - "nixpkgs": [ - "lanzaboote", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1717535930, - "narHash": "sha256-1hZ/txnbd/RmiBPNUs7i8UQw2N89uAK3UzrGAWdnFfU=", + "lastModified": 1731098351, + "narHash": "sha256-HQkYvKvaLQqNa10KEFGgWHfMAbWBfFp+4cAgkut+NNE=", "owner": "ipetkov", "repo": "crane", - "rev": "55e7754ec31dac78980c8be45f8a28e80e370946", + "rev": "ef80ead953c1b28316cc3f8613904edc2eb90c28", "type": "github" }, "original": { @@ -119,11 +113,11 @@ ] }, "locked": { - "lastModified": 1717285511, - "narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=", + "lastModified": 1730504689, + "narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8", + "rev": "506278e768c2a08bec68eb62932193e341f55c90", "type": "github" }, "original": { @@ -157,24 +151,6 @@ "inputs": { "systems": "systems" }, - "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", @@ -333,7 +309,6 @@ "crane": "crane", "flake-compat": "flake-compat", "flake-parts": "flake-parts_2", - "flake-utils": "flake-utils", "nixpkgs": [ "nixpkgs" ], @@ -341,16 +316,16 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1718178907, - "narHash": "sha256-eSZyrQ9uoPB9iPQ8Y5H7gAmAgAvCw3InStmU3oEjqsE=", + "lastModified": 1737299073, + "narHash": "sha256-hOydnO9trHDo3qURqLSDdmE/pHNWDzlhkmyZ/gcBX2s=", "owner": "nix-community", "repo": "lanzaboote", - "rev": "b627ccd97d0159214cee5c7db1412b75e4be6086", + "rev": "64d20cb2afaad8b73f4e38de41d27fb30a782bb5", "type": "github" }, "original": { "owner": "nix-community", - "ref": "v0.4.1", + "ref": "master", "repo": "lanzaboote", "type": "github" } @@ -367,11 +342,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1737231928, - "narHash": "sha256-eOvFTgpFGP8hy6r3O8Ae5jOGc483l4BszwQsPcccbbs=", + "lastModified": 1737325400, + "narHash": "sha256-B8+1x5rDA9GtzX+LWlceIbLBwncKH5uDrGqEN0EoOQw=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "ca748d585a271a512807cd60e5353a9ddb4d1dee", + "rev": "aad9ae8e2b07ed5d37743f3ae87c42528e2d172c", "type": "github" }, "original": { @@ -480,27 +455,27 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1710695816, - "narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=", + "lastModified": 1730741070, + "narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "614b4613980a522ba49f0d194531beddbb7220d3", + "rev": "d063c1dd113c91ab27959ba540c0d9753409edf3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-23.11", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1737165118, - "narHash": "sha256-s40Kk/OulP3J/1JvC3VT16U4r/Xw6Qdi7SRw3LYkPWs=", + "lastModified": 1737299813, + "narHash": "sha256-Qw2PwmkXDK8sPQ5YQ/y/icbQ+TYgbxfjhgnkNJyT1X8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6a3ae7a5a12fb8cac2d59d7df7cbd95f9b2f0566", + "rev": "107d5ef05c0b1119749e381451389eded30fb0d5", "type": "github" }, "original": { @@ -540,7 +515,7 @@ }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils", "ixx": "ixx", "nixpkgs": [ "nixvim", @@ -575,11 +550,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1717664902, - "narHash": "sha256-7XfBuLULizXjXfBYy/VV+SpYMHreNRHk9nKMsm1bgb4=", + "lastModified": 1731363552, + "narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "cc4d466cb1254af050ff7bdf47f6d404a7c646d1", + "rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0", "type": "github" }, "original": { @@ -604,21 +579,17 @@ }, "rust-overlay": { "inputs": { - "flake-utils": [ - "lanzaboote", - "flake-utils" - ], "nixpkgs": [ "lanzaboote", "nixpkgs" ] }, "locked": { - "lastModified": 1717813066, - "narHash": "sha256-wqbRwq3i7g5EHIui0bIi84mdqZ/It1AXBSLJ5tafD28=", + "lastModified": 1731897198, + "narHash": "sha256-Ou7vLETSKwmE/HRQz4cImXXJBr/k9gp4J4z/PF8LzTE=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "6dc3e45fe4aee36efeed24d64fc68b1f989d5465", + "rev": "0be641045af6d8666c11c2c40e45ffc9667839b5", "type": "github" }, "original": { @@ -662,21 +633,6 @@ "type": "github" } }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "treefmt": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index ca9fcf6..9c91249 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; lanzaboote = { - url = "github:nix-community/lanzaboote/v0.4.1"; + url = "github:nix-community/lanzaboote/master"; inputs.nixpkgs.follows = "nixpkgs"; }; nixvim = { From 1205127fff4838c74dacdfc30e655266df435fe2 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:05:49 -0500 Subject: [PATCH 10/21] can we get more space --- .github/workflows/build-and-cache.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index 319a7e3..d3f9a13 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -42,6 +42,16 @@ jobs: runs-on: ${{ matrix.os }} continue-on-error: true steps: + - name: Maximize build disk space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty @@ -70,6 +80,16 @@ jobs: runs-on: ${{ matrix.os }} continue-on-error: true steps: + - name: Maximize build disk space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty From 8b90488ca604d436a5324d508f9946dfcfa90570 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:16:55 -0500 Subject: [PATCH 11/21] overprovision lvm and mount to /nix --- .github/workflows/build-and-cache.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index d3f9a13..f3c29e3 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -45,13 +45,14 @@ jobs: - name: Maximize build disk space uses: easimon/maximize-build-space@v10 with: - root-reserve-mb: 512 + overprovision-lvm: true swap-size-mb: 1024 remove-dotnet: 'true' remove-android: 'true' remove-haskell: 'true' remove-codeql: 'true' remove-docker-images: 'true' + build-mount-path: /nix - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty @@ -83,13 +84,14 @@ jobs: - name: Maximize build disk space uses: easimon/maximize-build-space@v10 with: - root-reserve-mb: 512 + overprovision-lvm: true swap-size-mb: 1024 remove-dotnet: 'true' remove-android: 'true' remove-haskell: 'true' remove-codeql: 'true' remove-docker-images: 'true' + build-mount-path: /nix - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty From 3fb20f66e6fdd52bacdfefb152eaedc205f53e48 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:20:48 -0500 Subject: [PATCH 12/21] root should own /nix before we install nix --- .github/workflows/build-and-cache.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index f3c29e3..da63c6b 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -53,6 +53,7 @@ jobs: remove-codeql: 'true' remove-docker-images: 'true' build-mount-path: /nix + - run: sudo chown root:root /nix - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty @@ -92,6 +93,7 @@ jobs: remove-codeql: 'true' remove-docker-images: 'true' build-mount-path: /nix + - run: sudo chown root:root /nix - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty From a53a985158d8060c4a13d5dd7f5c1e80bc797968 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 19:54:35 -0500 Subject: [PATCH 13/21] can we build machines --- .github/workflows/build-and-cache.yml | 35 ++++++++++++++++++++++++++- flake.lock | 18 +++++++------- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index aca9d1e..a6da635 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: push: jobs: - build: + build-packages: strategy: matrix: package: @@ -25,3 +25,36 @@ jobs: cache: ${{ vars.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} - run: nix build -L '${{ matrix.package }}' + build-machines: + strategy: + matrix: + machine: + - chunk + - ytnix + - titan + home: + - yt@ytnix + - yt@chunk + + os: + - ubuntu-latest + # - macos-latest + runs-on: ${{ matrix.os }} + continue-on-error: true + steps: + - uses: DeterminateSystems/nix-installer-action@main + with: + logger: pretty + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Setup Attic cache + uses: ryanccn/attic-action@v0 + with: + endpoint: ${{ vars.ATTIC_ENDPOINT }} + cache: ${{ vars.ATTIC_CACHE }} + token: ${{ secrets.ATTIC_TOKEN }} + - name: Sync repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - run: nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel + # - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage diff --git a/flake.lock b/flake.lock index db6dff3..25c44cd 100644 --- a/flake.lock +++ b/flake.lock @@ -266,11 +266,11 @@ ] }, "locked": { - "lastModified": 1737221749, - "narHash": "sha256-igllW0yG+UbetvhT11jnt9RppSHXYgMykYhZJeqfHs0=", + "lastModified": 1737299337, + "narHash": "sha256-0NBrY2A7buujKmeCbieopOMSbLxTu8TFcTLqAbTnQDw=", "owner": "nix-community", "repo": "home-manager", - "rev": "97d7946b5e107dd03cc82f21165251d4e0159655", + "rev": "f8ef4541bb8a54a8b52f19b52912119e689529b3", "type": "github" }, "original": { @@ -436,11 +436,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1737241062, - "narHash": "sha256-GM4ZnlsuJWjk+tbespU/DWQsZ2V0u0CS3Hqg0JGMt5M=", + "lastModified": 1737274611, + "narHash": "sha256-tmD7875tu1P0UvhI3Q/fXvIe8neJo7H9ZrPQ+QF7Q3E=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b681ff2c9c9163f24ca705d948bb0cee1b3e09f9", + "rev": "50165c4f7eb48ce82bd063e1fb8047a0f515f8ce", "type": "github" }, "original": { @@ -525,11 +525,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1737200978, - "narHash": "sha256-QTUx/F8HVjrRIHQxHKrr72aPMj+cDk18WTbvBCCBBdI=", + "lastModified": 1737308837, + "narHash": "sha256-Sro74XNFgGgIIW4uo/YSVGafZhKnZwPLJNBvMsgpl4k=", "owner": "nix-community", "repo": "nixvim", - "rev": "cbf960e5659054b2ccf27b67218782e69016bef5", + "rev": "8fb2fe22c237b25b8af346870e126fdaeaff688b", "type": "github" }, "original": { From 32e8d70d6f7eedfa07050c2253676eb0ecd391d9 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:08:27 -0500 Subject: [PATCH 14/21] how about homes --- .github/workflows/build-and-cache.yml | 38 ++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index a6da635..f2ec8f9 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -10,7 +10,7 @@ jobs: - github:cything/nixpkgs/fd06e41125350bc3db5628df49d3b84e4652a59d#lact os: - ubuntu-latest - - macos-latest + # - macos-latest runs-on: ${{ matrix.os }} continue-on-error: true steps: @@ -25,6 +25,7 @@ jobs: cache: ${{ vars.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} - run: nix build -L '${{ matrix.package }}' + build-machines: strategy: matrix: @@ -32,10 +33,6 @@ jobs: - chunk - ytnix - titan - home: - - yt@ytnix - - yt@chunk - os: - ubuntu-latest # - macos-latest @@ -56,5 +53,32 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false - - run: nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel - # - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage + - run: nix build -L --accept-flake-config .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel + + build-homes: + strategy: + matrix: + home: + - yt@ytnix + - yt@chunk + os: + - ubuntu-latest + # - macos-latest + runs-on: ${{ matrix.os }} + continue-on-error: true + steps: + - uses: DeterminateSystems/nix-installer-action@main + with: + logger: pretty + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Setup Attic cache + uses: ryanccn/attic-action@v0 + with: + endpoint: ${{ vars.ATTIC_ENDPOINT }} + cache: ${{ vars.ATTIC_CACHE }} + token: ${{ secrets.ATTIC_TOKEN }} + - name: Sync repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - run: nix build -L --accept-flake-config .#homeConfigurations."${{ matrix.home }}".activationPackage From 5933a15cd80013ee87182c5fb3c7e1336edc69d2 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:37:34 -0500 Subject: [PATCH 15/21] set display variable --- home/niri/default.nix | 8 ++++++++ home/yt/ytnix.nix | 1 + 2 files changed, 9 insertions(+) diff --git a/home/niri/default.nix b/home/niri/default.nix index 5071256..feedd04 100644 --- a/home/niri/default.nix +++ b/home/niri/default.nix @@ -118,6 +118,14 @@ in cooldown-ms = 150; action = focus-column-left; }; + "Mod+Shift+WheelScrollDown" = { + cooldown-ms = 150; + action = focus-workspace-down; + }; + "Mod+Shift+WheelScrollUp" = { + cooldown-ms = 150; + action = focus-workspace-up; + }; "XF86AudioRaiseVolume".action = sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+"; "XF86AudioLowerVolume".action = sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-"; diff --git a/home/yt/ytnix.nix b/home/yt/ytnix.nix index a64bc73..6d34814 100644 --- a/home/yt/ytnix.nix +++ b/home/yt/ytnix.nix @@ -42,6 +42,7 @@ home.sessionVariables = { ANKI_WAYLAND = "1"; + DISPLAY = ":0"; }; home.packages = with pkgs; [ From 36a8df7aa12cf0accd773e1c3f79c081eaa9d989 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 20:53:31 -0500 Subject: [PATCH 16/21] try lanzaboote from master --- flake.lock | 98 +++++++++++++++--------------------------------------- flake.nix | 2 +- 2 files changed, 28 insertions(+), 72 deletions(-) diff --git a/flake.lock b/flake.lock index 25c44cd..6b93a04 100644 --- a/flake.lock +++ b/flake.lock @@ -1,18 +1,12 @@ { "nodes": { "crane": { - "inputs": { - "nixpkgs": [ - "lanzaboote", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1717535930, - "narHash": "sha256-1hZ/txnbd/RmiBPNUs7i8UQw2N89uAK3UzrGAWdnFfU=", + "lastModified": 1731098351, + "narHash": "sha256-HQkYvKvaLQqNa10KEFGgWHfMAbWBfFp+4cAgkut+NNE=", "owner": "ipetkov", "repo": "crane", - "rev": "55e7754ec31dac78980c8be45f8a28e80e370946", + "rev": "ef80ead953c1b28316cc3f8613904edc2eb90c28", "type": "github" }, "original": { @@ -119,11 +113,11 @@ ] }, "locked": { - "lastModified": 1717285511, - "narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=", + "lastModified": 1730504689, + "narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8", + "rev": "506278e768c2a08bec68eb62932193e341f55c90", "type": "github" }, "original": { @@ -157,24 +151,6 @@ "inputs": { "systems": "systems" }, - "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", @@ -333,7 +309,6 @@ "crane": "crane", "flake-compat": "flake-compat", "flake-parts": "flake-parts_2", - "flake-utils": "flake-utils", "nixpkgs": [ "nixpkgs" ], @@ -341,16 +316,16 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1718178907, - "narHash": "sha256-eSZyrQ9uoPB9iPQ8Y5H7gAmAgAvCw3InStmU3oEjqsE=", + "lastModified": 1737299073, + "narHash": "sha256-hOydnO9trHDo3qURqLSDdmE/pHNWDzlhkmyZ/gcBX2s=", "owner": "nix-community", "repo": "lanzaboote", - "rev": "b627ccd97d0159214cee5c7db1412b75e4be6086", + "rev": "64d20cb2afaad8b73f4e38de41d27fb30a782bb5", "type": "github" }, "original": { "owner": "nix-community", - "ref": "v0.4.1", + "ref": "master", "repo": "lanzaboote", "type": "github" } @@ -367,11 +342,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1737231928, - "narHash": "sha256-eOvFTgpFGP8hy6r3O8Ae5jOGc483l4BszwQsPcccbbs=", + "lastModified": 1737325400, + "narHash": "sha256-B8+1x5rDA9GtzX+LWlceIbLBwncKH5uDrGqEN0EoOQw=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "ca748d585a271a512807cd60e5353a9ddb4d1dee", + "rev": "aad9ae8e2b07ed5d37743f3ae87c42528e2d172c", "type": "github" }, "original": { @@ -480,27 +455,27 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1710695816, - "narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=", + "lastModified": 1730741070, + "narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "614b4613980a522ba49f0d194531beddbb7220d3", + "rev": "d063c1dd113c91ab27959ba540c0d9753409edf3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-23.11", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1737165118, - "narHash": "sha256-s40Kk/OulP3J/1JvC3VT16U4r/Xw6Qdi7SRw3LYkPWs=", + "lastModified": 1737299813, + "narHash": "sha256-Qw2PwmkXDK8sPQ5YQ/y/icbQ+TYgbxfjhgnkNJyT1X8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6a3ae7a5a12fb8cac2d59d7df7cbd95f9b2f0566", + "rev": "107d5ef05c0b1119749e381451389eded30fb0d5", "type": "github" }, "original": { @@ -540,7 +515,7 @@ }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils", "ixx": "ixx", "nixpkgs": [ "nixvim", @@ -575,11 +550,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1717664902, - "narHash": "sha256-7XfBuLULizXjXfBYy/VV+SpYMHreNRHk9nKMsm1bgb4=", + "lastModified": 1731363552, + "narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "cc4d466cb1254af050ff7bdf47f6d404a7c646d1", + "rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0", "type": "github" }, "original": { @@ -604,21 +579,17 @@ }, "rust-overlay": { "inputs": { - "flake-utils": [ - "lanzaboote", - "flake-utils" - ], "nixpkgs": [ "lanzaboote", "nixpkgs" ] }, "locked": { - "lastModified": 1717813066, - "narHash": "sha256-wqbRwq3i7g5EHIui0bIi84mdqZ/It1AXBSLJ5tafD28=", + "lastModified": 1731897198, + "narHash": "sha256-Ou7vLETSKwmE/HRQz4cImXXJBr/k9gp4J4z/PF8LzTE=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "6dc3e45fe4aee36efeed24d64fc68b1f989d5465", + "rev": "0be641045af6d8666c11c2c40e45ffc9667839b5", "type": "github" }, "original": { @@ -662,21 +633,6 @@ "type": "github" } }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "treefmt": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index ca9fcf6..9c91249 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; lanzaboote = { - url = "github:nix-community/lanzaboote/v0.4.1"; + url = "github:nix-community/lanzaboote/master"; inputs.nixpkgs.follows = "nixpkgs"; }; nixvim = { From ec4e66c91a08cc7841e1c3f036b30df6a3e3eb7d Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:05:49 -0500 Subject: [PATCH 17/21] can we get more space --- .github/workflows/build-and-cache.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index f2ec8f9..4a24858 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -39,6 +39,16 @@ jobs: runs-on: ${{ matrix.os }} continue-on-error: true steps: + - name: Maximize build disk space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty @@ -67,6 +77,16 @@ jobs: runs-on: ${{ matrix.os }} continue-on-error: true steps: + - name: Maximize build disk space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty From f8018ab702724f22585a0a493868b35bc1004cbe Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:16:55 -0500 Subject: [PATCH 18/21] overprovision lvm and mount to /nix --- .github/workflows/build-and-cache.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index 4a24858..5e5f5a4 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -42,13 +42,14 @@ jobs: - name: Maximize build disk space uses: easimon/maximize-build-space@v10 with: - root-reserve-mb: 512 + overprovision-lvm: true swap-size-mb: 1024 remove-dotnet: 'true' remove-android: 'true' remove-haskell: 'true' remove-codeql: 'true' remove-docker-images: 'true' + build-mount-path: /nix - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty @@ -80,13 +81,14 @@ jobs: - name: Maximize build disk space uses: easimon/maximize-build-space@v10 with: - root-reserve-mb: 512 + overprovision-lvm: true swap-size-mb: 1024 remove-dotnet: 'true' remove-android: 'true' remove-haskell: 'true' remove-codeql: 'true' remove-docker-images: 'true' + build-mount-path: /nix - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty From bb0da642193866869127b86793992e49ca00d80c Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:20:48 -0500 Subject: [PATCH 19/21] root should own /nix before we install nix --- .github/workflows/build-and-cache.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml index 5e5f5a4..cc56c9a 100644 --- a/.github/workflows/build-and-cache.yml +++ b/.github/workflows/build-and-cache.yml @@ -50,6 +50,7 @@ jobs: remove-codeql: 'true' remove-docker-images: 'true' build-mount-path: /nix + build-mount-path-ownership: 'root:root' - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty @@ -89,6 +90,7 @@ jobs: remove-codeql: 'true' remove-docker-images: 'true' build-mount-path: /nix + build-mount-path-ownership: 'root:root' - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty From 71be5f3545997b64c72a1088731dc13017fc10fc Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:45:11 -0500 Subject: [PATCH 20/21] 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; } ]; From 42f5f1eff008d41a93818c4706130201c59f4dee Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 19 Jan 2025 21:57:50 -0500 Subject: [PATCH 21/21] what if we build from master --- flake.lock | 8 ++++---- flake.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 6b93a04..6ca2dbc 100644 --- a/flake.lock +++ b/flake.lock @@ -411,16 +411,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1737274611, - "narHash": "sha256-tmD7875tu1P0UvhI3Q/fXvIe8neJo7H9ZrPQ+QF7Q3E=", + "lastModified": 1737341811, + "narHash": "sha256-a9UXiYA48ja0cvlHA4bqF0et8+4acJT4YVhLC4/tNag=", "owner": "nixos", "repo": "nixpkgs", - "rev": "50165c4f7eb48ce82bd063e1fb8047a0f515f8ce", + "rev": "63dff148c56cc3168d78edefd1087cc5d6fdda16", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-unstable-small", + "ref": "master", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index ce47e6b..08c8f68 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "cy's flake"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small"; + nixpkgs.url = "github:nixos/nixpkgs/master"; sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs";