From 5c2ff3cbcf5d01c4fe74474d85d303c59cd8729f Mon Sep 17 00:00:00 2001 From: moons Date: Mon, 27 Jul 2026 14:32:59 +0900 Subject: [PATCH] add nix-index, ly --- modules/applications/java/home.nix | 12 ++++++++++++ modules/applications/nix-index/home.nix | 4 ++++ modules/applications/nix-index/meta.nix | 8 ++++++++ modules/services/ly/nixos.nix | 22 ++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 modules/applications/java/home.nix create mode 100644 modules/applications/nix-index/home.nix create mode 100644 modules/applications/nix-index/meta.nix create mode 100644 modules/services/ly/nixos.nix diff --git a/modules/applications/java/home.nix b/modules/applications/java/home.nix new file mode 100644 index 0000000..8f420ae --- /dev/null +++ b/modules/applications/java/home.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + programs.java = { + enable = true; + package = pkgs.jdk25; + }; + + home.packages = with pkgs; [ + maven + gradle + ]; +} diff --git a/modules/applications/nix-index/home.nix b/modules/applications/nix-index/home.nix new file mode 100644 index 0000000..824d69e --- /dev/null +++ b/modules/applications/nix-index/home.nix @@ -0,0 +1,4 @@ +{ + programs.nix-index.enable = true; + programs.nix-index-database.comma.enable = true; +} diff --git a/modules/applications/nix-index/meta.nix b/modules/applications/nix-index/meta.nix new file mode 100644 index 0000000..eae6eb1 --- /dev/null +++ b/modules/applications/nix-index/meta.nix @@ -0,0 +1,8 @@ +{ inputs, ... }: +{ + description = "nix-index and the comma command runner"; + + imports.home = [ + inputs.nix-index-database.homeModules.default + ]; +} diff --git a/modules/services/ly/nixos.nix b/modules/services/ly/nixos.nix new file mode 100644 index 0000000..8401b2f --- /dev/null +++ b/modules/services/ly/nixos.nix @@ -0,0 +1,22 @@ +{ lib, pkgs, ... }: +let + indyzLinuxfire = pkgs.fetchurl { + url = "https://codeberg.org/attachments/f336d6ac-8331-4323-91fc-0e4619803401"; + hash = "sha256-fRm0wlkq9/GdLrVBOzMEnQG/i2ng+uGIzq0u9hu3m9g="; + }; +in +{ + services.displayManager.defaultSession = lib.mkDefault "niri"; + + services.displayManager.ly = { + enable = true; + settings = { + default_session = "niri"; + animate = true; + animation = "dur_file"; + dur_file_path = "${indyzLinuxfire}"; + dur_offset_alignment = "center"; + full_color = true; + }; + }; +}