Init:start-nix

This commit is contained in:
dichgrem
2025-07-22 12:18:15 +08:00
parent 7ce7214a74
commit e57cdd246c
178 changed files with 22667 additions and 1 deletions

View File

@@ -0,0 +1,83 @@
{
hostname,
pkgs,
...
}: let
inherit (import ../../hosts/${hostname}/env.nix) ScaleLevel;
in {
environment = {
variables = {
EDITOR = "nvim";
TERMINAL = "alacritty";
_JAVA_AWT_WM_NONREPARENTING = 1;
AWT_TOOLKIT = "MToolkit";
CLUTTER_BACKEND = "wayland";
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
GDK_BACKEND = "wayland";
GDK_SCALE = "${ScaleLevel}";
GTK_USE_PORTAL = 1;
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
QT_AUTO_SCREEN_SCALE_FACTOR = 1;
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = 1;
SDL_HINT_VIDEODRIVER = "wayland";
XDG_SESSION_TYPE = "wayland";
SDL_VIDEODRIVER = "wayland";
QT_IM_MODULE = "fcitx";
SDL_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
};
systemPackages = with pkgs; [
# Archive
gnutar
p7zip
unzipNLS
xz
zip
zstd
# Greeter with ddm
greetd.tuigreet
# For OBS virtual cam support
v4l-utils
# Editor
neovim
# Networking tool
curl
nexttrace
aria2
syncthing
#Blog
zola
go
pnpm
#Android
android-tools
payload-dumper-go
# Misc
libnotify
libvirt
lm_sensors
];
};
programs = {
dconf.enable = true;
fuse.userAllowOther = true;
git = {
enable = true;
package = pkgs.gitMinimal;
};
ssh.startAgent = true;
};
}