aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
AgeCommit message (Collapse)Author
2025-09-18Revert "revert nushell completion for flake.nix"Ross Smyth
This reverts commit ed799f5afcf6a3dc805def75d0824ecc24de4f32.
2025-08-29Improve filtering for tests that need EGLIvan Molodetskikh
This way we don't skip the layout animation tests.
2025-08-25nix: add `cargo-insta` to devShellsHigherOrderLogic
2025-08-16flake: skip tests that require a valid EGL display (#2244)Cole Helbling
* flake: skip tests that require a valid EGL display Otherwise: niri> failures: niri> niri> ---- tests::animations::clientside_height_change_doesnt_animate stdout ---- niri> niri> thread 'tests::animations::clientside_height_change_doesnt_animate' panicked at src/tests/animations.rs:87:54: niri> called `Result::unwrap()` on an `Err` value: error creating EGL display niri> niri> Caused by: niri> Unable to obtain a valid EGL Display. niri> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace niri> niri> ---- tests::animations::height_resize_animates_next_y stdout ---- niri> niri> thread 'tests::animations::height_resize_animates_next_y' panicked at src/tests/animations.rs:87:54: niri> called `Result::unwrap()` on an `Err` value: error creating EGL display niri> niri> Caused by: niri> Unable to obtain a valid EGL Display. niri> niri> niri> failures: niri> tests::animations::clientside_height_change_doesnt_animate niri> tests::animations::height_resize_animates_next_y niri> niri> test result: FAILED. 147 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.45s * flake: skip all animations tests, present and future Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * fixup: typo --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-07-15nix: replace nix-filter with lib.filesetBloxx12
Co-authored-by: sodiboo <git@sodi.boo>
2025-07-15revert nushell completion for flake.nixsodiboo
2025-07-14Add nushell completion support (#2009)Artrix
* Add nushell completion support Adds `clap_complete_nushell` crate and implements it into the `niri completions` command. * Add nushell to flake.nix autocompletions * Convert to `TryFrom` * Fix linting errors * Move types down --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-03-23nix: update flake inputs and use new libgbmsodiboo
fixes #1312 like https://github.com/sodiboo/niri-flake/commit/0d54ea3f208f785b29f8396996b6bc8596d11a45
2025-03-17nix: Install shell completions (#1280)Johannes Horner
2024-12-26Fix nix flake for client-server tests (#896)Maximilian Huber
This was suggested by @sodiboo in https://github.com/YaLTeR/niri/issues/894#issuecomment-2562153840 and was copied from https://github.com/sodiboo/niri-flake/commit/350e6b68c70f5002a75e10521f5e66ace4b5eed1i Signed-off-by: Maximilian Huber <gh@maxhbr.de>
2024-12-03nix: clang -> rustPlatform.bindgenHooksodiboo
2024-11-02flake: set RUSTFLAGS instead of CARGO_BUILD_RUSTFLAGSLoipesMas
2024-11-02flake: libseat has been renamed to seatdLoipesMas
2024-10-15flake: use nightly rust-analyzer and add rust-src component (#735)sodiboo
this also improves the application of overlays to be more uniform; what was previously done was just Wrong
2024-10-05flake: add `overlay` outputseth
2024-10-05flake: use rust-overlay in dev shellseth
This allows `niri-visual-tests` to still be built and run in the dev shell where it's necessary, as well as brings back the nightly `rustfmt` used by the project We can't use `fenix` again though as it doesn't wrap `ld` like nixpkgs and rust-overlay do; without it, the way we link `dlopen()`'d libraries breaks
2024-10-05flake: improve packagingseth
Some highlights include: - Removing some unnecessary dependencies of the package itself - Allowing for overriding the package - Adding Cargo feature toggles - Installing all niri-related resources - Avoiding `LD_LIBRARY_PATH` hacks
2024-10-05flake: drop most external inputsseth
Previously, inputs like Crane and Fenix were used to only build the `niri` package. This isn't really required, and can easily be replaced by nixpkgs' `rustPlatform` -- which will also lead to less dependencies being pulled into user's lockfiles
2024-10-05flake: format with nixfmtseth
2024-10-05flake: use nixfmtseth
2024-09-15flake: update inputs and remove crane.inputs.nixpkgs overridesodiboo
the input was removed in https://github.com/ipetkov/crane/pull/692
2024-09-04flake: add libdisplay-info to buildInputssodiboo
2024-08-26flake: Remove maintainer commentIvan Molodetskikh
Effectively other contributors maintain it now.
2024-08-25fix `cargo run` on nixossodiboo
this boils down to adding some extra dependencies to the shell environment. they're also inherited from craneArgs because the ones from the package are actually transformed into the WRONG outputs of the packages. also refactors to use craneLib.devShell because it's somewhat cleaner.
2024-08-14Fix `nix build`Fea
2024-07-08flake: update nix flakeSuyashtnt
Signed-off-by: Suyashtnt <suyashtnt@gmail.com>
2024-04-30Add `libXcursor` and `libXi` to nix flakeMichael Forster
In my tests this was necessary to develop Niri using non-NixOS Nix. Otherwise Niri panics with this error message: called `Result::unwrap()` on an `Err` value: EventLoopCreation(NotSupported(NotSupportedError)).
2024-03-01Correctly handle parsing of Binds and DefaultColumnWidth (#234)sodiboo
* add dev dependencies to flake * parse only one default-column-width * require exactly one action per bind, and unique keys for binds * use proper filename for config errors if possible * fix duplicate keybinds after invalid action, lose some sanity
2024-02-12exclude visual tests from nix, closes #181Kiara Grouwstra
2024-01-18Add a config parse error notificationIvan Molodetskikh
We can't rely on a notification daemon being available, especially during initial niri setup. So, render our own.
2024-01-17Add an IPC socket and a niri msg outputs subcommandIvan Molodetskikh
2024-01-10Add Nix Flake (#77)Bill Sun
* Add Nix Flake Co-authored-by: Bryce Berger <bryce.z.berger@gmail.com> * Describe nix flake in readme * Add `niri-config` to build source list * Add maintainer info Add comment at top to indicate the Nix Flake file is community maintained. * Clarify Nix/NixOS README instructions * Shorten Nix/NixOS build instructions Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * Move NixOS installation instruction to "Tip" section --------- Co-authored-by: Bryce Berger <bryce.z.berger@gmail.com> Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>