added niri config

This commit is contained in:
chloe 2025-04-19 11:42:22 +02:00
parent 2694935f92
commit 5642f166f0
3 changed files with 94 additions and 5 deletions

28
packages/4get.nix Normal file
View file

@ -0,0 +1,28 @@
{ stdenv, fetchFromGitea }:
stdenv.mkDerivation {
pname = "4get";
version = "1.2.6";
src = {
owner = "lolcat";
domain = "git.lolcat.ca";
repo = "4get";
rev = "1.2.6";
hash = "sha256-OQjjOc9VnxJ7tWNmpHIMzNWX6WsavAOkgPwK1XAMwtE=";
};
installPhase = ''
runHook preInstall
cd lolcat
mkdir -p $out/share/icons/miku-cursor-linux
cp -r * $out/share/icons/miku-cursor-linux
install -m644 index.theme $out/share/icons/miku-cursor-linux/index.theme
runHook postInstall
'';
}

55
shared/client/niri.nix Normal file
View file

@ -0,0 +1,55 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
mako
grim
slurp
wl-clipboard
xdg-utils
sway-contrib.grimshot
swaylock
swaynotificationcenter
nautilus
libheif
libheif.out
];
services.gvfs.enable = true;
services.gnome.gnome-keyring.enable = true;
programs.niri = {
enable = true;
};
xdg.portal = {
wlr.enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-gnome
];
};
security.pam.loginLimits = [
{
domain = "@users";
item = "rtprio";
type = "-";
value = 1;
}
];
nixpkgs.overlays = [
(final: prev: {
nautilus = prev.nautilus.overrideAttrs (nprev: {
buildInputs =
nprev.buildInputs
++ (with pkgs.gst_all_1; [
gst-plugins-good
gst-plugins-bad
]);
});
})
];
programs.waybar = {
enable = true;
};
}

View file

@ -1,4 +1,5 @@
{config, pkgs, ...}: {
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
mako
grim
@ -11,14 +12,19 @@
];
services.gnome.gnome-keyring.enable = true;
programs.sway = {
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
xdg.portal.wlr.enable = true;
security.pam.loginLimits = [
{ domain = "@users"; item = "rtprio"; type = "-"; value = 1; }
];
{
domain = "@users";
item = "rtprio";
type = "-";
value = 1;
}
];
}
}