Removed wallpapers, now pulling them from seperate git repo
@ -5,10 +5,6 @@
|
|||||||
home.file.".config/zaney-stinger.mov".source = ./files/media/zaney-stinger.mov;
|
home.file.".config/zaney-stinger.mov".source = ./files/media/zaney-stinger.mov;
|
||||||
home.file.".emoji".source = ./files/emoji;
|
home.file.".emoji".source = ./files/emoji;
|
||||||
home.file.".face".source = ./files/face.jpg;
|
home.file.".face".source = ./files/face.jpg;
|
||||||
home.file."Pictures/Wallpapers" = {
|
|
||||||
source = ./files/media/Wallpapers;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
home.file.".local/share/fonts" = {
|
home.file.".local/share/fonts" = {
|
||||||
source = ./files/fonts;
|
source = ./files/fonts;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 7.5 MiB |
Before Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 857 KiB |
Before Width: | Height: | Size: 3.6 MiB |
Before Width: | Height: | Size: 555 KiB |
@ -61,13 +61,29 @@ animations {
|
|||||||
animation = workspaces, 1, 5, wind
|
animation = workspaces, 1, 5, wind
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set Environment Variables
|
||||||
|
env = NIXOS_OZONE_WL, 1
|
||||||
|
env = NIXPKGS_ALLOW_UNFREE, 1
|
||||||
|
env = XDG_CURRENT_DESKTOP, Hyprland
|
||||||
|
env = XDG_SESSION_TYPE, wayland
|
||||||
|
env = XDG_SESSION_DESKTOP, Hyprland
|
||||||
|
env = GDK_BACKEND, wayland
|
||||||
|
env = CLUTTER_BACKEND, wayland
|
||||||
|
env = SDL_VIDEODRIVER, x11
|
||||||
|
env = XCURSOR_SIZE, 24
|
||||||
|
env = XCURSOR_THEME, Bibata-Modern-Ice
|
||||||
|
env = QT_QPA_PLATFORM, wayland
|
||||||
|
env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1
|
||||||
|
env = QT_AUTO_SCREEN_SCALE_FACTOR, 1
|
||||||
|
env = MOZ_ENABLE_WAYLAND, 1
|
||||||
|
|
||||||
exec-once = dbus-update-activation-environment --systemd --all
|
exec-once = dbus-update-activation-environment --systemd --all
|
||||||
exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
exec-once = hyprctl setcursor Bibata-Modern-Ice 24
|
exec-once = hyprctl setcursor Bibata-Modern-Ice 24
|
||||||
exec-once = swww init
|
exec-once = swww init
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
exec-once = swaync
|
exec-once = swaync
|
||||||
# exec-once = wallsetter
|
exec-once = wallsetter
|
||||||
exec-once = swayidle -w timeout 150 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
exec-once = swayidle -w timeout 150 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
||||||
|
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
@ -1,24 +1,20 @@
|
|||||||
{ pkgs }:
|
{ pkgs, wallpaperDir, }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "wallsetter" ''
|
pkgs.writeShellScriptBin "wallsetter" ''
|
||||||
TIMEOUT=120
|
TIMEOUT=720
|
||||||
OSRELEASE=$(cat /etc/os-release | grep nixos | shuf -n 1)
|
|
||||||
FILETYPE="l"
|
|
||||||
TRANSITION1="--transition-type wave --transition-angle 120 --transition-step 30"
|
TRANSITION1="--transition-type wave --transition-angle 120 --transition-step 30"
|
||||||
TRANSITION2="--transition-type wipe --transition-angle 30 --transition-step 30"
|
TRANSITION2="--transition-type wipe --transition-angle 30 --transition-step 30"
|
||||||
TRANSITION3="--transition-type center --transition-step 30"
|
TRANSITION3="--transition-type center --transition-step 30"
|
||||||
TRANSITION4="--transition-type outer --transition-pos 0.3,0.8 --transition-step 30"
|
TRANSITION4="--transition-type outer --transition-pos 0.3,0.8 --transition-step 30"
|
||||||
TRANSITION5="--transition-type wipe --transition-angle 270 --transition-step 30"
|
TRANSITION5="--transition-type wipe --transition-angle 270 --transition-step 30"
|
||||||
|
WALLPAPER=$(find ${wallpaperDir}/* -type f | shuf -n 1)
|
||||||
[[ ! -z "$OSRELEASE" ]] && FILETYPE="l" || FILETYPE="f"
|
|
||||||
WALLPAPER=$(find $HOME/Pictures/Wallpapers -type $FILETYPE | shuf -n 1)
|
|
||||||
PREVIOUS=$WALLPAPER
|
PREVIOUS=$WALLPAPER
|
||||||
|
|
||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
if [ $WALLPAPER == $PREVIOUS ]
|
if [ $WALLPAPER == $PREVIOUS ]
|
||||||
then
|
then
|
||||||
WALLPAPER=$(find $HOME/Pictures/Wallpapers -type $FILETYPE | shuf -n 1)
|
WALLPAPER=$(find ${wallpaperDir}/* -type f | shuf -n 1)
|
||||||
else
|
else
|
||||||
PREVIOUS=$WALLPAPER
|
PREVIOUS=$WALLPAPER
|
||||||
NUM=$(shuf -i 1-5 -n 1)
|
NUM=$(shuf -i 1-5 -n 1)
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
gitEmail = "tylerzanekelley@gmail.com";
|
gitEmail = "tylerzanekelley@gmail.com";
|
||||||
theLocale = "en_US.UTF-8";
|
theLocale = "en_US.UTF-8";
|
||||||
theTimezone = "America/Chicago";
|
theTimezone = "America/Chicago";
|
||||||
theme = "gigavolt";
|
theme = "tokyo-night-storm";
|
||||||
browser= pkgs.firefox;
|
browser = "firefox";
|
||||||
|
wallpaperDir = "home/${username}/Pictures/Wallpapers";
|
||||||
|
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
@ -53,12 +55,13 @@
|
|||||||
specialArgs = { inherit system; inherit inputs;
|
specialArgs = { inherit system; inherit inputs;
|
||||||
inherit username; inherit hostname; inherit gitUsername;
|
inherit username; inherit hostname; inherit gitUsername;
|
||||||
inherit gitEmail; inherit theLocale; inherit theTimezone;
|
inherit gitEmail; inherit theLocale; inherit theTimezone;
|
||||||
|
inherit wallpaperDir; inherit wallpaperGit;
|
||||||
};
|
};
|
||||||
modules = [ ./workstation/configuration.nix
|
modules = [ ./workstation/configuration.nix
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.extraSpecialArgs = { inherit username;
|
home-manager.extraSpecialArgs = { inherit username;
|
||||||
inherit gitUsername; inherit gitEmail; inherit inputs; inherit theme;
|
inherit gitUsername; inherit gitEmail; inherit inputs; inherit theme;
|
||||||
inherit browser;
|
inherit browser; inherit wallpaperDir; inherit wallpaperGit;
|
||||||
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
|
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
19
home.nix
@ -1,6 +1,6 @@
|
|||||||
{ config, pkgs, inputs, username,
|
{ config, pkgs, inputs, username,
|
||||||
gitUsername, gitEmail, gtkThemeFromScheme,
|
gitUsername, gitEmail, gtkThemeFromScheme,
|
||||||
theme, browser, ... }:
|
theme, browser, wallpaperDir, wallpaperGit, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Home Manager Settings
|
# Home Manager Settings
|
||||||
@ -11,6 +11,7 @@
|
|||||||
# Set The Colorscheme
|
# Set The Colorscheme
|
||||||
colorScheme = inputs.nix-colors.colorSchemes."${theme}";
|
colorScheme = inputs.nix-colors.colorSchemes."${theme}";
|
||||||
|
|
||||||
|
# Import Program Configurations
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nix-colors.homeManagerModules.default
|
inputs.nix-colors.homeManagerModules.default
|
||||||
./config/waybar.nix
|
./config/waybar.nix
|
||||||
@ -54,7 +55,7 @@
|
|||||||
|
|
||||||
# Install Packages For The User
|
# Install Packages For The User
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
"${browser}" neofetch lolcat cmatrix discord htop btop libvirt
|
pkgs."${browser}" neofetch lolcat cmatrix discord htop btop libvirt
|
||||||
swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller
|
swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller
|
||||||
libnotify swaynotificationcenter rofi-wayland imv v4l-utils
|
libnotify swaynotificationcenter rofi-wayland imv v4l-utils
|
||||||
ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv
|
ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv
|
||||||
@ -66,9 +67,10 @@
|
|||||||
(import ./config/scripts/emopicker9000.nix { inherit pkgs; })
|
(import ./config/scripts/emopicker9000.nix { inherit pkgs; })
|
||||||
(import ./config/scripts/task-waybar.nix { inherit pkgs; })
|
(import ./config/scripts/task-waybar.nix { inherit pkgs; })
|
||||||
(import ./config/scripts/squirtle.nix { inherit pkgs; })
|
(import ./config/scripts/squirtle.nix { inherit pkgs; })
|
||||||
(import ./config/scripts/wallsetter.nix { inherit pkgs; })
|
(import ./config/scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir; })
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# Configure Cursor Theme
|
# Configure Cursor Theme
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
@ -110,6 +112,17 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Theme QT -> GTK
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme = "gtk";
|
||||||
|
style = {
|
||||||
|
name = "adwaita-dark";
|
||||||
|
package = pkgs.adwaita-qt;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# Create XDG Dirs
|
# Create XDG Dirs
|
||||||
xdg = {
|
xdg = {
|
||||||
userDirs = {
|
userDirs = {
|
||||||
|
@ -1,34 +1,30 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
||||||
|
|
||||||
{ inputs, config, pkgs, username,
|
{ inputs, config, pkgs, username,
|
||||||
hostname, gitUsername, theLocale,
|
hostname, gitUsername, theLocale,
|
||||||
theTimezone, ... }:
|
theTimezone, wallpaperDir, wallpaperGit, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# This is for OBS Virtual Cam Support - v4l2loopback setup
|
||||||
boot.kernelModules = [ "v4l2loopback" ];
|
boot.kernelModules = [ "v4l2loopback" ];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||||
|
|
||||||
networking.hostName = "${hostname}"; # Define your hostname.
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
networking.hostName = "${hostname}"; # Define your hostname
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone
|
||||||
time.timeZone = "${theTimezone}";
|
time.timeZone = "${theTimezone}";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties
|
||||||
i18n.defaultLocale = "${theLocale}";
|
i18n.defaultLocale = "${theLocale}";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_ADDRESS = "${theLocale}";
|
LC_ADDRESS = "${theLocale}";
|
||||||
LC_IDENTIFICATION = "${theLocale}";
|
LC_IDENTIFICATION = "${theLocale}";
|
||||||
@ -41,7 +37,7 @@
|
|||||||
LC_TIME = "${theLocale}";
|
LC_TIME = "${theLocale}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account.
|
||||||
users.users."${username}" = {
|
users.users."${username}" = {
|
||||||
homeMode = "755";
|
homeMode = "755";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
@ -56,7 +52,7 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim wget curl libsForQt5.qtstyleplugin-kvantum libsForQt5.qt5ct
|
vim wget curl
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
@ -77,20 +73,21 @@
|
|||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.qt5 = {
|
|
||||||
enable = true;
|
|
||||||
platformTheme = "qt5ct";
|
|
||||||
style = {
|
|
||||||
package = pkgs.utterly-nord-plasma;
|
|
||||||
name = "Utterly Nord Plasma";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.activationScripts = {
|
||||||
|
installwallpapers.text = ''
|
||||||
|
if [ -d "${wallpaperDir}" ]; then
|
||||||
|
cd "${wallpaperDir}" && ${pkgs.git}/bin/git pull
|
||||||
|
else
|
||||||
|
${pkgs.git}/bin/git clone "${wallpaperGit}" "${wallpaperDir}"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
programs.mtr.enable = true;
|
||||||
@ -127,7 +124,7 @@
|
|||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
# Optimization settings and garbage collection automation
|
||||||
nix = {
|
nix = {
|
||||||
settings.auto-optimise-store = true;
|
settings.auto-optimise-store = true;
|
||||||
gc = {
|
gc = {
|
||||||
@ -137,29 +134,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set Environment Variables
|
system.stateVersion = "23.11";
|
||||||
environment.variables={
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
PATH = [
|
|
||||||
"\${HOME}/.local/bin"
|
|
||||||
"\${HOME}/.cargo/bin"
|
|
||||||
"\$/usr/local/bin"
|
|
||||||
];
|
|
||||||
NIXPKGS_ALLOW_UNFREE = "1";
|
|
||||||
SCRIPTDIR = "\${HOME}/.local/share/scriptdeps";
|
|
||||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
XDG_SESSION_DESKTOP = "Hyprland";
|
|
||||||
GDK_BACKEND = "wayland";
|
|
||||||
CLUTTER_BACKEND = "wayland";
|
|
||||||
SDL_VIDEODRIVER = "x11";
|
|
||||||
XCURSOR_SIZE = "24";
|
|
||||||
XCURSOR_THEME = "Bibata-Modern-Ice";
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
|
||||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
||||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
|
||||||
};
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
}
|
}
|
||||||
|