Push these changes to a branch cause I'm kind of giving up

This commit is contained in:
Jimbo 2024-10-07 11:42:34 -04:00
parent d9469fc321
commit e3bacb2d84
229 changed files with 1496 additions and 1479 deletions

View file

@ -0,0 +1,6 @@
{ ... }: {
programs.appimage = {
enable = true;
binfmt = true;
};
}

View file

@ -0,0 +1,11 @@
{ ... }: {
imports = [
./appimage
./gaming
./git
./school
./sway
./theming
./wayland
];
}

View file

@ -0,0 +1,8 @@
{ pkgs, ... }: {
programs.gamemode = {
enable = true;
settings.general.renice = 10;
};
hardware.steam-hardware.enable = true;
}

View file

@ -0,0 +1,10 @@
{ ... }: {
imports = [
./gpg
];
programs.git = {
enable = true;
lfs.enable = true;
};
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }: {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.systemPackages = with pkgs; [
git-crypt
];
}

View file

@ -0,0 +1,11 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
remmina
freerdp
python3
zoom-us
globalprotect-openconnect
];
services.globalprotect.enable = true;
}

View file

@ -0,0 +1,32 @@
{ pkgs, ... }: {
imports = [
./greetd
];
programs.sway = {
enable = true;
xwayland.enable = true;
extraPackages = with pkgs; [
swaylock
swaybg
];
};
# Allow swaylock to function
security.pam.services.swaylock = {};
# Enable desktop portals for screengrab
xdg.portal = {
wlr = {
enable = true;
settings.screencast = {
max_fps = 60;
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or -B 00000066 -b 00000099";
};
};
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
};
}

View file

@ -0,0 +1,39 @@
{ pkgs, ... }: {
services = {
# Configure greetd for "auto" login (single user only)
greetd = let
startSway = pkgs.writeScript "startsway" ''
# Use NVIDIA variables if drivers are in use
if lspci -k | grep "Kernel driver in use: nvidia" &> /dev/null; then
# NVIDIA/AMD variables
export LIBVA_DRIVER_NAME=nvidia
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
else
:
fi
# Sway/Wayland
export XDG_CURRENT_DESKTOP=sway
export QT_QPA_PLATFORM="wayland;xcb"
# Start Sway
sway --unsupported-gpu
'';
in {
enable = true;
restart = true;
settings = {
terminal = {
vt = 2;
switch = true;
};
default_session = {
command = "${startSway}";
user = "jimbo";
};
};
};
};
}

View file

@ -0,0 +1,6 @@
{ ... }: {
imports = [
./qt
./fonts
];
}

View file

@ -0,0 +1,19 @@
{ pkgs, ... }: {
fonts = {
packages = with pkgs; [
liberation_ttf
twitter-color-emoji
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override {
fonts = [
"UbuntuMono"
];
})
];
fontconfig.defaultFonts.emoji = [
"Twitter Color Emoji"
];
};
}

View file

@ -0,0 +1,7 @@
{ ... }: {
qt = {
enable = true;
style = "gtk2";
platformTheme = "gtk2";
};
}

View file

@ -0,0 +1,25 @@
{ pkgs, ... }: {
programs = {
dconf.enable = true;
light.enable = true;
xwayland.enable = true;
};
# Battery saver and dbus
services = {
tlp.enable = true;
dbus.enable = true;
};
environment.systemPackages = with pkgs; [
wl-clipboard
wdisplays
clipman
libnotify
grim
slurp
swappy
jq
lm_sensors
];
}