organize modules

This commit is contained in:
Satria 2026-02-07 13:44:48 +07:00
commit d0d4bf9ddb
21 changed files with 54 additions and 69 deletions

View file

@ -0,0 +1,30 @@
{ pkgs, enable-dm, ... }: {
hardware.graphics = {
enable = true;
extraPackages = [ pkgs.libva-vdpau-driver ];
};
services = {
displayManager.gdm.enable = enable-dm;
xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
};
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
gnome.gnome-keyring.enable = true;
gvfs.enable = true;
blueman.enable = true;
pulseaudio.enable = false;
};
security.rtkit.enable = true;
}

View file

@ -0,0 +1,15 @@
{ ... }: {
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d -d";
};
optimise.automatic = true;
};
}

View file

@ -0,0 +1,28 @@
{ pkgs, ... }: {
services = {
sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
printing = {
enable = true;
drivers = with pkgs; [ hplip ];
};
};
programs = {
gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
zsh.enable = true;
nix-ld.enable = true;
steam.enable = true;
appimage = {
enable = true;
binfmt = true;
};
kdeconnect = {
enable = true;
};
};
}

View file

@ -0,0 +1,64 @@
{ pkgs, ... }: {
nixpkgs.config.permittedInsecurePackages = [
"ventoy-qt5-1.1.10"
];
environment.systemPackages = with pkgs; [
baobab
file-roller
gnome-network-displays
gnome-disk-utility
smartmontools
lm_sensors
ntfs3g
virt-viewer
dconf2nix
pciutils
gparted
exfatprogs
pavucontrol
jq
powertop
smartmontools
fastfetch
ethtool
dig
dnslookup
lsof
gucharmap
ncdu
zip
blueman
shared-mime-info
usbutils
android-tools
scrcpy
distrobox
ventoy-full-qt
home-manager
vim
wget
curl
openssl_3
htop
nmap
sysstat
netcat
p7zip
stress
wakeonlan
coreutils-full
traceroute
lxappearance
freerdp
nix-index
nixd
nil
nh
git
];
}