This commit is contained in:
gpskwlkr 2024-03-26 23:45:56 +04:00
parent 506b21e430
commit 709db1985b
91 changed files with 251 additions and 212 deletions

18
home/user/config.nix Normal file
View file

@ -0,0 +1,18 @@
let configDir = ../config;
in
{
home.file = {
".config/nvim".source = "${configDir}/nvim";
".config/wallpapers".source = "${configDir}/wallpapers";
".config/kitty".source = "${configDir}/kitty";
".config/neofetch".source = "${configDir}/neofetch";
".config/hypr".source = "${configDir}/hypr";
".config/swayidle".source = "${configDir}/swayidle";
".config/swaylock".source = "${configDir}/swaylock";
".config/wlogout".source = "${configDir}/wlogout";
".config/waybar".source = "${configDir}/waybar";
".config/btop".source = "${configDir}/btop";
".config/wofi".source = "${configDir}/wofi";
".config/mako".source = "${configDir}/mako";
};
}

11
home/user/default.nix Normal file
View file

@ -0,0 +1,11 @@
{
imports = [
./git.nix
./gtk.nix
./shell.nix
./config.nix
./packages.nix
./programs.nix
./environment.nix
];
}

31
home/user/environment.nix Normal file
View file

@ -0,0 +1,31 @@
{
home.sessionVariables = {
BROWSER = "firefox";
EDITOR = "nvim";
TERMINAL = "kitty";
NIXOS_OZONE_WL = "1";
QT_QPA_PLATFORMTHEME = "gtk3";
QT_SCALE_FACTOR = "1";
MOZ_ENABLE_WAYLAND = "1";
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland-egl";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
GTK_CSD = "0";
WLR_DRM_DEVICES = "/dev/dri/card0";
WLR_NO_HARDWARE_CURSORS = "1";
CLUTTER_BACKEND = "wayland";
WLR_RENDERER = "vulkan";
XCURSOR_SIZE = "24";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
GTK_USE_PORTAL = "1";
NIXOS_XDG_OPEN_USE_PORTAL = "1";
XDG_CACHE_HOME = "\${HOME}/.cache";
XDG_CONFIG_HOME = "\${HOME}/.config";
#XDG_BIN_HOME = "\${HOME}/.local/bin";
XDG_DATA_HOME = "\${HOME}/.local/share";
};
}

7
home/user/git.nix Normal file
View file

@ -0,0 +1,7 @@
{
programs.git = {
enable = true;
userName = "gpskwlkr";
userEmail = "giorgi.anakidze@outlook.com";
};
}

24
home/user/gtk.nix Normal file
View file

@ -0,0 +1,24 @@
{
gtk = {
enable = true;
cursorTheme = {
name = "Catppuccin-Macchiato-Teal";
package = pkgs.catppuccin-gtk;
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme = 1;
gtk-cursor-theme-name=Catppuccin-Macchiato-Teal
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme = 1;
gtk-cursor-theme-name=Catppuccin-Macchiato-Teal
'';
};
};
}

59
home/user/packages.nix Normal file
View file

@ -0,0 +1,59 @@
{
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
permittedInsecurePackages = [
"electron-25.9.0" # Obsidian
];
};
};
home.packages = [
# Dev stuff
pkgs.jetbrains.rider
pkgs.dotnet-sdk_8
pkgs.dotnetPackages.Nuget
pkgs.gcc
pkgs.go
pkgs.lua
pkgs.nodejs_21
pkgs.nodePackages.pnpm
(pkgs.python3.withPackages (python-pkgs: [
python-pkgs.pip
python-pkgs.requests
]))
pkgs.zig
# Work stuff
pkgs.obsidian
pkgs.teams-for-linux
pkgs.thunderbird
pkgs.zoom-us
# Bluetooth
pkgs.blueberry
# Social
pkgs.telegram-desktop
pkgs-unstable.vesktop
# Gaming
pkgs.steam
pkgs.steam-run
(pkgs.lutris.override {
extraPkgs = pkgs: [
pkgs.wineWowPackages.stable
pkgs.winetricks
];
})
# Downloads
pkgs.qbittorrent
# Utils
pkgs-unstable.hyprshot
];
}

20
home/user/programs.nix Normal file
View file

@ -0,0 +1,20 @@
{
programs.firefox = {
enable = true;
profiles.gpskwlkr = {
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
bypass-paywalls-clean
darkreader
facebook-container
i-dont-care-about-cookies
proton-pass
to-google-translate
view-image
youtube-shorts-block
];
};
};
programs.home-manager.enable = true;
}

44
home/user/shell.nix Normal file
View file

@ -0,0 +1,44 @@
{ config, pkgs, ... }:
let
myAliases = {
ll = "ls -l";
fullClean = ''
nix-collect-garbage --delete-old
sudo nix-collect-garbage -d
sudo /run/current-system/bin/switch-to-configuration boot
'';
rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/";
fullRebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/ && home-manager switch --flake ~/.dotfiles/ -b backup";
homeRebuild = "home-manager switch --flake ~/.dotfiles/ -b backup";
};
in
{
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
initExtra = ''
source ~/.p10k.zsh &&
eval "$(zoxide init --cmd cd zsh)" &&
j() { cdi; clear }
export PATH="$PATH:/home/gpskwlkr/.dotnet/tools"
'';
shellAliases = myAliases;
oh-my-zsh = {
enable = true;
custom = "$HOME/.oh-my-custom";
theme = "powerlevel10k/powerlevel10k";
plugins = [
"git"
"history"
"wd"
];
};
};
};
}