This commit is contained in:
Hadi 2024-08-19 19:36:21 +02:00
parent 849eb5dd11
commit 79a69d245c
8 changed files with 42 additions and 53 deletions

View File

@ -6,7 +6,9 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprshot hyprshot
hyprpicker hyprpicker
# hyprcursor swappy
imv
wf-recorder
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
wlr-randr wlr-randr
wl-clipboard wl-clipboard
@ -15,7 +17,6 @@
wlsunset wlsunset
xwayland xwayland
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
wlroots
qt5ct qt5ct
libva libva
dconf dconf
@ -102,11 +103,13 @@
]; ];
env = [ env = [
"LIBVA_DRIVER_NAME,nvidia"
"XDG_SESSION_TYPE,wayland" "XDG_SESSION_TYPE,wayland"
"XDG_CURRENT_DESKTOP,Hyprland" "XDG_CURRENT_DESKTOP,Hyprland"
"MOZ_ENABLE_WAYLAND,1"
"ANKI_WAYLAND,1"
"DISABLE_QT5_COMPAT,0"
"NIXOS_OZONE_WL,1"
"XDG_SESSION_TYPE,wayland" "XDG_SESSION_TYPE,wayland"
"GBM_BACKEND,nvidia-drm"
"XDG_SESSION_DESKTOP,Hyprland" "XDG_SESSION_DESKTOP,Hyprland"
"QT_AUTO_SCREEN_SCALE_FACTOR,1" "QT_AUTO_SCREEN_SCALE_FACTOR,1"
"QT_QPA_PLATFORM=wayland,xcb" "QT_QPA_PLATFORM=wayland,xcb"
@ -115,10 +118,6 @@
"GTK_THEME,FlatColor:dark" "GTK_THEME,FlatColor:dark"
"GTK2_RC_FILES,/home/hadi/.local/share/themes/FlatColor/gtk-2.0/gtkrc" "GTK2_RC_FILES,/home/hadi/.local/share/themes/FlatColor/gtk-2.0/gtkrc"
"NVD_BACKEND,direct" "NVD_BACKEND,direct"
#"WLR_DRM_DEVICES,$HOME/.config/hypr/card"
# "HYPRCURSOR_THEME,macOS"
# "HYPRCURSOR_SIZE,16"
# "XCURSOR_SIZE,16"
]; ];
cursor = { no_hardware_cursors = true; }; cursor = { no_hardware_cursors = true; };

View File

@ -6,7 +6,6 @@
programs.waybar = { programs.waybar = {
enable = true; enable = true;
# package = inputs.waybar.packages."${pkgs.system}".waybar;
settings = { settings = {
mainBar = { mainBar = {
layer = config.var.theme.waybar.position; layer = config.var.theme.waybar.position;

View File

@ -14,7 +14,6 @@
./variables.nix ./variables.nix
]; ];
# Networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.hostName = config.var.hostname; networking.hostName = config.var.hostname;
systemd.services.NetworkManager-wait-online.enable = false; systemd.services.NetworkManager-wait-online.enable = false;
@ -31,7 +30,6 @@
}; };
console.keyMap = config.var.keyboardLayout; console.keyMap = config.var.keyboardLayout;
# Shell
programs.zsh = { programs.zsh = {
enable = true; enable = true;
loginShellInit = '' loginShellInit = ''
@ -40,15 +38,10 @@
}; };
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
# Set environment variables
environment.variables = { environment.variables = {
XDG_DATA_HOME = "$HOME/.local/share"; XDG_DATA_HOME = "$HOME/.local/share";
PASSWORD_STORE_DIR = "$HOME/.local/share/password-store"; PASSWORD_STORE_DIR = "$HOME/.local/share/password-store";
MOZ_ENABLE_WAYLAND = "1";
EDITOR = "nvim"; EDITOR = "nvim";
ANKI_WAYLAND = "1";
DISABLE_QT5_COMPAT = "0";
NIXOS_OZONE_WL = "1";
}; };
nix = { nix = {
@ -72,9 +65,20 @@
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
nixpkgs.config.permittedInsecurePackages = environment.systemPackages = with pkgs; [
[ "electron-25.9.0" ]; # TODO: test to remove networkmanagerapplet
fd
bc
gcc
git-ignore
xdg-utils
wget
curl
];
# nixpkgs.config.permittedInsecurePackages =
# [ "electron-25.9.0" ]; # TODO: test to remove
system.autoUpgrade = { system.autoUpgrade = {
enable = config.var.autoUpgrade; enable = config.var.autoUpgrade;
@ -84,10 +88,10 @@
allowReboot = false; allowReboot = false;
}; };
xdg.portal = { # TODO: test to remove # xdg.portal = { # TODO: test to remove
enable = true; # enable = true;
configPackages = with pkgs; [ xdg-desktop-portal-gtk ]; # configPackages = with pkgs; [ xdg-desktop-portal-gtk ];
}; # };
services.libinput.enable = true; services.libinput.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;

View File

@ -11,7 +11,6 @@
../../home/programs/nvim ../../home/programs/nvim
../../home/programs/qutebrowser ../../home/programs/qutebrowser
../../home/programs/spicetify ../../home/programs/spicetify
../../home/programs/zathura
../../home/programs/shell ../../home/programs/shell
../../home/programs/fetch ../../home/programs/fetch
../../home/programs/lf ../../home/programs/lf
@ -24,6 +23,7 @@
# System (Desktop environment like stuff) # System (Desktop environment like stuff)
../../home/system/dunst ../../home/system/dunst
../../home/system/gtk ../../home/system/gtk
../../home/system/zathura
../../home/system/hyprland ../../home/system/hyprland
../../home/system/waybar ../../home/system/waybar
../../home/system/wlogout ../../home/system/wlogout
@ -39,10 +39,7 @@
inherit (config.var) homeDirectory; inherit (config.var) homeDirectory;
packages = with pkgs; [ packages = with pkgs; [
swappy
imv
discord discord
obsidian
xfce.thunar xfce.thunar
bitwarden bitwarden
vlc vlc
@ -55,32 +52,16 @@
nodejs nodejs
python3 python3
jq jq
git-ignore
nurl nurl
prefetch-npm-deps prefetch-npm-deps
figlet figlet
# Infosec
exegol
# Utils # Utils
fd
bc
gcc
blueman
zip zip
unzip unzip
xdg_utils
wget
curl
wf-recorder
glow glow
nwg-displays
wireguard-tools
bitwarden-cli
optipng optipng
pfetch pfetch
usbutils
pandoc pandoc
# Just cool # Just cool
@ -91,7 +72,6 @@
# Backup # Backup
vscode vscode
tor-browser
firefox firefox
neovide neovide
]; ];
@ -102,6 +82,7 @@
source = ../../home/wallpapers; source = ../../home/wallpapers;
}; };
# Don't touch this
stateVersion = "24.05"; stateVersion = "24.05";
}; };

View File

@ -18,16 +18,23 @@
email = "112569860+anotherhadi@users.noreply.github.com"; email = "112569860+anotherhadi@users.noreply.github.com";
}; };
stateVersion = "24.05";
autoUpgrade = false; autoUpgrade = false;
autoGarbageCollector = false; autoGarbageCollector = false;
# SOPS
# Sops is a tool to store secrets in git repositories encrypted with GPG.
# change the sops configuration if you want to enable that: # change the sops configuration if you want to enable that:
sops = true; sops = true;
# change the nvim's obsidian configuration if you want to enable that:
obsidian = true; # Enable tailscale
tailscale = true; tailscale = true;
usbguard = false; # TODO: Add the allow list variable
# USBGuard
# If usbguard enabled: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list
# of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard`
# allow id {id} # device 1...
usbguard = false;
usbguardRules = "";
theme = import ../themes/nixy.nix; # select your theme here theme = import ../themes/nixy.nix; # select your theme here
}; };

View File

@ -1,4 +1,5 @@
{ { pkgs, ... }: {
environment.systemPackages = with pkgs; [ blueman ];
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
powerOnBoot = true; powerOnBoot = true;

View File

@ -11,9 +11,7 @@
enable = config.var.usbguard; enable = config.var.usbguard;
dbus.enable = true; dbus.enable = true;
implicitPolicyTarget = "block"; implicitPolicyTarget = "block";
# FIXME: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard` rules = config.var.usbguardRules;
# allow id {id} # device 1...
rules = "";
}; };
# Enable USB-specific packages # Enable USB-specific packages