Compare commits

..

2 commits

Author SHA1 Message Date
coast
65112394b4 change niri a bit, and add tmux to nix config 2025-11-04 03:09:34 +03:30
coast
43847514c1 changes to nvim, colorschemes, nixos, and wezterm 2025-11-04 02:47:57 +03:30
17 changed files with 131 additions and 133 deletions

View file

@ -1,24 +1,15 @@
local wezterm = require 'wezterm' local wezterm = require("wezterm")
local config = wezterm.config_builder() local config = wezterm.config_builder()
config.font_size = 15
config.initial_cols = 120 config.color_scheme = "Mashup Colors (terminal.sexy)"
config.initial_rows = 28
config.font_size = 12
config.font = wezterm.font("MapleMono")
config.window_close_confirmation = 'NeverPrompt'
config.enable_tab_bar = false
config.window_background_opacity = 0.9
config.window_padding = { config.window_padding = {
left = 5, left = 4,
right = 5, right = 4,
top = 5, top = 4,
bottom = 5, bottom = 4,
} }
config.enable_tab_bar = false
config.color_scheme = 'Afterglow' config.font = wezterm.font("JetBrainsMono Nerd Font")
config.window_close_confirmation = "NeverPrompt"
config.window_background_opacity = 0.90
return config return config

View file

@ -34,7 +34,7 @@ output "HDMI-A-1" {
} }
output "eDP-1" { output "eDP-1" {
//off off
scale 1 scale 1
transform "normal" transform "normal"
position x=1280 y=0 position x=1280 y=0
@ -221,7 +221,7 @@ binds {
Mod+Shift+Minus { set-window-height "-10%"; } Mod+Shift+Minus { set-window-height "-10%"; }
Mod+Shift+Equal { set-window-height "+10%"; } Mod+Shift+Equal { set-window-height "+10%"; }
Mod+V { toggle-window-floating; } Mod+Space { toggle-window-floating; }
Mod+Shift+V { switch-focus-between-floating-and-tiling; } Mod+Shift+V { switch-focus-between-floating-and-tiling; }
Mod+Shift+F { toggle-column-tabbed-display; } Mod+Shift+F { toggle-column-tabbed-display; }

View file

@ -7,4 +7,4 @@ require("plugins/treesitter")
--require("plugins/whichkey") --require("plugins/whichkey")
require("config") require("config")
require("plugins/render-markdown") require("plugins/render-markdown")
require("nvim-toggler").setup() require("plugins/monokai-pro")

View file

@ -7,12 +7,12 @@
"cmp-spell": { "branch": "master", "commit": "694a4e50809d6d645c1ea29015dad0c293f019d6" }, "cmp-spell": { "branch": "master", "commit": "694a4e50809d6d645c1ea29015dad0c293f019d6" },
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" }, "cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
"comfy-line-numbers.nvim": { "branch": "main", "commit": "31e2f9287b4491ad72defb9e0185eb2739983799" }, "comfy-line-numbers.nvim": { "branch": "main", "commit": "31e2f9287b4491ad72defb9e0185eb2739983799" },
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
"lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" }, "lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" },
"lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" }, "lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" },
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" }, "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
"mini.nvim": { "branch": "main", "commit": "429e5f9dc9cd59bf76cd98b687300f0a384a7f52" }, "mini.nvim": { "branch": "main", "commit": "429e5f9dc9cd59bf76cd98b687300f0a384a7f52" },
"monokai-pro.nvim": { "branch": "master", "commit": "1ac671f6da720cba967d28d25c2f16b8b4e18808" },
"none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" }, "none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" },
"none-ls.nvim": { "branch": "main", "commit": "db2a48b79cfcdab8baa5d3f37f21c78b6705c62e" }, "none-ls.nvim": { "branch": "main", "commit": "db2a48b79cfcdab8baa5d3f37f21c78b6705c62e" },
"nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" }, "nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" },

View file

@ -29,7 +29,7 @@ else
cfg.shell = "/run/current-system/sw/bin/zsh" cfg.shell = "/run/current-system/sw/bin/zsh"
end end
vim.cmd([[colorscheme gruvbox]]) vim.cmd([[colorscheme monokai-pro]])
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "single", border = "single",

View file

@ -1,7 +1,7 @@
return { return {
{ {
"andweeb/presence.nvim", "andweeb/presence.nvim",
"ellisonleao/gruvbox.nvim", "loctvl842/monokai-pro.nvim",
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
"williamboman/mason.nvim", "williamboman/mason.nvim",
{ {

View file

@ -0,0 +1,20 @@
require("monokai-pro").setup({
transparent_background = true,
devicons = true,
terminal_colors = true,
styles = {
comment = { italic = true },
keyword = { italic = true },
type = { italic = true },
storageclass = { italic = true },
structure = { italic = true },
parameter = { italic = true },
annotation = { italic = true },
tag_attribute = { italic = true },
},
filter = "spectrum",
day_night = { enable = false },
background_clear = { "toggleterm", "telescope", "notify", "nvim-tree" },
})
vim.cmd("colorscheme monokai-pro")

View file

@ -1,44 +1,39 @@
format = """ format = """
[](#1d2021)\ [](#1e1e1e)\
$os\ $os\
$username\ $username\
[](bg:#3c3836 fg:#1d2021)\ [](bg:#2a2a2a fg:#1e1e1e)\
$directory\ $directory\
[](fg:#3c3836 bg:#2a2a2a)\ [](fg:#2a2a2a bg:#3a3830)\
$all_langs\ $all_langs\
[](fg:#2a2a2a bg:#1d2021)\ [](fg:#3a3830 bg:#1e1e1e)\
$git_branch\
[](fg:#1d2021 bg:#4a4a4a)\
$time\ $time\
[ ](fg:#4a4a4a)\ [](fg:#1e1e1e bg:#3e3a32)\
$time\
[ ](fg:#3e3a32)\
""" """
add_newline = false add_newline = false
[username] [username]
show_always = true show_always = true
style_user = "bg:#1d2021 fg:#bdae93" style_user = "bg:#1e1e1e fg:#dcd7ba"
style_root = "bg:#1d2021 fg:#fb4934" style_root = "bg:#1e1e1e fg:#c05a3b"
format = '[$user]($style)' format = '[$user]($style)'
disabled = false disabled = false
[os] [os]
style = "bg:#1d2021 fg:#bdae93" style = "bg:#2a2a2a fg:#dcd7ba"
disabled = true disabled = true
[directory] [directory]
style = "fg:#bdae93 bg:#3c3836" style = "fg:#dcd7ba bg:#2a2a2a"
format = "[ $path ]($style)" format = "[ $path ]($style)"
truncation_length = 3 truncation_length = 3
truncation_symbol = "…/" truncation_symbol = "…/"
[directory.substitutions] [directory.substitutions]
"Documents" = "󰈙 " "Documents" = "󰈙 "
"Downloads" = " " "Downloads" = " "
"Music" = " " "Music" = " "
"Pictures" = " " "Pictures" = " "
[git_branch]
symbol = " "
style = "bg:#1d2021 fg:#bdae93"
format = "[ $symbol$branch ]($style)"

View file

@ -1,6 +1,7 @@
{ {
"position": "bottom", "position": "top",
"layer": "bottom", "output": "HDMI-A-1",
"layer": "top",
"modules-left": [ "modules-left": [
"niri/workspaces", "niri/workspaces",
"niri/mode", "niri/mode",
@ -9,7 +10,7 @@
], ],
"modules-right": [ "modules-right": [
"clock", "clock",
"battery", // "battery",
"pulseaudio", "pulseaudio",
"network" "network"
], ],
@ -83,8 +84,8 @@
"format": "<span style=\"italic\">{}</span>" "format": "<span style=\"italic\">{}</span>"
}, },
"network": { "network": {
"interface": "wlo1", // "interface": "wlo1",
// "interface": "eno1", "interface": "eno1",
"format-wifi": "WLAN {essid}", "format-wifi": "WLAN {essid}",
"format-ethernet": "ETH {ipaddr}/{cidr}", "format-ethernet": "ETH {ipaddr}/{cidr}",
"format-disconnected": "disconnected", "format-disconnected": "disconnected",

View file

@ -1,18 +1,19 @@
@define-color border #3c3836; @define-color border #3e3a32;
@define-color background #282828; @define-color background #1e1e1e;
@define-color surface0 #3c3836; @define-color surface0 #2a2a2a;
@define-color overlay0 #504945; @define-color overlay0 #3a3830;
@define-color text #ebdbb2; @define-color text #dcd7ba;
@define-color text_dim #a89984; @define-color text_dim #8c8a75;
@define-color blue #458588;
@define-color green #b8bb26; @define-color blue #7fbbb3;
@define-color yellow #d79921; @define-color green #55393D; /* changed */
@define-color peach #fe8019; @define-color yellow #f9e2af;
@define-color maroon #fb4934; @define-color peach #e69875;
@define-color lavender #b16286; @define-color maroon #c05a3b;
@define-color pink #d3869b; @define-color lavender #b4beff;
@define-color teal #689d6a; @define-color pink #f4b8e4;
@define-color grey #928374; @define-color teal #7fc1ca;
@define-color grey #5c6773;
* { * {
border: none; border: none;
@ -23,7 +24,7 @@
window#waybar { window#waybar {
background: @background; background: @background;
border-top: 2px solid @surface0; border-bottom: 2px solid @surface0;
} }
#disk, #disk,
@ -48,9 +49,7 @@ window#waybar {
border-radius: 8px; border-radius: 8px;
} }
#window { #window { transition: none; }
transition: none;
}
window#waybar.empty #window { window#waybar.empty #window {
background: transparent; background: transparent;
@ -58,15 +57,8 @@ window#waybar.empty #window {
border: none; border: none;
} }
#network { #network { margin: 8px 12px; color: @text; }
margin: 8px 12px 8px 12px; #pulseaudio, #clock { color: @text; }
color: @text;
}
#pulseaudio,
#clock {
color: @text;
}
#workspaces { #workspaces {
margin-left: 12px; margin-left: 12px;
@ -80,19 +72,12 @@ window#waybar.empty #window {
transition: none; transition: none;
} }
#workspaces button.empty { #workspaces button.empty { color: @text_dim; }
color: @text; #workspaces button.active { color: @green; } /* now #55393D */
} #workspaces button.urgent { color: @maroon; }
#workspaces button.active {
color: @peach;
}
#workspaces button.urgent {
color: @maroon;
}
#workspaces button:hover { #workspaces button:hover {
background: @overlay0; background: @overlay0;
color: @text; color: @text;
} }

View file

@ -72,10 +72,8 @@ in
security.sudo-rs.enable = true; security.sudo-rs.enable = true;
virtualisation = { virtualisation = {
waydroid.enable = true; waydroid.enable = false;
podman = { podman.enable = true;
enable = true;
};
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -122,6 +120,14 @@ in
vazir-fonts vazir-fonts
]; ];
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
];
};
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
services.openssh.enable = true; services.openssh.enable = true;
system.stateVersion = "25.05"; system.stateVersion = "25.05";

View file

@ -0,0 +1,11 @@
{
...
}:
{
swapDevices = [
{
device = "/var/lib/swapfile";
size = 12*1024;
}
];
}

View file

@ -0,0 +1,10 @@
{
config,
...
}:
{
zramSwap = {
enable = true;
writebackDevice = "/dev/nvme0n1p3";
};
}

View file

@ -23,6 +23,7 @@
modules = [ modules = [
(import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; }) (import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; })
./configuration/sys/coreutils-configuration.nix ./configuration/sys/coreutils-configuration.nix
./configuration/sys/swap.nix
./hardware-configuration.nix ./hardware-configuration.nix
{ {

View file

@ -1,39 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2ed14a91-f00e-4c66-8c33-29f93a8451d7";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/FB28-548D";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -36,6 +36,7 @@
suod = "sudo"; suod = "sudo";
sduo = "sudo"; sduo = "sudo";
sd = "sudo"; sd = "sudo";
fastfetch = "fastfetch --pipe false | uwuify.awk";
}; };
initContent = '' initContent = ''
autoload -U compinit autoload -U compinit
@ -52,6 +53,10 @@
EDITOR=vim EDITOR=vim
bindkey -e bindkey -e
PS1="[%n in %m %~] " PS1="[%n in %m %~] "
eval "$(starship init zsh)"
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default
fi
''; '';
}; };
} }

View file

@ -13,7 +13,9 @@
nvim = "nvim"; nvim = "nvim";
eww = "eww"; eww = "eww";
waybar = "waybar"; waybar = "waybar";
rofi = "rofi";
niri = "niri"; niri = "niri";
"starship.toml" = "starship.toml";
}; };
in { in {
xdg.configFile = builtins.mapAttrs (name: subpath: { xdg.configFile = builtins.mapAttrs (name: subpath: {
@ -30,9 +32,12 @@ in {
nix-search-cli nix-search-cli
fastfetch fastfetch
dysk dysk
autotiling ncurses
ollama
tree tree
pyright
stylua stylua
starship
gopls gopls
lua-language-server lua-language-server
serve-d serve-d
@ -45,7 +50,7 @@ in {
mate.caja mate.caja
htop htop
nixpkgs-fmt nixpkgs-fmt
swaybg swww
wmenu wmenu
mako mako
nwg-look nwg-look
@ -79,4 +84,11 @@ in {
userName = "coast"; userName = "coast";
}; };
programs.tmux = {
enable = true;
};
programs.tmate = {
enable = true;
};
} }