big great refactor

This commit is contained in:
elwrcl committed 2026-05-29 18:33:58 +03:00
1 parent 596bcb4a94
commit 5a7501eec0
73 files changed
+537 -644

No files matched your search

Regular → Executable
View File
File mode changed.
-120
View File
@@ -1,120 +0,0 @@
#!/usr/bin/env bash
set -e
[[ $EUID -ne 0 ]] && echo "Run with sudo" && exit 1
# ── CPU ──────────────────────────────────────────────────────────────────────
VENDOR=$(grep -m1 'vendor_id' /proc/cpuinfo | awk '{print $3}')
if [[ "$VENDOR" == "AuthenticAMD" ]]; then
CPU_MICROCODE="hardware.cpu.amd.updateMicrocode"
CPU_KVM="kvm-amd"
else
CPU_MICROCODE="hardware.cpu.intel.updateMicrocode"
CPU_KVM="kvm-intel"
fi
# ── GPU ──────────────────────────────────────────────────────────────────────
HAS_AMD=false
HAS_NVIDIA=false
lspci | grep -qi 'amd\|radeon' && HAS_AMD=true
lspci | grep -qi 'nvidia' && HAS_NVIDIA=true
if $HAS_AMD && $HAS_NVIDIA; then
GPU_DRIVER="hybrid-amd-nvidia"
elif $HAS_AMD; then
GPU_DRIVER="amd"
elif $HAS_NVIDIA; then
GPU_DRIVER="nvidia"
else
GPU_DRIVER="intel"
fi
echo "CPU: $VENDOR → $CPU_KVM"
echo "GPU: $GPU_DRIVER"
echo ""
INITRD_MODULES=""
if [[ "$GPU_DRIVER" == "hybrid-amd-nvidia" ]]; then
INITRD_MODULES="\"amdgpu\" \"nvidia\" \"nvidia_modeset\" \"nvidia_uvm\" \"nvidia_drm\""
elif [[ "$GPU_DRIVER" == "intel" ]]; then
INITRD_MODULES="\"i915\""
elif [[ "$GPU_DRIVER" == "amd" ]]; then
INITRD_MODULES="\"amdgpu\""
elif [[ "$GPU_DRIVER" == "nvidia" ]]; then
INITRD_MODULES="\"nvidia\" \"nvidia_modeset\" \"nvidia_uvm\" \"nvidia_drm\""
fi
# ── Disks ────────────────────────────────────────────────────────────────────
lsblk -o NAME,SIZE,FSTYPE,UUID,MOUNTPOINT
echo ""
read -rp "Root partition (e.g. /dev/sda2): " ROOT_PART
[[ ! -b "$ROOT_PART" ]] && echo "Invalid partition" && exit 1
ROOT_UUID=$(blkid -s UUID -o value "$ROOT_PART")
ROOT_FSTYPE=$(blkid -s TYPE -o value "$ROOT_PART")
echo "Root → $ROOT_UUID ($ROOT_FSTYPE)"
read -rp "Boot/EFI partition (e.g. /dev/sda1): " BOOT_PART
[[ ! -b "$BOOT_PART" ]] && echo "Invalid partition" && exit 1
BOOT_UUID=$(blkid -s UUID -o value "$BOOT_PART")
echo "Boot → $BOOT_UUID"
EXTRA_BLOCK=""
read -rp "Extra partition? (leave empty to skip): " EXTRA_PART
if [[ -n "$EXTRA_PART" ]]; then
EXTRA_UUID=$(blkid -s UUID -o value "$EXTRA_PART")
EXTRA_FSTYPE=$(blkid -s TYPE -o value "$EXTRA_PART")
read -rp "Mount point (e.g. /mnt/hdd): " EXTRA_MOUNT
EXTRA_BLOCK="
fileSystems.\"$EXTRA_MOUNT\" = {
device = \"/dev/disk/by-uuid/$EXTRA_UUID\";
fsType = \"$EXTRA_FSTYPE\";
options = [ \"defaults\" \"nofail\" ];
};
"
fi
# ── Write hardware.nix ───────────────────────────────────────────────────────
cat > ./hardware.nix <<EOF
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ $INITRD_MODULES ];
boot.kernelModules = [ "$CPU_KVM" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/$ROOT_UUID";
fsType = "$ROOT_FSTYPE";
};
$EXTRA_BLOCK
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/$BOOT_UUID";
fsType = "vfat";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
$CPU_MICROCODE = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
EOF
# ── Update machine.nix ───────────────────────────────────────────────────────
if grep -q 'elars.hardware.graphics.driver' ./machine.nix; then
sed -i "s|elars.hardware.graphics.driver = .*|elars.hardware.graphics.driver = \"$GPU_DRIVER\";|" ./machine.nix
echo "Updated driver in machine.nix → $GPU_DRIVER"
else
echo ""
echo "Add this line to machine.nix:"
echo " elars.hardware.graphics.driver = \"$GPU_DRIVER\";"
fi
echo ""
echo "Done. hardware.nix generated."
[[ "$GPU_DRIVER" == "hybrid-amd-nvidia" ]] && \
echo "PRIME bus IDs needed — run: lspci | grep -E 'VGA|3D'"
-45
View File
@@ -1,45 +0,0 @@
{
pkgs,
system,
...
}:
{
system.stateVersion = 6;
nixpkgs.hostPlatform = system;
users.users.elars = {
home = "/Users/elars";
shell = pkgs.zsh;
};
programs.zsh.enable = true;
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
system.defaults = {
dock.autohide = true;
finder.AppleShowAllExtensions = true;
NSGlobalDomain.AppleInterfaceStyle = "Dark";
NSGlobalDomain.KeyRepeat = 2;
NSGlobalDomain.InitialKeyRepeat = 15;
};
programs.nh = {
enable = true;
flake = "/Users/elars/copland";
};
}
Generated Regular → Executable
+3 -2
View File
@@ -603,13 +603,14 @@
"locked": {
"lastModified": 1779036909,
"narHash": "sha256-zXcwYQGCT6pzinK+1dBB2ekTVtfxGZAapb3Evdcu4fY=",
"owner": "LnL7",
"owner": "nix-darwin",
"repo": "nix-darwin",
"rev": "56c666e108467d87d13508936aade6d567f2a501",
"type": "github"
},
"original": {
"owner": "LnL7",
"owner": "nix-darwin",
"ref": "master",
"repo": "nix-darwin",
"type": "github"
}
Regular → Executable
+5 -21
View File
@@ -1,5 +1,5 @@
{
description = "copland, linux/darwin niximator";
description = "copland, linux/darwin";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -8,7 +8,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
url = "github:nix-darwin/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
@@ -62,11 +62,6 @@
home-manager.nixosModules.home-manager
nyx-loner.nixosModules.default
{
nixpkgs.overlays = [
(final: prev: {
copetch = inputs.copetch.packages.${linuxSystem}.default;
})
];
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
@@ -75,11 +70,10 @@
inherit inputs;
system = linuxSystem;
};
users.elars = import ./home/linux.nix;
users.elars = import ./modules/home/home.nix;
};
}
./machine.nix
./nixos/default.nix
./main/nixos/machine.nix
];
};
@@ -89,21 +83,11 @@
system = darwinSystem;
};
modules = [
home-manager.darwinModules.home-manager
{
nixpkgs.hostPlatform = darwinSystem;
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
system = darwinSystem;
};
users.elars = import ./home/darwin.nix;
};
}
./darwin/default.nix
./main/darwin/machine.nix
];
};
};
-19
View File
@@ -1,19 +0,0 @@
{
pkgs,
...
}:
{
imports = [ ./shared.nix ];
home.homeDirectory = "/Users/elars";
# macOS-shell
home.sessionVariables = {
BROWSER = "open";
};
home.packages = with pkgs; [
# buraya ekleyecem
];
}
-20
View File
@@ -1,20 +0,0 @@
.
$.
B?
@` M) "
B@$ '@C a@B
@@%%@ $@@@B
.$@@@@@@@@@@C
lB@@@@@@@@@@@$
%B@@@@@@@@@@@@@@
.@@@@@@@@@@@@@@
B^ &@@@@@@@@@
dI B@@@@@@@@@@@
v- %@@@& /@@@@@@
+] B@@[ ]@@@@;
X @B |@@@
@ ]@
~
-101
View File
@@ -1,101 +0,0 @@
# elarsın muhtesem configi
eval "$(starship init zsh)"
eval "$(zoxide init zsh)"
# FZF
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
# eza
alias ls='eza --icons --group-directories-first'
alias ll='eza -lah --icons --group-directories-first'
alias la='eza -a --icons --group-directories-first'
alias lt='eza --tree --level=2 --icons'
# zoxide
alias cd='z'
# utils
alias cat='bat'
alias grep='grep --color=auto'
alias df='df -h'
alias du='du -h'
alias free='free -h'
# safety
alias cp='cp -i'
alias mv='mv -i'
alias rm='trash-put'
# system
alias sysinfo='fastfetch'
alias monitor='sudo btop'
alias ports='sudo ss -tulpn'
alias myip='curl ifconfig.me'
# navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ~='cd ~'
alias -- -='cd -'
# extract helper
extract() {
if [ -f "$1" ]; then
case "$1" in
*.tar.bz2) tar xjf "$1" ;;
*.tar.gz) tar xzf "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.rar) unrar e "$1" ;;
*.gz) gunzip "$1" ;;
*.tar) tar xf "$1" ;;
*.tbz2) tar xjf "$1" ;;
*.tgz) tar xzf "$1" ;;
*.zip) unzip "$1" ;;
*.Z) uncompress "$1" ;;
*.7z) 7z x "$1" ;;
*) echo "'$1' can't be extracted" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
# git
alias gs='git status'
alias ga='git add'
alias gc='git commit -m'
alias gp='git push'
alias gl='git log --oneline --graph --decorate'
# nh shortcuts
alias rebuild='git -C ~/copland add -A && git -C ~/copland commit -m "update" && nh os switch'
alias rebuild-dry='nh os switch --dry'
alias rebuild-cop='nix flake update --flake ~/copland && git -C ~/copland add -A && git -C ~/copland commit -m "flake update $(date +%Y-%m-%d)" && nh os switch'
# history
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt SHARE_HISTORY
# completion
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
setopt AUTO_CD
# mesa
export MESA_GL_VERSION_OVERRIDE=4.6
export MESA_GLSL_VERSION_OVERRIDE=460
export MESA_SHADER_CACHE_MAX_SIZE=2G
export MESA_SHADER_CACHE_DIR=/tmp/mesa_shader_cache
export PATH="$HOME/.local/bin:$PATH"
#fetch
copetch --ascii
#fuckfastfetch i'm better!
-125
View File
@@ -1,125 +0,0 @@
{
pkgs,
inputs,
system,
...
}:
{
imports = [
./shared.nix
./hyprland.nix
];
services.easyeffects.enable = true;
home.homeDirectory = "/home/elars";
home.pointerCursor = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 24;
gtk.enable = true;
x11.enable = true;
};
qt = {
enable = true;
platformTheme.name = "gtk3";
style = {
name = "adwaita-dark";
package = pkgs.adwaita-qt;
};
};
gtk = {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
gtk4.theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
};
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
gtk-application-prefer-dark-theme = true;
gtk-theme = "Adwaita-dark";
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"inode/directory" = [ "thunar.desktop" ];
"x-scheme-handler/http" = [ "zen-beta.desktop" ];
"x-scheme-handler/https" = [ "zen-beta.desktop" ];
"x-scheme-handler/about" = [ "zen-beta.desktop" ];
"x-scheme-handler/unknown" = [ "zen-beta.desktop" ];
};
};
home.sessionVariables = {
BROWSER = "zen-beta.desktop";
};
home.packages = with pkgs; [
# qol-hyprland
wl-clipboard
waybar
easyeffects
swappy
grim
slurp
wf-recorder
tesseract
obs-studio
mpvpaper
# hardware tools (linux-only)
vulkan-tools
gpu-screen-recorder
libva-utils
mesa-demos
intel-gpu-tools
clinfo
hidapi
#thunar tools
thunar
thunar-archive-plugin
thunar-media-tags-plugin
thunar-volman
tumbler
ffmpegthumbnailer
# apps
discord-canary
heroic
prismlauncher
loupe
whatsapp-electron
spotatui
antigravity
picotool
# input
adwaita-qt
gnome-icon-theme
hicolor-icon-theme
tango-icon-theme
arc-icon-theme
#inputs
inputs.zen-browser.packages.${system}.default
inputs.helium.packages.${system}.default
inputs.noctalia.packages.${system}.default
inputs.copetch.packages.${system}.default
pkgs.qt6Packages.qtwebsockets
pkgs.evil-helix_git
];
}
-114
View File
@@ -1,114 +0,0 @@
{
pkgs,
inputs,
system,
...
}:
{
home.username = "elars";
home.stateVersion = "25.05";
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initContent = builtins.readFile ./dots/zsh/.zshrc;
};
programs.starship.enable = true;
programs.fzf.enable = true;
programs.zoxide.enable = true;
programs.home-manager.enable = true;
fonts.fontconfig.enable = true;
xdg.configFile = {
};
home.packages = with pkgs; [
# cli
eza
bat
fd
fastfetch
zoxide
trash-cli
rsync
tldr
jq
zip
rar
dos2unix
unzip
wget
autossh
direnv
fish
git
cachix
htop
btop
kitty
xdg-utils
ani-cli
github-copilot-cli
pkgs.ghostty_git
# media
mpv
ffmpeg
yt-dlp
imagemagick
cava
pavucontrol
playerctl
pamixer
# editors
neovim
vscode
zed-editor
# dev tools
nil
nixfmt
gnumake
sqlite
openssl
pkg-config
aubio
cargo-tauri
trunk
uv
# langs
ghc
go
rustup
gcc
binutils
zig
lua
glm
python3
# themes/icons
bibata-cursors
gnome-themes-extra
papirus-icon-theme
adwaita-icon-theme
adwaita-qt6
# apps
telegram-desktop
onlyoffice-desktopeditors
qbittorrent
localsend
blender
wine
inputs.copetch.packages.${system}.default
];
}
+26
View File
@@ -0,0 +1,26 @@
{
config,
pkgs,
inputs,
system,
...
}:
let
packages = import ./packages.nix { inherit pkgs; };
in
{
imports = [
../../modules/darwin
];
networking.hostName = "sohryu-darwin";
networking.computerName = "sohryu-darwin";
nixpkgs.hostPlatform = system;
system.stateVersion = 5;
system.primaryUser = "sohryu";
environment.systemPackages = packages.system;
}
+9
View File
@@ -0,0 +1,9 @@
{
pkgs,
}:
with pkgs;
{
system = [
];
}
View File
File renamed without changes.
+4 -2
View File
@@ -1,15 +1,17 @@
{
pkgs,
inputs,
system,
...
}:
let
packages = import ./packages.nix { inherit pkgs; };
packages = import ./packages.nix { inherit pkgs inputs system; };
in
{
imports = [
./hardware.nix
./nixos
../../modules/nixos
];
elars.hardware.graphics.driver = "intel";
+169
View File
@@ -0,0 +1,169 @@
{
pkgs,
inputs,
system,
}:
let
uxplay-fixed = pkgs.uxplay.override {
avahi = pkgs.avahi.override { withLibdnssdCompat = true; };
};
in
with pkgs;
{
system = [
# apps
onlyoffice-desktopeditors
whatsapp-electron
pkgs.ghostty_git
telegram-desktop
discord-canary
prismlauncher
qbittorrent
antigravity
localsend
spotatui
picotool
blender
heroic
loupe
wine
# qol-hyprland
wl-clipboard
wf-recorder
obs-studio
tesseract
mpvpaper
swappy
slurp
grim
#thunar tools
thunar-media-tags-plugin
thunar-archive-plugin
ffmpegthumbnailer
thunar-volman
tumbler
thunar
# phone
kdePackages.krdp
libimobiledevice
android-tools
uxplay-fixed
usbmuxd
libmtp
jmtpfs
scrcpy
ifuse
# cli
github-copilot-cli
fastfetch
trash-cli
xdg-utils
dos2unix
autossh
ani-cli
zoxide
cachix
direnv
rsync
unzip
kitty
tree
tldr
wget
fish
htop
btop
zip
eza
bat
git
rar
jq
fd
# hardware
gpu-screen-recorder
intel-gpu-tools
smartmontools
brightnessctl
gsmartcontrol
vulkan-tools
libva-utils
mesa-demos
lm_sensors
exfatprogs
libsecret
gptfdisk
usbutils
hfsprogs
dmg2img
ddcutil
clinfo
hidapi
parted
p7zip
xar
# themes/icons
papirus-icon-theme
adwaita-icon-theme
gnome-themes-extra
hicolor-icon-theme
gnome-icon-theme
tango-icon-theme
arc-icon-theme
bibata-cursors
adwaita-qt6
adwaita-qt
# langs
binutils
python3
rustup
gcc
ghc
go
zig
lua
glm
# dev tools
cargo-tauri
pkg-config
gnumake
openssl
nixfmt
sqlite
aubio
trunk
nil
uv
# editors
zed-editor
neovim
vscode
# media
imagemagick
pavucontrol
playerctl
pamixer
ffmpeg
yt-dlp
cava
mpv
inputs.zen-browser.packages.${system}.default
inputs.noctalia.packages.${system}.default
inputs.copetch.packages.${system}.default
inputs.helium.packages.${system}.default
pkgs.qt6Packages.qtwebsockets
pkgs.evil-helix_git
];
}
+10
View File
@@ -0,0 +1,10 @@
{ ... }:
{
imports = [
../home/git.nix
./homebrew
./system
./users
];
}
+14
View File
@@ -0,0 +1,14 @@
{ ... }:
{
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
upgrade = true;
cleanup = "uninstall";
};
brews = [ ];
casks = [ ];
};
}
+71
View File
@@ -0,0 +1,71 @@
{
pkgs,
config,
lib,
...
}:
let
inherit (lib) mkAfter;
in
{
nix.enable = false;
time.timeZone = "Europe/Istanbul";
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
nerd-fonts.jetbrains-mono
];
system.defaults = {
NSGlobalDomain = {
AppleInterfaceStyle = "Dark";
InitialKeyRepeat = 15;
KeyRepeat = 2;
ApplePressAndHoldEnabled = false;
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
"com.apple.springing.enabled" = true;
"com.apple.springing.delay" = 0.0;
};
CustomSystemPreferences = {
"com.apple.desktopservices" = {
DSDontWriteNetworkStores = true;
DSDontWriteUSBStores = true;
};
"com.apple.AdLib" = {
allowApplePersonalizedAdvertising = false;
allowIdentifierForAdvertising = false;
forceLimitAdTracking = true;
personalizedAdsMigrated = false;
};
};
dock = {
autohide = true;
orientation = "bottom";
tilesize = 48;
};
finder = {
AppleShowAllExtensions = true;
ShowPathbar = true;
FXEnableExtensionChangeWarning = false;
NewWindowTarget = "Home";
FXPreferredViewStyle = "Nlsv";
};
loginwindow = {
DisableConsoleAccess = true;
GuestEnabled = false;
};
LaunchServices.LSQuarantine = false;
};
system.activationScripts.postActivation.text = mkAfter ''
echo "unhiding ${config.users.users.${config.system.primaryUser}.home}/Library..."
/usr/bin/chflags nohidden ${config.users.users.${config.system.primaryUser}.home}/Library
'';
}
+17
View File
@@ -0,0 +1,17 @@
{
pkgs,
...
}:
{
system.primaryUser = "sohryu";
users.users.sohryu = {
name = "sohryu";
home = "/Users/sohryu";
shell = pkgs.zsh;
};
programs.zsh.enable = true;
environment.systemPackages = [ pkgs.nh ];
environment.variables.NH_FLAKE = "/Users/sohryu/copland";
}
Vendored Executable
BIN
View File
Binary file not shown.
+28
View File
@@ -0,0 +1,28 @@
{
pkgs,
lib,
...
}:
let
base = ''
[user]
name = elwrcl
email = elwerici@proton.me
signingkey = AAC15D93AFCAB283
[commit]
gpgsign = true
[tag]
gpgsign = true
'';
darwinExtra = ''
[credential]
helper = osxkeychain
'';
gitconfig = pkgs.writeText "gitconfig" (base + lib.optionalString pkgs.stdenv.isDarwin darwinExtra);
in
{
environment.variables.GIT_CONFIG_SYSTEM = "${gitconfig}";
}
+139
View File
@@ -0,0 +1,139 @@
{
pkgs,
...
}:
{
imports = [ ./hyprland.nix ];
home.username = "elars";
home.homeDirectory = "/home/elars";
home.stateVersion = "25.05";
programs.home-manager.enable = true;
fonts.fontconfig.enable = true;
home.sessionVariables = {
BROWSER = "zen-beta.desktop";
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initContent = ''
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
alias ls='eza --icons --group-directories-first'
alias ll='eza -lah --icons --group-directories-first'
alias la='eza -a --icons --group-directories-first'
alias lt='eza --tree --level=2 --icons'
alias cd='z'
alias cat='bat'
alias grep='grep --color=auto'
alias df='df -h'
alias du='du -h'
alias free='free -h'
alias cp='cp -i'
alias mv='mv -i'
alias rm='trash-put'
alias sysinfo='fastfetch'
alias monitor='sudo btop'
alias ports='sudo ss -tulpn'
alias myip='curl ifconfig.me'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ~='cd ~'
alias -- -='cd -'
alias gs='git status'
alias ga='git add'
alias gc='git commit -m'
alias gp='git push'
alias gl='git log --oneline --graph --decorate'
alias rebuild='git -C ~/copland add -A && git -C ~/copland commit -m "update" && nh os switch'
alias rebuild-dry='nh os switch --dry'
alias rebuild-cop='nix flake update --flake ~/copland && git -C ~/copland add -A && git -C ~/copland commit -m "flake update $(date +%Y-%m-%d)" && nh os switch'
extract() {
if [ -f "$1" ]; then
case "$1" in
*.tar.bz2) tar xjf "$1" ;; *.tar.gz) tar xzf "$1" ;;
*.bz2) bunzip2 "$1" ;; *.rar) unrar e "$1" ;;
*.gz) gunzip "$1" ;; *.tar) tar xf "$1" ;;
*.zip) unzip "$1" ;; *.7z) 7z x "$1" ;;
*) echo "'$1' can't be extracted" ;;
esac
fi
}
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE SHARE_HISTORY AUTO_CD
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
export MESA_GL_VERSION_OVERRIDE=4.6
export MESA_GLSL_VERSION_OVERRIDE=460
export MESA_SHADER_CACHE_MAX_SIZE=2G
export MESA_SHADER_CACHE_DIR=/tmp/mesa_shader_cache
export PATH="$HOME/.local/bin:$PATH"
copetch --ascii
'';
};
programs.starship.enable = true;
programs.fzf.enable = true;
programs.zoxide.enable = true;
gtk = {
enable = true;
theme.name = "Adwaita-dark";
theme.package = pkgs.gnome-themes-extra;
gtk4.theme.name = "Adwaita-dark";
gtk4.theme.package = pkgs.gnome-themes-extra;
};
qt = {
enable = true;
platformTheme.name = "gtk3";
style.name = "adwaita-dark";
style.package = pkgs.adwaita-qt;
};
home.pointerCursor = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 24;
gtk.enable = true;
x11.enable = true;
};
dconf.settings."org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
gtk-application-prefer-dark-theme = true;
gtk-theme = "Adwaita-dark";
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"inode/directory" = [ "thunar.desktop" ];
"x-scheme-handler/http" = [ "zen-beta.desktop" ];
"x-scheme-handler/https" = [ "zen-beta.desktop" ];
"x-scheme-handler/about" = [ "zen-beta.desktop" ];
"x-scheme-handler/unknown" = [ "zen-beta.desktop" ];
};
};
services.easyeffects.enable = true;
}
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
Vendored Executable
BIN
View File
Binary file not shown.
+1
View File
@@ -24,6 +24,7 @@
canTouchEfiVariables = false;
efiSysMountPoint = "/boot";
};
systemd-boot = {
enable = true;
configurationLimit = 5;
+1
View File
@@ -2,6 +2,7 @@
{
imports = [
../home/git.nix
./boot
./desktop
./gaming
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -10,7 +10,7 @@
xdg.mime = {
enable = true;
defaultApplications = {
# gui/web
# gui
"text/html" = "zen-beta.desktop";
"x-scheme-handler/http" = "zen-beta.desktop";
"x-scheme-handler/https" = "zen-beta.desktop";
+2 -3
View File
@@ -1,4 +1,5 @@
{ ... }:
{
services.xserver.enable = true;
services.displayManager.ly = {
@@ -8,21 +9,19 @@
colormix_col1 = "0x00FFFFFF";
colormix_col2 = "0x000000EE";
colormix_col3 = "0x00777799";
bigclock = "en";
bigclock_12hr = false;
fg = "0x00FFFFFF";
bg = "0x00000000";
border_fg = "0x00FFFFFF";
error_fg = "0x01FF0000";
blank_box = true;
hide_borders = false;
margin_box_h = 2;
margin_box_v = 1;
};
};
services.xserver.xkb = {
layout = "tr";
variant = "";
File renamed without changes.
@@ -17,7 +17,7 @@
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = [
config.hyprland.default = [
"hyprland"
"gtk"
];
@@ -35,14 +35,4 @@
xdg-utils
xdg-user-dirs
];
security.wrappers = {
gsr-kms-server = {
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
capabilities = "cap_sys_admin+ep";
owner = "root";
group = "root";
permissions = "u+rx,g+rx,o+rx";
};
};
}
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
hardware.nvidia.prime = {
offload.enable = true;
amdgpuBusId = "PCI:X:X:X";
nvidiaBusId = "PCI:X:X:X";
};
}
@@ -1,4 +1,5 @@
{ ... }:
{
services.udev.extraRules = ''
KERNEL=="ttyACM[0-9]*", MODE="0666"
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,5 @@
{ ... }:
{
services.ollama.enable = true;
}
@@ -2,7 +2,7 @@
{
services.scx = {
enable = true;
enable = false;
scheduler = "scx_rustland";
};
services.irqbalance.enable = true;
File renamed without changes.
+23
View File
@@ -0,0 +1,23 @@
{
pkgs,
...
}:
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = false;
};
security.wrappers = {
gsr-kms-server = {
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
capabilities = "cap_sys_admin+ep";
owner = "root";
group = "root";
permissions = "u+rx,g+rx,o+rx";
};
};
services.gnome.gnome-keyring.enable = true;
}
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -14,7 +14,7 @@
}
];
extraConfig = ''
font-size=10
font-size=18
'';
};
}
File renamed without changes.
+1 -1
View File
@@ -7,7 +7,7 @@
"flakes"
];
max-jobs = "auto";
max-jobs = 1;
cores = 0;
substituters = [
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-9
View File
@@ -1,9 +0,0 @@
{ ... }:
{
hardware.nvidia.prime = {
offload.enable = true;
amdgpuBusId = "PCI:X:X:X"; # change to your AMD GPU's bus ID, e.g. "PCI:1:0:0"
nvidiaBusId = "PCI:X:X:X"; # change to your NVIDIA GPU's bus ID, e.g. "PCI:2:0:0"
};
}
-9
View File
@@ -1,9 +0,0 @@
{ ... }:
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = false;
};
services.gnome.gnome-keyring.enable = true;
}
-38
View File
@@ -1,38 +0,0 @@
{ pkgs }:
let
uxplay-fixed = pkgs.uxplay.override {
avahi = pkgs.avahi.override { withLibdnssdCompat = true; };
};
in
with pkgs;
{
system = [
# phone
libmtp
jmtpfs
android-tools
scrcpy
libimobiledevice
ifuse
kdePackages.krdp
usbmuxd
uxplay-fixed
# hardware
ddcutil
libsecret
brightnessctl
lm_sensors
smartmontools
gsmartcontrol
exfatprogs
hfsprogs
gptfdisk
usbutils
p7zip
dmg2img
tree
xar
parted
];
}