Upd rotina

This commit is contained in:
DarkGui
2025-09-23 19:24:55 -03:00
parent a66d8f334c
commit 9511b0d709
29 changed files with 43 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
{ config, lib, inputs, pkgs, ... }: {
programs.fish.shellAliases = {
# upd = "sudo nix flake update --flake /etc/nixos && sudo nixos-rebuild switch --flake path:/etc/nixos#Alfa";
upd = "nh os switch -a -u && nh home switch -a -u";
updhome = "nh home switch -a -u";
updsystem = "nh os switch -a -u";
nixcf = "kate /etc/nixos/configuration.nix";
nixfk = "kate /etc/nixos/flake.nix";
nixpkg = "kate /etc/nixos/conf/Pkgs/pkgs.nix";
nixalias = "kate /etc/nixos/conf/Alias/alias.nix";
};
}
+14
View File
@@ -0,0 +1,14 @@
{ config, lib, inputs, pkgs, ... }: {
## Configuração de áudio com Pipewire (desativa PulseAudio)
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
#jack.enable = true; # Descomente se usar aplicações JACK
};
}
+19
View File
@@ -0,0 +1,19 @@
{ config, lib, inputs, pkgs, ... }: {
## compressao brtfs
fileSystems = {
"/" = {
options = [ "compress=zstd:3" ];
};
};
## zram
zramSwap = {
enable = true;
memoryPercent = 70;
algorithm = "zstd";
};
## preload
services.preload.enable = true;
}
+14
View File
@@ -0,0 +1,14 @@
{ config, lib, inputs, pkgs, ... }: {
## distro box
virtualisation.podman = {
enable = true;
#dockerCompat = true;
};
users.users.gui.extraGroups = [ "docker" ];
users.groups.docker.gid = 131;
virtualisation.docker = {
enable = true;
};
}
+25
View File
@@ -0,0 +1,25 @@
{ config, lib, inputs, pkgs, ... }: {
## config fish
environment.systemPackages = with pkgs; [
fishPlugins.done
fishPlugins.fzf-fish
fishPlugins.forgit
fishPlugins.hydro
fzf
fishPlugins.grc
grc
];
programs.fish.enable = true;
## auto start fish com bash
programs.bash = {
interactiveShellInit =
'' if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi '';
};
}
+11
View File
@@ -0,0 +1,11 @@
{ config, lib, inputs, pkgs, ... }: {
## Ativar recursos experimentais do Nix, como flakes
nix.settings.experimental-features = ["nix-command" "flakes"];
## chaotic-nix
nix.nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
nix.registry = lib.mapAttrs (_: value: {flake = value;}) (lib.filterAttrs (_: value: lib.isType "flake" value) inputs);
nix.settings.flake-registry = "";
}
+11
View File
@@ -0,0 +1,11 @@
{ config, lib, inputs, pkgs, ... }: {
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [pkgs.kdePackages.xdg-desktop-portal-kde];
config.common.default = "*";
};
}
+11
View File
@@ -0,0 +1,11 @@
{config, pkgs, ...}: {
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
nerd-fonts.jetbrains-mono
nerd-fonts.ubuntu-mono
nerd-fonts.ubuntu-sans
nerd-fonts.dejavu-sans-mono
nerd-fonts.fira-code
nerd-fonts.overpass
];
}
+20
View File
@@ -0,0 +1,20 @@
{ config, lib, inputs, pkgs, ... }: {
## Ativar ambiente gráfico KDE Plasma 6 e gerenciador de login SDDM
services = {
displayManager.sddm.enable = true;
desktopManager.plasma6.enable = true;
};
programs.kdeconnect.enable = true;
environment.systemPackages = with pkgs; [
kdePackages.partitionmanager
kdePackages.filelight
kdePackages.dolphin
kdePackages.ark
kdePackages.qtmultimedia
kdePackages.kate
kdePackages.kcalc
];
}
+19
View File
@@ -0,0 +1,19 @@
{ config, lib, inputs, pkgs, ... }: {
## nixLD
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [];
## nixNH
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/etc/nixos"; # sets NH_OS_FLAKE variable for you
};
## Configuração do gerenciador nix
nix.package = pkgs.lixPackageSets.latest.lix;
#nix.package = inputs.nixpkgs-master.legacyPackages.${pkgs.system}.lix;
}
+10
View File
@@ -0,0 +1,10 @@
{ config, lib, inputs, pkgs, ... }: {
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
graphics.enable = true;
nvidia.open = false;
nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
#nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta;
};
}
+20
View File
@@ -0,0 +1,20 @@
{ config, lib, inputs, pkgs, ... }: {
programs.obs-studio = {
enable = true;
# optional Nvidia hardware acceleration
package = (
pkgs.obs-studio.override {
cudaSupport = true;
}
);
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
obs-gstreamer
obs-vkcapture
];
};
programs.obs-studio.enableVirtualCamera = true;
}
+22
View File
@@ -0,0 +1,22 @@
{ config, lib, inputs, pkgs, ... }: {
## Config da steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
nixpkgs.config.allowUnfreePredicate = pkg: lib.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
];
## patch jogos
programs = {
gamescope.enable = true;
gamemode.enable = true;
};
}
+38
View File
@@ -0,0 +1,38 @@
{ config, lib, inputs, pkgs, ... }: {
## Permitir pacotes não-livres
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
## Aplicativos sociais
inputs.zen-browser.packages.${system}.default
## jogos
lsfg-vk
lsfg-vk-ui
## Utilitários do sistema e dev tools
nh
home-manager
vulkan-tools-lunarg
vulkan-loader
vulkan-utility-libraries
gcc
preload
ethtool
winetricks
wineWowPackages.staging
efibootmgr
docker-compose
podman
freerdp
dmidecode
inputs.winboat.packages.x86_64-linux.default
gitFull
## repositorio 25.05
inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.vulkan-tools
];
}
+35
View File
@@ -0,0 +1,35 @@
{ config, lib, inputs, pkgs, ... }: {
## pacotes home-manager
home.packages = with pkgs; [
## aplicativos sociais
(discord.override {withVencord = true;})
telegram-desktop
## Jogos
lutris
heroic
prismlauncher
steam
ryubing
xclicker
mangojuice
mangohud
protonplus
## Utilitários do sistema e dev tools
fastfetch
cpu-x
git
btop-cuda
vscodium
flatpak
appimage-run
wget
lact
kitty
vlc
tree
];
}
+26
View File
@@ -0,0 +1,26 @@
{ config, lib, inputs, pkgs, ... }: {
## Definir fuso horário
time.timeZone = "America/Bahia";
## Configurações de idioma e localidade
i18n.defaultLocale = "pt_BR.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "pt_BR.UTF-8";
LC_IDENTIFICATION = "pt_BR.UTF-8";
LC_MEASUREMENT = "pt_BR.UTF-8";
LC_MONETARY = "pt_BR.UTF-8";
LC_NAME = "pt_BR.UTF-8";
LC_NUMERIC = "pt_BR.UTF-8";
LC_PAPER = "pt_BR.UTF-8";
LC_TELEPHONE = "pt_BR.UTF-8";
LC_TIME = "pt_BR.UTF-8";
};
## Configurar layout do teclado no X11 e console
services.xserver.xkb = {
layout = "br";
variant = "";
};
console.keyMap = "br-abnt2";
}
@@ -0,0 +1,7 @@
{ config, lib, inputs, pkgs, ... }: {
environment.variables = {
__GL_SHADER_DISK_CACHE_SIZE = "12000000000";
VK_LAYER_PATH = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
};
}
+11
View File
@@ -0,0 +1,11 @@
{pkgs, config, lib, ...}: {
programs.git = {
enable = true;
userName = "DarkGui";
userEmail = "guihermando13@gmail.com";
extraConfig = {
credential.helper = "store";
};
};
}
+42
View File
@@ -0,0 +1,42 @@
{ config, lib, inputs, pkgs, ... }: {
services = {
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
# Para desabilitar a instalação do conjunto de aplicativos do GNOME e ficar apenas com o shell do GNOME.
gnome.core-apps.enable = false;
gnome.core-developer-tools.enable = false;
gnome.games.enable = false;
udev.packages = [ pkgs.gnome-settings-daemon ];
};
environment.systemPackages = with pkgs; [
gnomeExtensions.blur-my-shell
gnomeExtensions.dash-to-dock
gnomeExtensions.just-perfection
gnomeExtensions.arc-menu
gnomeExtensions.appindicator
gnomeExtensions.valent
xdg-desktop-portal-gnome
valent
gnome-tweaks
gnome-shell
gnome-extension-manager
refine
alacarte
nautilus
];
environment.gnome.excludePackages = with pkgs; [ gnome-tour gnome-user-docs ];
qt = {
enable = true;
platformTheme = "gnome";
style = "adwaita-dark";
};
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
}
+69
View File
@@ -0,0 +1,69 @@
include ./theme.conf
wayland_enable_ime no
font_size 10
underline_exclusion 0
cursor_shape beam
cursor_blink_interval 0.3
cursor_trail 3
cursor_trail_decay 0.1 0.4
scrollback_lines 5000
scrollback_pager_history_size 100
show_hyperlink_targets yes
repaint_delay 15
tab_bar_edge top
tab_bar_style powerline
tab_powerline_style slanted
tab_bar_align left
tab_bar_min_tabs 1
active_tab_font_style normal
enabled_layouts fat:bias=60,stack
window_margin_width 2.5
window_border_width 1
draw_minimal_borders no
background_opacity 0.9
allow_remote_control yes
map alt+f5 load_config_file
map alt+minus resize_window narrower
map alt+underline resize_window shorter
map ctrl+alt+minus change_font_size all -0.5
map alt+equal resize_window wider
map alt+plus resize_window taller
map ctrl+alt+equal change_font_size all +0.5
map alt+q close_window_with_confirmation ignore-shell
map alt+shift+q close_tab
map alt+r set_window_title
map alt+shift+r set_tab_title
map alt+u scroll_line_up
map alt+shift+u scroll_to_prompt -1
map alt+p previous_tab
map alt+shift+p detach_window tab-left
map alt+d scroll_line_down
map alt+shift+d scroll_to_prompt 1
map alt+h neighboring_window left
map alt+shift+h move_window left
map alt+j neighboring_window bottom
map alt+shift+j move_window bottom
map alt+k neighboring_window top
map alt+shift+k move_window top
map alt+l neighboring_window right
map alt+shift+l move_window right
map alt+z toggle_layout stack
map ctrl+c copy_or_interrupt
map ctrl+v paste_from_clipboard
map alt+n next_tab
map alt+shift+n detach_window tab-right
map alt+t new_window
map alt+shift+t new_tab
# TODO: detach window to tab-left, and if tab-left doesn't exist create it
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, inputs, pkgs, ... }: {
options.mods.kitty = {
enable = lib.mkEnableOption "Enable Kitty.";
};
config = lib.mkIf config.mods.kitty.enable {
programs.kitty = {
enable = true;
extraConfig = "include ${config.mods.flakePath}/conf/kitty/kitty.conf";
settings.clear_all_shortcuts = "yes";
};
};
}
+37
View File
@@ -0,0 +1,37 @@
cursor #f4dbe2
cursor_text_color background
url_color #eec6e9
url_style dotted
active_border_color #f4dbe2
inactive_border_color #121622
bell_border_color #efd286
active_tab_foreground #f4dbe2
active_tab_background #121622
inactive_tab_foreground #aeb8d4
inactive_tab_background #060810
foreground #ced4e6
background #060810
transparent_background_colors #121622 #1c2232 #272d41 #313950 #46516f
selection_foreground none
selection_background #46516f
color0 #121622
color1 #ea8f80
color2 #6ac27f
color3 #c7a84d
color4 #92a8eb
color5 #db8ad4
color6 #52bcce
color7 #aeb8d4
color8 #7683a8
color9 #f5b3a7
color10 #7ae092
color11 #e5c25f
color12 #b3c4f5
color13 #eaafe4
color14 #6bd8ea
color15 #ced4e6
+13
View File
@@ -0,0 +1,13 @@
{ config, lib, inputs, pkgs, ... }: {
## Configuração da internet
networking.networkmanager.enable = true;
networking.interfaces.enp9s0.wakeOnLan.enable = true;
## Ativar Bluetooth
hardware.bluetooth.enable = true;
## Ativar CUPS para impressão
services.printing.enable = true;
}