fix anti-patterns: niri portals, nix optimise, zram; add dev packages
- niri: remove explicit package override (use niri-flake default), drop KDE portal, set xdg.portal.config for deterministic portal resolution, remove unused waybar - core: replace synchronous auto-optimise-store with async nix.optimise.automatic, reduce zramSwap.memoryPercent from 300 to 100 - dev: add python3 and uv to system packages - add .mcp.json (nixos MCP server) and CLAUDE.md
This commit is contained in:
parent
4b0974e74e
commit
bf35832817
5 changed files with 110 additions and 13 deletions
|
|
@ -8,7 +8,6 @@
|
|||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"https://niri.cachix.org"
|
||||
|
|
@ -27,12 +26,13 @@
|
|||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
optimise.automatic = true;
|
||||
};
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 300;
|
||||
memoryPercent = 100;
|
||||
};
|
||||
|
||||
services.xserver.enable = false;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ in {
|
|||
environment.systemPackages = with pkgs-unstable; [
|
||||
# CLI utilities
|
||||
gcc
|
||||
python3
|
||||
uv
|
||||
fzf
|
||||
just
|
||||
tree-sitter
|
||||
|
|
|
|||
|
|
@ -7,16 +7,12 @@
|
|||
|
||||
fonts.packages = [ pkgs.nerd-fonts.jetbrains-mono ];
|
||||
|
||||
programs.niri = {
|
||||
enable = true;
|
||||
package = pkgs.niri;
|
||||
};
|
||||
programs.niri.enable = true;
|
||||
|
||||
programs.gpu-screen-recorder.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
quickshell-niri
|
||||
waybar
|
||||
fuzzel
|
||||
swaylock
|
||||
swayidle
|
||||
|
|
@ -25,7 +21,6 @@
|
|||
slurp
|
||||
wl-clipboard
|
||||
xdg-desktop-portal-gnome
|
||||
kdePackages.xdg-desktop-portal-kde
|
||||
xwayland-satellite
|
||||
gpu-screen-recorder-gtk
|
||||
libnotify
|
||||
|
|
@ -34,11 +29,9 @@
|
|||
];
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gnome
|
||||
pkgs.kdePackages.xdg-desktop-portal-kde
|
||||
];
|
||||
enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
|
||||
config.common.default = [ "gnome" ];
|
||||
};
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue