1

Slim down servenix for VM even more

This commit is contained in:
2023-07-12 22:53:53 +02:00
parent e3ef71d36a
commit 0f2d1ef15f
3 changed files with 126 additions and 70 deletions

View File

@ -391,8 +391,8 @@ rec {
protonvpn-cli protonvpn-cli
# yt-dlp # download videos (from almost anywhere) # HM program # yt-dlp # download videos (from almost anywhere) # HM program
filezilla filezilla
dnsmasq # For Access Point/Hotspot # dnsmasq # For Access Point/Hotspot
linux-wifi-hotspot # linux-wifi-hotspot
# spotdl-4_1_6 # My derivation as temporary fix # spotdl-4_1_6 # My derivation as temporary fix
spotdl spotdl
@ -448,8 +448,8 @@ rec {
kdenlive kdenlive
krita krita
inkscape inkscape
handbrake # handbrake
makemkv # makemkv
AusweisApp2 AusweisApp2
@ -635,45 +635,45 @@ rec {
userName = "ChUrl"; userName = "ChUrl";
}; };
helix = { # helix = {
enable = true; # enable = true;
# NOTE: Syntax changed # # NOTE: Syntax changed
# languages = [ # # languages = [
# { # # {
# name = "verilog"; # # name = "verilog";
# roots = [ # # roots = [
# ".svls.toml" # # ".svls.toml"
# ".svlint.toml" # # ".svlint.toml"
# ]; # # ];
# language-server = { # # language-server = {
# command = "svls"; # # command = "svls";
# args = []; # # args = [];
# }; # # };
# } # # }
# ]; # # ];
# https://docs.helix-editor.com/configuration.html # # https://docs.helix-editor.com/configuration.html
settings = { # settings = {
# theme = "base16_terminal"; # # theme = "base16_terminal";
editor = { # editor = {
scrolloff = 10; # scrolloff = 10;
mouse = false; # Default true # mouse = false; # Default true
middle-click-paste = false; # Default true # middle-click-paste = false; # Default true
line-number = "relative"; # line-number = "relative";
cursorline = true; # cursorline = true;
auto-completion = true; # Default # auto-completion = true; # Default
bufferline = "multiple"; # bufferline = "multiple";
cursor-shape = { # cursor-shape = {
normal = "block"; # normal = "block";
insert = "bar"; # insert = "bar";
select = "underline"; # select = "underline";
}; # };
lsp.display-messages = true; # lsp.display-messages = true;
indent-guides.render = false; # indent-guides.render = false;
}; # };
}; # };
}; # NOTE: If error occurs after system update on fish init run "ssh-add" # }; # NOTE: If error occurs after system update on fish init run "ssh-add"
keychain = { keychain = {
enable = true; enable = true;

View File

@ -16,36 +16,79 @@ rec {
]; ];
config = { config = {
modules = { # Use mkForce to not pull the entire ballast from /home/christoph/default.nix
hyprland = {
kb-layout = "us";
kb-variant = "altgr-intl";
monitors = { modules = lib.mkForce {
"HDMI-A-3" = { fish.enable = true;
width = 1920; helix.enable = true;
height = 1080; nnn.enable = true;
rate = 60;
x = 0;
y = 0;
scale = 1;
};
};
workspaces = {
"HDMI-A-3" = [1 2 3 4 5 6 7 8 9 10];
};
};
waybar.monitor = "HDMI-A-3";
}; };
# Use mkForce to not pull the entire ballast from /home/christoph/default.nix
home.packages = with pkgs; lib.mkForce [ home.packages = with pkgs; lib.mkForce [
ffmpeg_5-full # v5, including ffplay ffmpeg_5-full # v5, including ffplay
imagemagick # Convert image (magic) imagemagick # Convert image (magic)
gdu # Alternative to du-dust (I like it better)
duf # Disk usage analyzer (for all disk overview)
fd # find alternative
sd # sed alternative
fclones # duplicate file finder
unrar unrar
p7zip p7zip
ffmpegthumbnailer # Video thumbnails
mediainfo
tree # Folder preview
progress
wget # download that shit
cachix
]; ];
programs = lib.mkForce {
home-manager.enable = true;
bat = {
enable = true;
themes = {
catppuccin-latte = builtins.readFile (pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
} + "/Catppuccin-latte.tmTheme");
};
config = {
theme = "catppuccin-latte";
};
};
exa.enable = true;
ssh.enable = true;
starship = let
flavour = "latte"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
in {
enable = true;
enableFishIntegration = config.modules.fish.enable;
settings =
{
# Other config here
format = "$all"; # Remove this line to disable the default prompt format
palette = "catppuccin_${flavour}";
}
// builtins.fromTOML (builtins.readFile
(pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "starship";
rev = "3e3e54410c3189053f4da7a7043261361a1ed1bc";
sha256 = "sha256-soEBVlq3ULeiZFAdQYMRFuswIIhI9bclIU8WXjxd7oY=";
}
+ /palettes/${flavour}.toml));
};
yt-dlp.enable = true;
};
}; };
} }

View File

@ -49,19 +49,32 @@
}; };
}; };
# Low latency audio
# musnix = {
# enable = true;
# # musnix.soundcardPciId = ;
# };
services.xserver = { services.xserver = {
enable = lib.mkForce false;
# Configure keymap in X11 # Configure keymap in X11
layout = "us"; layout = "us";
xkbVariant = "altgr-intl"; xkbVariant = "altgr-intl";
# videoDrivers = [ "nvidia" ]; # NVIDIA # videoDrivers = [ "nvidia" ]; # NVIDIA
# videoDrivers = ["amdgpu"]; # videoDrivers = ["amdgpu"];
videoDrivers = ["intel"]; # videoDrivers = ["intel"];
}; };
programs = lib.mkForce {
fish.enable = true;
firejail.enable = true;
git.enable = true;
neovim.enable = true;
starship.enable = true;
};
services = {
pipewire.enable = lib.mkForce false;
printing.enable = lib.mkForce false;
avahi.enable = lib.mkForce false;
flatpak.enable = lib.mkForce false;
};
virtualisation.qemu.guestAgent.enable = true;
} }