forked from extern/zaneyos
Changed bash aliases, setup the new default host dir, removed pkgs dir with extra sddm bs, and playing around with script
This commit is contained in:
parent
b735dca2ea
commit
a987fa94bf
@ -21,7 +21,7 @@
|
||||
{ nixpkgs, home-manager, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
host = "familypc";
|
||||
host = "default";
|
||||
username = "zaney";
|
||||
in
|
||||
{
|
||||
|
@ -2,7 +2,6 @@
|
||||
config,
|
||||
pkgs,
|
||||
host,
|
||||
inputs,
|
||||
username,
|
||||
options,
|
||||
...
|
||||
@ -20,38 +19,98 @@
|
||||
../../modules/local-hardware-clock.nix
|
||||
];
|
||||
|
||||
# Kernel
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
# boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernel.sysctl = {
|
||||
"vm.max_map_count" = 2147483642;
|
||||
};
|
||||
boot.tmp.useTmpfs = false;
|
||||
boot.tmp.tmpfsSize = "30%";
|
||||
boot.binfmt.registrations.appimage = {
|
||||
wrapInterpreterInShell = false;
|
||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||
recognitionType = "magic";
|
||||
offset = 0;
|
||||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||
boot = {
|
||||
# Kernel
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
# This is for OBS Virtual Cam Support
|
||||
kernelModules = [ "v4l2loopback" ];
|
||||
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||
# Needed For Some Steam Games
|
||||
kernel.sysctl = {
|
||||
"vm.max_map_count" = 2147483642;
|
||||
};
|
||||
# Bootloader.
|
||||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
# Make /tmp a tmpfs
|
||||
tmp = {
|
||||
useTmpfs = false;
|
||||
tmpfsSize = "30%";
|
||||
};
|
||||
# Appimage Support
|
||||
binfmt.registrations.appimage = {
|
||||
wrapInterpreterInShell = false;
|
||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||
recognitionType = "magic";
|
||||
offset = 0;
|
||||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||
};
|
||||
plymouth.enable = true;
|
||||
};
|
||||
|
||||
# This is for OBS Virtual Cam Support - v4l2loopback setup
|
||||
boot.kernelModules = [ "v4l2loopback" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||
# Styling Options
|
||||
stylix = {
|
||||
image = ../../config/wallpapers/zaney-wallpaper.jpg;
|
||||
# base16Scheme = {
|
||||
# base00 = "232136";
|
||||
# base01 = "2a273f";
|
||||
# base02 = "393552";
|
||||
# base03 = "6e6a86";
|
||||
# base04 = "908caa";
|
||||
# base05 = "e0def4";
|
||||
# base06 = "e0def4";
|
||||
# base07 = "56526e";
|
||||
# base08 = "eb6f92";
|
||||
# base09 = "f6c177";
|
||||
# base0A = "ea9a97";
|
||||
# base0B = "3e8fb0";
|
||||
# base0C = "9ccfd8";
|
||||
# base0D = "c4a7e7";
|
||||
# base0E = "f6c177";
|
||||
# base0F = "56526e";
|
||||
# };
|
||||
polarity = "dark";
|
||||
cursor.package = pkgs.bibata-cursors;
|
||||
cursor.name = "Bibata-Modern-Ice";
|
||||
cursor.size = 24;
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
|
||||
name = "JetBrainsMono Nerd Font Mono";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.montserrat;
|
||||
name = "Montserrat";
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.montserrat;
|
||||
name = "Montserrat";
|
||||
};
|
||||
sizes = {
|
||||
applications = 12;
|
||||
terminal = 15;
|
||||
desktop = 11;
|
||||
popups = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
# Extra Module Options
|
||||
drivers.amdgpu.enable = true;
|
||||
drivers.nvidia.enable = false;
|
||||
drivers.nvidia-prime = {
|
||||
enable = false;
|
||||
intelBusID = "";
|
||||
nvidiaBusID = "";
|
||||
};
|
||||
drivers.intel.enable = false;
|
||||
vm.guest-services.enable = false;
|
||||
local.hardware-clock.enable = false;
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
networking.hostName = "${host}";
|
||||
networking.hostName = host;
|
||||
networking.timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
|
||||
|
||||
# Set your time zone.
|
||||
@ -73,12 +132,76 @@
|
||||
};
|
||||
|
||||
programs = {
|
||||
hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
firefox.enable = true;
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
buf = {
|
||||
symbol = " ";
|
||||
};
|
||||
c = {
|
||||
symbol = " ";
|
||||
};
|
||||
directory = {
|
||||
read_only = " ";
|
||||
};
|
||||
docker_context = {
|
||||
symbol = " ";
|
||||
};
|
||||
fossil_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
git_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
golang = {
|
||||
symbol = " ";
|
||||
};
|
||||
hg_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
hostname = {
|
||||
ssh_symbol = " ";
|
||||
};
|
||||
lua = {
|
||||
symbol = " ";
|
||||
};
|
||||
memory_usage = {
|
||||
symbol = " ";
|
||||
};
|
||||
meson = {
|
||||
symbol = " ";
|
||||
};
|
||||
nim = {
|
||||
symbol = " ";
|
||||
};
|
||||
nix_shell = {
|
||||
symbol = " ";
|
||||
};
|
||||
nodejs = {
|
||||
symbol = " ";
|
||||
};
|
||||
ocaml = {
|
||||
symbol = " ";
|
||||
};
|
||||
package = {
|
||||
symbol = " ";
|
||||
};
|
||||
python = {
|
||||
symbol = " ";
|
||||
};
|
||||
rust = {
|
||||
symbol = " ";
|
||||
};
|
||||
swift = {
|
||||
symbol = " ";
|
||||
};
|
||||
zig = {
|
||||
symbol = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
dconf.enable = true;
|
||||
seahorse.enable = true;
|
||||
fuse.userAllowOther = true;
|
||||
@ -109,111 +232,135 @@
|
||||
mutableUsers = true;
|
||||
};
|
||||
|
||||
environment.systemPackages =
|
||||
let
|
||||
sugar = pkgs.callPackage ../../pkgs/sddm-sugar-dark.nix { };
|
||||
tokyo-night = pkgs.libsForQt5.callPackage ../../pkgs/sddm-tokyo-night.nix { };
|
||||
in
|
||||
with pkgs;
|
||||
[
|
||||
vim
|
||||
wget
|
||||
killall
|
||||
git
|
||||
cmatrix
|
||||
lolcat
|
||||
neofetch
|
||||
htop
|
||||
libvirt
|
||||
lxqt.lxqt-policykit
|
||||
mangohud
|
||||
lm_sensors
|
||||
unzip
|
||||
unrar
|
||||
libnotify
|
||||
eza
|
||||
v4l-utils
|
||||
ydotool
|
||||
wl-clipboard
|
||||
lm_sensors
|
||||
pciutils
|
||||
socat
|
||||
cowsay
|
||||
ripgrep
|
||||
lsd
|
||||
lshw
|
||||
pkg-config
|
||||
meson
|
||||
gnumake
|
||||
ninja
|
||||
symbola
|
||||
noto-fonts-color-emoji
|
||||
material-icons
|
||||
brightnessctl
|
||||
virt-viewer
|
||||
swappy
|
||||
appimage-run
|
||||
networkmanagerapplet
|
||||
yad
|
||||
playerctl
|
||||
nh
|
||||
nixfmt-rfc-style
|
||||
discord
|
||||
libvirt
|
||||
swww
|
||||
grim
|
||||
slurp
|
||||
gnome.file-roller
|
||||
swaynotificationcenter
|
||||
imv
|
||||
transmission-gtk
|
||||
distrobox
|
||||
mpv
|
||||
gimp
|
||||
obs-studio
|
||||
rustup
|
||||
audacity
|
||||
pavucontrol
|
||||
tree
|
||||
protonup-qt
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
killall
|
||||
git
|
||||
cmatrix
|
||||
lolcat
|
||||
neofetch
|
||||
htop
|
||||
libvirt
|
||||
lxqt.lxqt-policykit
|
||||
mangohud
|
||||
lm_sensors
|
||||
unzip
|
||||
unrar
|
||||
libnotify
|
||||
eza
|
||||
v4l-utils
|
||||
ydotool
|
||||
wl-clipboard
|
||||
pciutils
|
||||
ffmpeg
|
||||
socat
|
||||
cowsay
|
||||
ripgrep
|
||||
lsd
|
||||
lshw
|
||||
pkg-config
|
||||
meson
|
||||
hyprpicker
|
||||
gnumake
|
||||
ninja
|
||||
brightnessctl
|
||||
virt-viewer
|
||||
swappy
|
||||
appimage-run
|
||||
networkmanagerapplet
|
||||
yad
|
||||
playerctl
|
||||
nh
|
||||
nixfmt-rfc-style
|
||||
discord
|
||||
libvirt
|
||||
swww
|
||||
grim
|
||||
slurp
|
||||
gnome.file-roller
|
||||
swaynotificationcenter
|
||||
imv
|
||||
transmission-gtk
|
||||
distrobox
|
||||
mpv
|
||||
gimp
|
||||
rustup
|
||||
audacity
|
||||
pavucontrol
|
||||
tree
|
||||
protonup-qt
|
||||
spotify
|
||||
neovide
|
||||
greetd.tuigreet
|
||||
];
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
noto-fonts-emoji
|
||||
noto-fonts-cjk
|
||||
font-awesome
|
||||
spotify
|
||||
neovide
|
||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
sugar.sddm-sugar-dark # Name: sugar-dark
|
||||
tokyo-night # Name: tokyo-night-sddm
|
||||
pkgs.libsForQt5.qt5.qtgraphicaleffects
|
||||
symbola
|
||||
material-icons
|
||||
];
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
ZANEYOS_VERSION = "2.1";
|
||||
ZANEYOS_VERSION = "2.2";
|
||||
ZANEYOS = "true";
|
||||
};
|
||||
|
||||
# Extra Portal Configuration
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal
|
||||
];
|
||||
configPackages = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal
|
||||
];
|
||||
};
|
||||
|
||||
# Services to start
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
autoNumlock = true;
|
||||
wayland.enable = true;
|
||||
theme = "sugar-dark";
|
||||
};
|
||||
desktopManager.cinnamon.enable = false;
|
||||
enable = false;
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
};
|
||||
smartd = {
|
||||
greetd = {
|
||||
enable = true;
|
||||
vt = 3;
|
||||
settings = {
|
||||
default_session = {
|
||||
# Wayland Desktop Manager is installed only for user ryan via home-manager!
|
||||
user = username;
|
||||
# .wayland-session is a script generated by home-manager, which links to the current wayland compositor(sway/hyprland or others).
|
||||
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config here.
|
||||
# command = "$HOME/.wayland-session"; # start a wayland session directly without a login manager
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; # start Hyprland with a TUI login manager
|
||||
};
|
||||
};
|
||||
};
|
||||
smartd = {
|
||||
enable = false;
|
||||
autodetect = true;
|
||||
};
|
||||
libinput.enable = true;
|
||||
fstrim.enable = false;
|
||||
gvfs.enable = true;
|
||||
openssh.enable = true;
|
||||
flatpak.enable = false;
|
||||
printing.enable = true;
|
||||
printing = {
|
||||
enable = true;
|
||||
# drivers = [ pkgs.hplipWithPlugin ];
|
||||
};
|
||||
gnome.gnome-keyring.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
@ -237,7 +384,6 @@
|
||||
nfs.server.enable = true;
|
||||
};
|
||||
systemd.services.flatpak-repo = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.flatpak ];
|
||||
script = ''
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
@ -248,8 +394,16 @@
|
||||
extraBackends = [ pkgs.sane-airscan ];
|
||||
disabledDefaultBackends = [ "escl" ];
|
||||
};
|
||||
|
||||
# Extra Logitech Support
|
||||
hardware.logitech.wireless.enable = true;
|
||||
hardware.logitech.wireless.enableGraphical = true;
|
||||
|
||||
# Bluetooth Support
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
@ -273,6 +427,11 @@
|
||||
}
|
||||
})
|
||||
'';
|
||||
security.pam.services.swaylock = {
|
||||
text = ''
|
||||
auth include login
|
||||
'';
|
||||
};
|
||||
|
||||
# Optimization settings and garbage collection automation
|
||||
nix = {
|
||||
@ -307,18 +466,6 @@
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
# Extra Module Options
|
||||
drivers.amdgpu.enable = true;
|
||||
drivers.nvidia.enable = false;
|
||||
drivers.nvidia-prime = {
|
||||
enable = false;
|
||||
intelBusID = "";
|
||||
nvidiaBusID = "";
|
||||
};
|
||||
drivers.intel.enable = false;
|
||||
vm.guest-services.enable = false;
|
||||
local.hardware-clock.enable = false;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
|
@ -29,10 +29,10 @@
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# fileSystems."/home/${username}/nfs" =
|
||||
# { device = "/dev/disk/by-uuid/55555555-5555-5555-5555-555555555555";
|
||||
# fsType = "nfs";
|
||||
# };
|
||||
fileSystems."/home/${username}/Documents" = {
|
||||
device = "/dev/disk/by-uuid/5605f7ab-73df-4234-a8ed-50c1eae69ffa";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/7CBF-413D";
|
||||
|
@ -1,15 +1,12 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
username,
|
||||
host,
|
||||
gtkThemeFromScheme,
|
||||
...
|
||||
}:
|
||||
let
|
||||
palette = config.colorScheme.palette;
|
||||
inherit (import ./variables.nix) gitUsername gitEmail theme;
|
||||
inherit (import ./variables.nix) gitUsername gitEmail;
|
||||
in
|
||||
{
|
||||
# Home Manager Settings
|
||||
@ -17,24 +14,20 @@ in
|
||||
home.homeDirectory = "/home/${username}";
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
# Set The Colorscheme
|
||||
colorScheme = inputs.nix-colors.colorSchemes."${theme}";
|
||||
|
||||
# Import Program Configurations
|
||||
imports = [
|
||||
inputs.nix-colors.homeManagerModules.default
|
||||
inputs.hyprland.homeManagerModules.default
|
||||
../../config/emoji.nix
|
||||
../../config/hyprland.nix
|
||||
../../config/neovim.nix
|
||||
../../config/rofi/rofi.nix
|
||||
../../config/rofi/config-emoji.nix
|
||||
../../config/rofi/config-long.nix
|
||||
../../config/swaync.nix
|
||||
../../config/waybar.nix
|
||||
../../config/wlogout.nix
|
||||
];
|
||||
|
||||
# Define Settings For Xresources
|
||||
xresources.properties = {
|
||||
"Xcursor.size" = 24;
|
||||
};
|
||||
|
||||
# Place Files Inside Home Directory
|
||||
home.file."Pictures/Wallpapers" = {
|
||||
source = ../../config/wallpapers;
|
||||
@ -44,29 +37,23 @@ in
|
||||
source = ../../config/wlogout;
|
||||
recursive = true;
|
||||
};
|
||||
home.file.".local/share/fonts" = {
|
||||
source = ../../config/fonts;
|
||||
recursive = true;
|
||||
};
|
||||
home.file.".config/starship.toml".source = ../../config/starship.toml;
|
||||
home.file.".config/ascii-neofetch".source = ../../config/ascii-neofetch;
|
||||
home.file.".base16-themes".source = ../../config/base16-themes;
|
||||
home.file.".emoji".source = ../../config/emoji;
|
||||
home.file.".face.icon".source = ../../config/face.jpg;
|
||||
home.file.".config/face.jpg".source = ../../config/face.jpg;
|
||||
home.file.".config/neofetch/config.conf".text = ''
|
||||
print_info() {
|
||||
prin "$(color 6) ZaneyOS $ZANEYOS_VERSION"
|
||||
info underline
|
||||
info "$(color 7) VER" kernel
|
||||
info "$(color 2) UP " uptime
|
||||
info "$(color 4) PKG" packages
|
||||
info "$(color 6) DE " de
|
||||
info "$(color 5) TER" term
|
||||
info "$(color 3) CPU" cpu
|
||||
info "$(color 7) GPU" gpu
|
||||
info "$(color 5) MEM" memory
|
||||
prin " "
|
||||
prin "$(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8)"
|
||||
prin "$(color 6) ZaneyOS $ZANEYOS_VERSION"
|
||||
info underline
|
||||
info "$(color 7) VER" kernel
|
||||
info "$(color 2) UP " uptime
|
||||
info "$(color 4) PKG" packages
|
||||
info "$(color 6) DE " de
|
||||
info "$(color 5) TER" term
|
||||
info "$(color 3) CPU" cpu
|
||||
info "$(color 7) GPU" gpu
|
||||
info "$(color 5) MEM" memory
|
||||
prin " "
|
||||
prin "$(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8)"
|
||||
}
|
||||
distro_shorthand="on"
|
||||
memory_unit="gib"
|
||||
@ -109,27 +96,10 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# Configure Cursor Theme
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 24;
|
||||
};
|
||||
|
||||
# Theme GTK
|
||||
# Styling Options
|
||||
stylix.targets.waybar.enable = false;
|
||||
stylix.targets.rofi.enable = false;
|
||||
gtk = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "Ubuntu";
|
||||
size = 12;
|
||||
package = pkgs.ubuntu_font_family;
|
||||
};
|
||||
theme = {
|
||||
name = "${config.colorScheme.slug}";
|
||||
package = gtkThemeFromScheme { scheme = config.colorScheme; };
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
@ -141,28 +111,18 @@ in
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
|
||||
# Theme QT -> GTK
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gtk";
|
||||
style = {
|
||||
name = "adwaita-dark";
|
||||
package = pkgs.adwaita-qt;
|
||||
};
|
||||
style.name = "adwaita-dark";
|
||||
platformTheme = "gtk3";
|
||||
};
|
||||
|
||||
|
||||
# Scripts
|
||||
home.packages = [
|
||||
(import ../../scripts/emopicker9000.nix { inherit pkgs; })
|
||||
(import ../../scripts/task-waybar.nix { inherit pkgs; })
|
||||
(import ../../scripts/squirtle.nix { inherit pkgs; })
|
||||
(import ../../scripts/themechange.nix {
|
||||
inherit pkgs;
|
||||
inherit host;
|
||||
inherit username;
|
||||
})
|
||||
(import ../../scripts/theme-selector.nix { inherit pkgs; })
|
||||
(import ../../scripts/nvidia-offload.nix { inherit pkgs; })
|
||||
(import ../../scripts/wallsetter.nix {
|
||||
inherit pkgs;
|
||||
@ -177,204 +137,49 @@ in
|
||||
})
|
||||
];
|
||||
|
||||
services = {
|
||||
hypridle = {
|
||||
settings = {
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
ignore_dbus_inhibit = false;
|
||||
lock_cmd = "hyprlock";
|
||||
starship = {
|
||||
enable = true;
|
||||
package = pkgs.starship;
|
||||
};
|
||||
};
|
||||
listener = [
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
gh.enable = true;
|
||||
neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
withNodeJs = true;
|
||||
extraPackages = with pkgs; [
|
||||
lua-language-server
|
||||
gopls
|
||||
xclip
|
||||
wl-clipboard
|
||||
luajitPackages.lua-lsp
|
||||
nil
|
||||
rust-analyzer
|
||||
nodePackages.bash-language-server
|
||||
yaml-language-server
|
||||
pyright
|
||||
marksman
|
||||
];
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
alpha-nvim
|
||||
auto-session
|
||||
bufferline-nvim
|
||||
dressing-nvim
|
||||
indent-blankline-nvim
|
||||
nvim-treesitter.withAllGrammars
|
||||
lualine-nvim
|
||||
nvim-autopairs
|
||||
nvim-web-devicons
|
||||
nvim-cmp
|
||||
nvim-surround
|
||||
nvim-lspconfig
|
||||
cmp-nvim-lsp
|
||||
cmp-buffer
|
||||
luasnip
|
||||
cmp_luasnip
|
||||
friendly-snippets
|
||||
lspkind-nvim
|
||||
comment-nvim
|
||||
nvim-ts-context-commentstring
|
||||
{
|
||||
plugin = dracula-nvim;
|
||||
config = "colorscheme dracula";
|
||||
}
|
||||
plenary-nvim
|
||||
neodev-nvim
|
||||
luasnip
|
||||
telescope-nvim
|
||||
todo-comments-nvim
|
||||
nvim-tree-lua
|
||||
telescope-fzf-native-nvim
|
||||
vim-tmux-navigator
|
||||
];
|
||||
extraConfig = ''
|
||||
set noemoji
|
||||
'';
|
||||
extraLuaConfig = ''
|
||||
${builtins.readFile ../../config/nvim/options.lua}
|
||||
${builtins.readFile ../../config/nvim/keymaps.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/alpha.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/autopairs.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/auto-session.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/comment.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/cmp.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/lsp.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/nvim-tree.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/telescope.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/todo-comments.lua}
|
||||
${builtins.readFile ../../config/nvim/plugins/treesitter.lua}
|
||||
require("ibl").setup()
|
||||
require("bufferline").setup{}
|
||||
require("lualine").setup({
|
||||
icons_enabled = true,
|
||||
theme = 'dracula',
|
||||
})
|
||||
'';
|
||||
};
|
||||
kitty = {
|
||||
enable = true;
|
||||
package = pkgs.kitty;
|
||||
font.name = "JetBrainsMono Nerd Font";
|
||||
font.size = 16;
|
||||
settings = {
|
||||
scrollback_lines = 2000;
|
||||
wheel_scroll_min_lines = 1;
|
||||
window_padding_width = 4;
|
||||
confirm_os_window_close = 0;
|
||||
background_opacity = "0.9";
|
||||
};
|
||||
extraConfig = ''
|
||||
foreground #${palette.base05}
|
||||
background #${palette.base00}
|
||||
color0 #${palette.base03}
|
||||
color1 #${palette.base08}
|
||||
color2 #${palette.base0B}
|
||||
color3 #${palette.base09}
|
||||
color4 #${palette.base0D}
|
||||
color5 #${palette.base0E}
|
||||
color6 #${palette.base0C}
|
||||
color7 #${palette.base06}
|
||||
color8 #${palette.base04}
|
||||
color9 #${palette.base08}
|
||||
color10 #${palette.base0B}
|
||||
color11 #${palette.base0A}
|
||||
color12 #${palette.base0C}
|
||||
color13 #${palette.base0E}
|
||||
color14 #${palette.base0C}
|
||||
color15 #${palette.base07}
|
||||
color16 #${palette.base00}
|
||||
color17 #${palette.base0F}
|
||||
color18 #${palette.base0B}
|
||||
color19 #${palette.base09}
|
||||
color20 #${palette.base0D}
|
||||
color21 #${palette.base0E}
|
||||
color22 #${palette.base0C}
|
||||
color23 #${palette.base06}
|
||||
cursor #${palette.base07}
|
||||
cursor_text_color #${palette.base00}
|
||||
selection_foreground #${palette.base01}
|
||||
selection_background #${palette.base0D}
|
||||
url_color #${palette.base0C}
|
||||
active_border_color #${palette.base04}
|
||||
inactive_border_color #${palette.base00}
|
||||
bell_border_color #${palette.base03}
|
||||
tab_bar_style fade
|
||||
tab_fade 1
|
||||
active_tab_foreground #${palette.base04}
|
||||
active_tab_background #${palette.base00}
|
||||
active_tab_font_style bold
|
||||
inactive_tab_foreground #${palette.base07}
|
||||
inactive_tab_background #${palette.base08}
|
||||
inactive_tab_font_style bold
|
||||
tab_bar_background #${palette.base00}
|
||||
'';
|
||||
};
|
||||
starship = {
|
||||
enable = true;
|
||||
package = pkgs.starship;
|
||||
};
|
||||
wofi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
allow_images = true;
|
||||
prompt = "Run Programs...";
|
||||
width = "35%";
|
||||
hide_scroll = true;
|
||||
term = "kitty";
|
||||
show = "drun";
|
||||
};
|
||||
style = ''
|
||||
* {
|
||||
font-family: JetBrainsMono Nerd Font Mono,monospace;
|
||||
font-weight: bold;
|
||||
}
|
||||
#window {
|
||||
border-radius: 25px;
|
||||
border: 2px solid #${palette.base08};
|
||||
background: #${palette.base00};
|
||||
}
|
||||
#input {
|
||||
border-radius: 10px;
|
||||
border: 2px solid #${palette.base0B};
|
||||
margin: 20px;
|
||||
padding: 15px 25px;
|
||||
background: #${palette.base00};
|
||||
color: #${palette.base05};
|
||||
}
|
||||
#inner-box {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
#outer-box {
|
||||
border: none;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
#text {
|
||||
border: none;
|
||||
}
|
||||
#entry {
|
||||
margin: 10px 80px;
|
||||
padding: 20px 20px;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
}
|
||||
#entry:focus {
|
||||
border: none;
|
||||
}
|
||||
#entry:hover {
|
||||
border: none;
|
||||
}
|
||||
#entry:selected {
|
||||
background-color: #${palette.base0F};
|
||||
color: #${palette.base00};
|
||||
}
|
||||
'';
|
||||
};
|
||||
bash = {
|
||||
@ -393,9 +198,10 @@ in
|
||||
'';
|
||||
shellAliases = {
|
||||
sv = "sudo nvim";
|
||||
flake-rebuild = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
||||
flake-update = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
||||
gcCleanup = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
fr = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
||||
fu = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
||||
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
||||
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
v = "nvim";
|
||||
ls = "lsd";
|
||||
ll = "lsd -l";
|
||||
@ -422,6 +228,18 @@ in
|
||||
blur_size = 8;
|
||||
}
|
||||
];
|
||||
image = [
|
||||
{
|
||||
path = "/home/${username}/.config/face.jpg";
|
||||
size = 150;
|
||||
border_size = 4;
|
||||
border_color = "rgb(0C96F9)";
|
||||
rounding = -1; # Negative means circle
|
||||
position = "0, 200";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
input-field = [
|
||||
{
|
||||
size = "200, 50";
|
||||
@ -429,9 +247,9 @@ in
|
||||
monitor = "";
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
font_color = "rgb(202, 211, 245)";
|
||||
inner_color = "rgb(91, 96, 120)";
|
||||
outer_color = "rgb(24, 25, 38)";
|
||||
font_color = "rgb(CFE6F4)";
|
||||
inner_color = "rgb(657DC2)";
|
||||
outer_color = "rgb(0D0E15)";
|
||||
outline_thickness = 5;
|
||||
placeholder_text = "Password...";
|
||||
shadow_passes = 2;
|
||||
|
@ -1,8 +1,6 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
username,
|
||||
host,
|
||||
...
|
||||
}:
|
||||
|
||||
@ -24,7 +22,8 @@ in
|
||||
];
|
||||
shell = pkgs.bash;
|
||||
ignoreShellProgramCheck = true;
|
||||
packages = with pkgs; [ ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
# "newuser" = {
|
||||
# homeMode = "755";
|
||||
|
@ -1,10 +1,7 @@
|
||||
{
|
||||
# Git Configuration ( For Pulling Software Repos )
|
||||
gitUsername = "John Smith";
|
||||
gitEmail = "example@gmail.com";
|
||||
|
||||
# Base16 Theme
|
||||
theme = "dracula";
|
||||
gitUsername = "Tyler Kelley";
|
||||
gitEmail = "tylerzanekelley@gmail.com";
|
||||
|
||||
# Hyprland Settings
|
||||
borderAnim = true; # Enable / Disable Hyprland Border Animation
|
||||
|
@ -108,12 +108,6 @@
|
||||
vm.guest-services.enable = false;
|
||||
local.hardware-clock.enable = false;
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
style = "adwaita-dark";
|
||||
platformTheme = "gtk2";
|
||||
};
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
networking.hostName = host;
|
||||
|
@ -111,6 +111,12 @@ in
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
style.name = "adwaita-dark";
|
||||
platformTheme = "gtk3";
|
||||
};
|
||||
|
||||
|
||||
# Scripts
|
||||
home.packages = [
|
||||
@ -192,9 +198,10 @@ in
|
||||
'';
|
||||
shellAliases = {
|
||||
sv = "sudo nvim";
|
||||
flake-rebuild = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
||||
flake-update = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
||||
gcCleanup = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
fr = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
||||
fu = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
||||
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
||||
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
v = "nvim";
|
||||
ls = "lsd";
|
||||
ll = "lsd -l";
|
||||
|
@ -77,11 +77,9 @@ sudo nixos-generate-config --show-hardware-config > ./hosts/$hostName/hardware.n
|
||||
|
||||
echo "-----"
|
||||
|
||||
echo "Setting Required Nix Settings & Committing Changes"
|
||||
echo "Setting Required Nix Settings Then Going To Install"
|
||||
NIX_CONFIG="experimental-features = nix-command flakes"
|
||||
|
||||
echo "-----"
|
||||
|
||||
echo "ZaneyOS Has Been Setup"
|
||||
echo "Please Edit Your Hosts Files"
|
||||
echo "Then Run: sudo nixos-rebuild switch --flake ~/zaneyos/#${hostName}"
|
||||
sudo nixos-rebuild switch --flake ~/zaneyos/#${hostName}
|
||||
|
@ -1,18 +0,0 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{
|
||||
sddm-sugar-dark = stdenv.mkDerivation rec {
|
||||
pname = "sddm-sugar-dark-theme";
|
||||
version = "1.2";
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sddm/themes
|
||||
cp -aR $src $out/share/sddm/themes/sugar-dark
|
||||
'';
|
||||
src = fetchFromGitHub {
|
||||
owner = "MarianArlt";
|
||||
repo = "sddm-sugar-dark";
|
||||
rev = "v${version}";
|
||||
sha256 = "0gx0am7vq1ywaw2rm1p015x90b75ccqxnb1sz3wy8yjl27v82yhb";
|
||||
};
|
||||
};
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
qtbase,
|
||||
qtsvg,
|
||||
qtgraphicaleffects,
|
||||
qtquickcontrols2,
|
||||
wrapQtAppsHook,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "tokyo-night-sddm";
|
||||
version = "1..0";
|
||||
dontBuild = true;
|
||||
src = fetchFromGitHub {
|
||||
owner = "rototrash";
|
||||
repo = "tokyo-night-sddm";
|
||||
rev = "320c8e74ade1e94f640708eee0b9a75a395697c6";
|
||||
sha256 = "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=";
|
||||
};
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
|
||||
propagatedUserEnvPkgs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
qtgraphicaleffects
|
||||
qtquickcontrols2
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sddm/themes
|
||||
cp -aR $src $out/share/sddm/themes/tokyo-night-sddm
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user