refactor: major structural changes

git updates

update tmux conf

add ansible tools

squash me

squash

fix: get git aliases from plugin

virt stuff

add devenv

some virt updates

kubernetes
This commit is contained in:
Glen Goodwin 2023-11-22 16:33:30 -05:00
parent 2e8c1eec90
commit 2220c4e917
87 changed files with 1963 additions and 2261 deletions

15
common/gui/common.nix Normal file
View file

@ -0,0 +1,15 @@
{pkgs, ...}: {
services.printing.enable = true;
environment.systemPackages = with pkgs; [
gnome.adwaita-icon-theme
gnome.gnome-themes-extra
firefox-wayland
discord
qt5.qtwayland
qt6.qmake
qt6.qtwayland
adwaita-qt
adwaita-qt6
];
}

14
common/gui/dbus.nix Normal file
View file

@ -0,0 +1,14 @@
{
config,
pkgs,
...
}: {
services.dbus = {
enable = true;
packages = [pkgs.dconf];
};
programs.dconf = {
enable = true;
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}: {
services.xserver = {
displayManager.gdm = {
enable = false;
wayland = true;
};
displayManager.lightdm.enable = false;
};
environment.systemPackages = with pkgs; [
];
}

80
common/gui/hyprland.nix Normal file
View file

@ -0,0 +1,80 @@
{
pkgs,
inputs,
...
}: {
imports = [
./common.nix
./dbus.nix
./pipewire.nix
./wayland.nix
./displayManager.nix
./xdg.nix
];
# Security
security = {
pam.services.swaylock = {
text = ''
auth include login
'';
};
};
# Services
services = {
xserver = {
enable = true;
layout = "us";
xkbVariant = "";
excludePackages = [pkgs.xterm];
# videoDrivers = ["amdgpu"];
libinput = {
enable = true;
touchpad.tapping = true;
touchpad.naturalScrolling = true;
touchpad.scrollMethod = "twofinger";
touchpad.disableWhileTyping = true;
touchpad.clickMethod = "clickfinger";
};
};
gvfs.enable = true;
tumbler.enable = true;
gnome = {
sushi.enable = true;
gnome-keyring.enable = true;
};
};
programs = {
hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
xwayland = {
enable = true;
};
};
waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
});
};
thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
};
environment.systemPackages = with pkgs; [
libva-utils
gsettings-desktop-schemas
];
environment.sessionVariables = {
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_DESKTOP = "Hyprland";
};
}

28
common/gui/pipewire.nix Normal file
View file

@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}: {
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
environment.systemPackages = with pkgs; [
pipewire
wireplumber
];
}

15
common/gui/thunar.nix Normal file
View file

@ -0,0 +1,15 @@
{
pkgs,
config,
...
}: {
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images
}

26
common/gui/wayland.nix Normal file
View file

@ -0,0 +1,26 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
wlr-randr
wl-clipboard
];
environment.sessionVariables = {
POLKIT_AUTH_AGENT = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
MOZ_ENABLE_WAYLAND = "1";
SDL_VIDEODRIVER = "wayland";
_JAVA_AWT_WM_NONREPARENTING = "1";
CLUTTER_BACKEND = "wayland";
WLR_RENDERER = "vulkan";
GTK_USE_PORTAL = "1";
#NIXOS_XDG_OPEN_USE_PORTAL = "1"; # Sets the desktop portal to use flatpak
WLR_NO_HARDWARE_CURSOR = "1";
GDK_BACKEND = "wayland";
QT_QPA_PLATFORM = "wayland;xcb";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_QPA_PLATFORMTHEME = "qt5ct";
};
}

26
common/gui/xdg.nix Normal file
View file

@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
...
}: {
# XDG Portals
xdg = {
autostart.enable = true;
portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
};
environment.systemPackages = with pkgs; [
xdg-utils
xdg-desktop-portal
xdg-desktop-portal-gtk
];
environment.sessionVariables = {
XDG_SESSION_TYPE = "wayland";
};
}