Compare commits

...

5 commits

Author SHA1 Message Date
7b6e53ea99 alpine: add jellyfin-ffmpeg (still manual config) 2025-08-30 15:32:49 +01:00
2219fb8619 framework: unfree predicate module
lf => yazy
add grayjay
2025-08-26 13:35:23 +01:00
9e40da0a9c remove images 2025-08-20 13:38:46 +01:00
60afb15309 framework: niri playerctl keys 2025-08-20 13:32:35 +01:00
5553012178 framework: nixvim tweaks 2025-08-20 08:45:57 +01:00
16 changed files with 59 additions and 39 deletions

View file

@ -7,7 +7,6 @@
imports = [
./programs/neovim/.
./programs/git.nix
./programs/lf/.
./programs/zsh.nix
./programs/tmux/.
];
@ -40,6 +39,8 @@
ytfzf
];
programs.yazi.enable = true;
programs.zoxide.enable = true;
programs.rbw = {
@ -65,10 +66,7 @@
};
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.fzf.enable = true;
programs.direnv.enable = true;
}

View file

@ -136,6 +136,9 @@
"XF86AudioMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"];
"XF86AudioMicMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"];
"XF86AudioNext".action.spawn = ["playerctl" "next"];
"XF86AudioPrev".action.spawn = ["playerctl" "previous"];
"XF86AudioPlay".action.spawn = ["playerctl" "play-pause"];
"XF86MonBrightnessUp".action.spawn = ["brightness" "+10%"];
"XF86MonBrightnessDown".action.spawn = ["brightness" "10%-"];

View file

@ -42,8 +42,8 @@
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
};
mpris = {
format = "{player_icon} {dynamic}";
format-paused = " {player_icon} {dynamic}";
format = "{player_icon} {title}";
format-paused = " {player_icon} {title}";
player-icons = {
default = "";
mpd = "🎵";

View file

@ -1,7 +1,6 @@
{
pkgs,
inputs,
user,
...
}: {
imports = [
@ -26,6 +25,7 @@
youtube-music
transmission_4-gtk
feishin
grayjay
# other
element-desktop
@ -68,8 +68,12 @@
];
};
programs.chromium = {
programs.zed-editor = {
enable = true;
package = pkgs.brave;
extensions = ["tsgo" "nix" "ansible" "helm"];
userSettings = {
vim_mode = true;
};
extraPackages = [pkgs.nixd pkgs.vtsls];
};
}

View file

@ -3,6 +3,7 @@
config,
...
}: {
home.shell.enableZshIntegration = true;
programs.starship.enable = true;
programs.zsh = {
enable = true;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 840 KiB

View file

@ -20,6 +20,7 @@ in
++ [
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops
../nixos/modules/predicate.nix
{
home-manager = {
useGlobalPkgs = true;

View file

@ -28,6 +28,7 @@ in {
scrolloff = 4;
smoothscroll = true;
ignorecase = true;
winborder = "rounded";
undofile = true;
undodir = lua ''vim.fn.expand("$HOME/.local/share/nvim/undo")'';
@ -72,10 +73,10 @@ in {
options.desc = "copy to clipboard";
}
{
key = "<leader>ca";
action = ''
require("actions-preview").code_actions
'';
mode = "n";
options.desc = "LSP Format";
key = "<leader>cf";
action = luaFunc "vim.lsp.buf.format({async = true;})";
}
{
key = "<C-Tab>";
@ -283,9 +284,6 @@ in {
inlayHints = true;
servers = {
ts_ls.enable = true;
eslint = {
enable = true;
};
nixd = {
enable = true;
settings = {

View file

@ -0,0 +1,16 @@
{
lib,
config,
...
}: {
options = {
allowUnfreePkgNames = lib.mkOption {
type = lib.types.listOf lib.types.str;
};
};
config = {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) config.allowUnfreePkgNames;
};
}

View file

@ -6,14 +6,13 @@
}: let
user = config.user;
in {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# nonfree vscode required for dev containers
"vscode"
"steam-run"
"postman"
"drawio" # the creator had a hissyfit over a negative review: https://github.com/jgraph/drawio/discussions/4623
];
allowUnfreePkgNames = [
# nonfree vscode required for dev containers
"vscode"
"steam-run"
"postman"
"drawio" # the creator had a hissyfit over a negative review: https://github.com/jgraph/drawio/discussions/4623
];
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w" # required for mongodb

View file

@ -1,16 +1,11 @@
{
lib,
pkgs,
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-unwrapped"
"steam-run"
"steam-original"
"osu-lazer"
];
{...}: {
allowUnfreePkgNames = [
"steam"
"steam-unwrapped"
"steam-run"
"steam-original"
"osu-lazer"
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true;

View file

@ -1,10 +1,11 @@
{
{pkgs, ...}: {
users.groups.media = {};
services.jellyfin = {
enable = true;
group = "media"; # access to user stuff
openFirewall = true;
};
environment.variables.JELLYFIN_FFMPEG = "${pkgs.jellyfin-ffmpeg}/bin/ffmpeg";
services.nginx.virtualHosts."movies.tristans.cloud" = {
forceSSL = true;
enableACME = true;

View file

@ -102,4 +102,8 @@
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0e60", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
allowUnfreePkgNames = [
"grayjay"
];
}