Skip to content

Commit

Permalink
refactor(niri): use nixpkgs' nixos module
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 12, 2025
1 parent b1294ec commit 3583d47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 10 additions & 1 deletion applications/niri/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{ lib, pkgs, ... }:
{
inputs,
lib,
pkgs,
...
}:
let
defaultKeyBind = import ./defaultKeyBind.nix;
terminal = "kitty";
launcher = "fuzzel";
in
{
imports = [ inputs.niri-flake.homeModules.niri ];

programs.niri.package = pkgs.niri;

programs.niri.settings = {
binds = defaultKeyBind // {
"Mod+Return".action.spawn = terminal;
Expand Down
6 changes: 0 additions & 6 deletions systems/nixos/desktop.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
{
inputs,
config,
lib,
pkgs,
...
}:
{
imports = [ inputs.niri-flake.nixosModules.niri ];

programs.niri = {
enable = true;
package = pkgs.niri;
};

niri-flake.cache.enable = false;

programs.hyprland = {
# fcitx doesn't start if multiple WMs are enabled
# TODO: fix ime settings
Expand Down

0 comments on commit 3583d47

Please sign in to comment.