Merge branch 'vps' of codeberg.org:muon/home into vps

This commit is contained in:
mups 2024-09-05 20:22:48 +00:00
commit 4e2d89e0f5
9 changed files with 304 additions and 21 deletions

View file

@ -16,7 +16,7 @@
};
searchEngines = {
DEFAULT = "https://searx.be/?s={}";
DEFAULT = "https://searx.be/?q={}";
np = "https://search.nixos.org/packages?query={}";
no = "https://search.nixos.org/options?query={}";
};

View file

@ -7,6 +7,9 @@
# Audio
pulseaudio
pavucontrol
# Podcasts
gpodder
];
programs.mpv.enable = true;
};

View file

@ -1,4 +1,14 @@
{ pkgs, lib, config, ... }: {
{ pkgs, lib, config, ... }:
let
vesktop-nogain = (pkgs.vesktop.overrideAttrs (previousAttrs: {
patches = previousAttrs.patches ++ [
(builtins.fetchurl {
url = "https://codeberg.org/muon/gists/raw/branch/main/micfix.patch";
sha256 = "18zmq68m5mx3s924iqfbmm8a7r8qbjnw86hvvax2vg8w94g7mrqp";
})
];
}));
in {
options.mods.social.enable =
lib.mkEnableOption "enables social media clients";
@ -7,7 +17,7 @@
# Communication
kotatogram-desktop
signal-desktop
vesktop
vesktop-nogain
# Video
freetube

View file

@ -3,7 +3,17 @@
lib.mkEnableOption "enables cli editor";
config = lib.mkIf config.mods.terminal.development.enable {
# home.packages = with pkgs; [];
home.packages = with pkgs; [
# Nix
nil
# Rust
rust-analyzer
lldb_18
# GLSL
glsl_analyzer
];
programs.direnv = {
enable = true;
@ -18,13 +28,13 @@
settings = {
keys.normal = {
"esc" = ["collapse_selection" "keep_primary_selection"];
"esc" = [ "collapse_selection" "keep_primary_selection" ];
};
editor = {
line-number = "relative";
completion-replace = true;
bufferline = "always";
rulers = [80];
rulers = [ 80 ];
soft-wrap.enable = true;
indent-guides.render = true;
cursor-shape = {
@ -34,6 +44,27 @@
};
};
};
languages.language-server = {
glsl.command = "${pkgs.glsl_analyzer}/bin/glsl_analyzer";
};
languages.language = [
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
}
{
name = "rust";
auto-format = true;
formatter.command = "rustfmt";
}
{
name = "glsl";
language-servers = [ "glsl" ];
}
];
};
};
}

View file

@ -15,6 +15,7 @@
config = {
networking.networkmanager.enable = true;
services.resolved.enable = true;
services.tailscale.enable = config.mods.tailscale.enable;
@ -29,6 +30,7 @@
wg0 = {
address = [ "10.0.0.2/24" "fdc9:281f:04d7:9ee9::2/64" ];
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
mtu = 1500;
privateKeyFile = "/home/muon/wireguard-keys/private";
peers = [

View file

@ -21,4 +21,6 @@
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
programs.nix-ld.enable = true;
}