master
Vinícius W 1 year ago
parent fe194e4d67
commit 5cbd001a3e

@ -28,6 +28,3 @@ History=vlc,chrome
[PreviewSettings] [PreviewSettings]
Plugins=audiothumbnail,blenderthumbnail,comicbookthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,directorythumbnail,fontthumbnail,imagethumbnail,jpegthumbnail,kraorathumbnail,windowsexethumbnail,windowsimagethumbnail,mobithumbnail,opendocumentthumbnail,gsthumbnail,rawthumbnail,svgthumbnail,ffmpegthumbs Plugins=audiothumbnail,blenderthumbnail,comicbookthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,directorythumbnail,fontthumbnail,imagethumbnail,jpegthumbnail,kraorathumbnail,windowsexethumbnail,windowsimagethumbnail,mobithumbnail,opendocumentthumbnail,gsthumbnail,rawthumbnail,svgthumbnail,ffmpegthumbs
[Search]
Location=Everywhere

@ -13,11 +13,11 @@ print_info() {
info "Resolution" resolution info "Resolution" resolution
info "DE" de info "DE" de
info "WM" wm info "WM" wm
# info "WM Theme" wm_theme info "WM Theme" wm_theme
# info "Theme" theme # info "Theme" theme
# info "Icons" icons # info "Icons" icons
info "Terminal" term info "Terminal" term
# info "Terminal Font" term_font info "Terminal Font" term_font
info "CPU" cpu info "CPU" cpu
info "GPU" gpu info "GPU" gpu
info "Memory" memory info "Memory" memory
@ -26,10 +26,10 @@ print_info() {
info "Disk" disk info "Disk" disk
# info "Battery" battery # info "Battery" battery
# info "Font" font # info "Font" font
info "Song" song # info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player" # [[ "$player" ]] && prin "Music Player" "$player"
# info "Local IP" local_ip info "Local IP" local_ip
# info "Public IP" public_ip info "Public IP" public_ip
# info "Users" users # info "Users" users
# info "Locale" locale # This only works on glibc systems. # info "Locale" locale # This only works on glibc systems.
@ -346,7 +346,7 @@ gtk3="on"
# Default: 'http://ident.me' # Default: 'http://ident.me'
# Values: 'url' # Values: 'url'
# Flag: --ip_host # Flag: --ip_host
public_ip_host="http://ident.me" public_ip_host="https://myip.vynwg.com"
# Public IP timeout. # Public IP timeout.
# #
@ -371,7 +371,7 @@ local_ip_interface=('auto')
# Default: 'on' # Default: 'on'
# Values: 'on', 'off' # Values: 'on', 'off'
# Flag: --de_version # Flag: --de_version
de_version="on" de_version="off"
# Disk # Disk
@ -686,9 +686,9 @@ bar_color_total="distro"
# infobar: 'info [---=======]' # infobar: 'info [---=======]'
# barinfo: '[---=======] info' # barinfo: '[---=======] info'
# off: 'info' # off: 'info'
memory_display="off" memory_display="on"
battery_display="off" battery_display="off"
disk_display="off" disk_display="on"
# Backend Settings # Backend Settings
@ -716,7 +716,8 @@ image_backend="ascii"
# NOTE: 'auto' will pick the best image source for whatever image backend is used. # NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your # In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used. # wallpaper will be used.
image_source="auto" image_source="/home/vynwg/.config/neofetch/distro"
#image_source="auto"
# Ascii Options # Ascii Options
@ -787,7 +788,7 @@ ascii_colors=(distro)
# Default: 'on' # Default: 'on'
# Values: 'on', 'off' # Values: 'on', 'off'
# Flag: --ascii_bold # Flag: --ascii_bold
ascii_bold="off" ascii_bold="on"
# Image Options # Image Options

@ -1,8 +1,8 @@
# This file contains fish universal variable definitions. # This file contains fish universal variable definitions.
# VERSION: 3.0 # VERSION: 3.0
SETUVAR --export EDITOR:nvim SETUVAR --export EDITOR:nvim
SETUVAR --export SSH_AGENT_PID:2137 SETUVAR --export SSH_AGENT_PID:1286326
SETUVAR --export SSH_AUTH_SOCK:/tmp/ssh\x2dXXXXXXKWY3o0/agent\x2e2136 SETUVAR --export SSH_AUTH_SOCK:/tmp/ssh\x2dXXXXXXs70yD6/agent\x2e1286325
SETUVAR __fish_initialized:3400 SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:555\x1ebrblack SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_cancel:\x2dr

@ -9,12 +9,13 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
( import ./overlays/chrome.nix ) ( import ./overlays/chrome.nix )
( import ./overlays/discord.nix ) ( import ./overlays/ciscoPacketTracer8.nix )
]; ];
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
# "electron-21.4.0" # "electron-21.4.0"
"openssl-1.1.1u" "openssl-1.1.1w"
"python-2.7.18.6"
]; ];
# Firmware # Firmware
@ -34,17 +35,31 @@
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_1; # boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_1;
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
boot.kernelModules = [ "v4l2loopback" "snd-aloop" ];
boot.extraModulePackages = [ pkgs.linuxKernel.packages.linux_zen.v4l2loopback ];
boot.extraModprobeConfig =
''
options v4l2loopback nr_devices=2 exclusive_caps=1,1 video_nr=0,1 card_label=v4l2lo0,v4l2lo1
'';
# Misc # Misc
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.config.pulseaudio = true; nixpkgs.config.pulseaudio = true;
# security.rtkit.enable = true; # security.rtkit.enable = true;
nix.optimise.automatic = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "-d";
};
# Network configuration # Network configuration
networking.hostName = "nixos"; networking.hostName = "nixos";
networking.wireless.enable = true;
networking.wireless.userControlled.enable = true;
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
systemd.services.NetworkManager-wait-online.enable = false;
# Firewall # Firewall
@ -60,7 +75,6 @@
services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;
# Timezone and locale configuration # Timezone and locale configuration
time.timeZone = "America/Sao_Paulo"; time.timeZone = "America/Sao_Paulo";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@ -77,26 +91,31 @@
}; };
services.xserver = { services.xserver = {
layout = "br"; layout = "br";
xkbModel = "pc104";
xkbVariant = ""; xkbVariant = "";
xkbOptions = "terminate:ctrl_alt_bksp,numpad:microsoft,grp:win_space_toggle";
}; };
console.keyMap = "br-abnt2"; console.keyMap = "br-abnt2";
# Printer setup # Printer setup
services.printing.enable = true; services.printing.enable = true;
services.printing.drivers = [ pkgs.hplip ];
hardware.sane.enable = true;
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
# Sound setup # Sound setup
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; # hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true; # hardware.pulseaudio.support32Bit = true;
hardware.pulseaudio.package = pkgs.pulseaudioFull; # hardware.pulseaudio.package = pkgs.pulseaudioFull;
# services.pipewire = { services.pipewire = {
# enable = true; enable = true;
# alsa.enable = true; alsa.enable = true;
# alsa.support32Bit = true; alsa.support32Bit = true;
# pulse.enable = true; pulse.enable = true;
#}; };
system.stateVersion = "23.05"; system.stateVersion = "23.05";
} }

@ -0,0 +1,10 @@
self: super: {
ciscoPacketTracer8 = self.ciscoPacketTracer8.overrideAttrs(e: rec {
desktopItem = e.desktopItem.override (d: {
exec = "QT_PLUGIN_PATH="" ${d.exec} --no-sandbox";
});
installPhase = builtins.replaceStrings [ "${e.desktopItem}" ] [ "${desktopItem}" ] e.installPhase;
});
}

@ -1,5 +0,0 @@
self: super: {
discord = super.discord.override {
withOpenASAR = true;
};
}

@ -1,4 +1,12 @@
{ environment, programs, pkgs, ... }: { environment, programs, pkgs, ... }:
let
nixos2205 = import (builtins.fetchTarball {
name = "nixos-2023-05-31";
url = "https://github.com/nixos/nixpkgs/archive/466c2e342a6887507fb5e58d8d29350a0c4b7488.tar.gz";
sha256 = "0f3pc6rva386ywzh7dig5cppfw5y6kqc6krm5ksl012x3s61bzim";
}) { config.allowUnfree = true; };
unstable = import <unstable> {};
in
{ {
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
environment.shells = with pkgs; [ fish ]; environment.shells = with pkgs; [ fish ];
@ -16,46 +24,86 @@
oxygen oxygen
print-manager print-manager
plasma-browser-integration plasma-browser-integration
spectacle
]; ];
users.extraGroups.vboxusers.members = [ "vynwg" ];
users.users.vynwg = { users.users.vynwg = {
isNormalUser = true; isNormalUser = true;
description = "Vynwg"; description = "Vynwg";
shell = pkgs.fish; shell = pkgs.fish;
extraGroups = [ "audio" "networkmanager" "wheel" ]; extraGroups = [ "audio" "networkmanager" "wheel" "scanner" "lp" ];
packages = [ packages = [
(import ./packages/rustdesk-nightly) (import ./packages/rustdesk-nightly)
] ++ (with pkgs; [ ] ++ (with pkgs; [
alacritty alacritty
android-tools
bottom
direnv direnv
discord droidcam
easyeffects
flameshot
flitter
freecad
google-chrome google-chrome
gsmartcontrol
handbrake handbrake
krita krita
libqalculate
libreoffice libreoffice
libsForQt5.ktorrent libsForQt5.ktorrent
neofetch neofetch
obsidian nextcloud-client
obs-studio obs-studio
p7zip p7zip
platformio
prismlauncher prismlauncher
python39 python2
revolt-desktop python310
# rustdesk python310Packages.pip
# shutter scrcpy
spotify spotify
stellarium
sublime4 sublime4
ttdl
urn-timer
vlc vlc
xorg.libXcursor
zerotierone zerotierone
warzone2100 ]) ++ (with nixos2205; [
ciscoPacketTracer8
]) ++ (with unstable; [
vesktop
typst
typst-live
]); ]);
}; };
programs.git.enable = true; programs.git.enable = true;
programs.fish.enable = true; programs.fish.enable = true;
programs.dconf.enable = true;
programs.steam.enable = true; programs.steam.enable = true;
programs.neovim.enable = true; programs.neovim.enable = true;
virtualisation.virtualbox.host.enable = true;
services.lorri.enable = true; services.lorri.enable = true;
services.zerotierone.enable = true; services.zerotierone.enable = true;
services = {
syncthing = {
enable = true;
user = "vynwg";
dataDir = "/data/Sync";
configDir = "/home/vynwg/.config/syncthing";
};
create_ap = {
enable = true;
settings = {
INTERNET_IFACE = "enp3s0";
WIFI_IFACE = "wlp4s0";
SSID = "Vyn";
PASSPHRASE = "test123321";
};
};
};
} }

@ -5,10 +5,12 @@
], ],
"installed_packages": "installed_packages":
[ [
"Deviot (Arduino IDE)",
"Discord Rich Presence", "Discord Rich Presence",
"fish", "fish",
"Nix", "Nix",
"Package Control", "Package Control",
"TOML", "TOML",
"WGSL",
], ],
} }

@ -5,6 +5,6 @@
[ [
"Vintage", "Vintage",
], ],
"tab_size": 2, "tab_size": 4,
"translate_tabs_to_spaces": true, "translate_tabs_to_spaces": true,
} }

Loading…
Cancel
Save