mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 15:10:19 +02:00
added niri config
This commit is contained in:
parent
2694935f92
commit
5642f166f0
3 changed files with 94 additions and 5 deletions
28
packages/4get.nix
Normal file
28
packages/4get.nix
Normal 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
55
shared/client/niri.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
{config, pkgs, ...}: {
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
mako
|
mako
|
||||||
grim
|
grim
|
||||||
|
@ -11,14 +12,19 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal.wlr.enable = true;
|
xdg.portal.wlr.enable = true;
|
||||||
security.pam.loginLimits = [
|
security.pam.loginLimits = [
|
||||||
{ domain = "@users"; item = "rtprio"; type = "-"; value = 1; }
|
{
|
||||||
];
|
domain = "@users";
|
||||||
|
item = "rtprio";
|
||||||
|
type = "-";
|
||||||
|
value = 1;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue