This commit is contained in:
coast 2025-10-25 16:16:41 +03:30
parent ab8cd74a65
commit 9c3d012f9d
6 changed files with 151 additions and 86 deletions

1
config/nvim/nvim Symbolic link
View file

@ -0,0 +1 @@
/nix/store/5hcm30287f6kxb02yzr92lmqpx8npgjq-home-manager-files/.config/nvim

@ -1 +1 @@
Subproject commit 8860e8fbba6c77f7cb170c94f02b09cdf006fe6f Subproject commit 01d48cc7c176b3efb72cf8835803cbe6c58b53b3

View file

@ -4,7 +4,7 @@ let
unstable = pkgsUnstable; unstable = pkgsUnstable;
in in
{ {
imports = [ /etc/nixos/hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
boot = { boot = {
readOnlyNixStore = true; readOnlyNixStore = true;
@ -21,14 +21,22 @@ in
time.timeZone = "Asia/Tehran"; time.timeZone = "Asia/Tehran";
hardware = { hardware = {
graphics.enable = true; # graphics.enable = true;
nvidia = { # nvidia = {
modesetting.enable = true; # modesetting.enable = true;
powerManagement.enable = true; # powerManagement.enable = true;
open = false; # open = false;
nvidiaSettings = true; # nvidiaSettings = true;
package = pkgs.linuxPackages.nvidiaPackages.beta; # package = pkgs.linuxPackages.nvidiaPackages.beta;
}; # prime.offload = {
# enable = true;
# enableOffloadCmd = true;
# };
# prime = {
# intelBusId = "PCI:0:2:0";
# nvidiaBusId = "PCI:1:0:0";
# };
# };
bluetooth.enable = true; bluetooth.enable = true;
bluetooth.powerOnBoot = true; bluetooth.powerOnBoot = true;
}; };

View file

@ -3,19 +3,22 @@
services = { services = {
xserver = { xserver = {
enable = true; enable = true;
videoDrivers = ["nvidia"]; # videoDrivers = ["modesetting" "nvidia"];
windowManager.qtile.enable = true; windowManager.qtile.enable = false;
}; };
displayManager.ly.enable = true; displayManager.ly.enable = true;
blueman.enable = true; blueman.enable = false;
printing.enable = false; printing.enable = false;
jellyfin.enable = true; };
pipewire = {
security.rtkit.enable = true;
services.pipewire = {
enable = true; enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
};
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -32,6 +35,7 @@
nano.enable = false; nano.enable = false;
nekoray.enable = true; nekoray.enable = true;
nekoray.tunMode.enable = true; nekoray.tunMode.enable = true;
sway.enable = true;
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [

View file

@ -2,7 +2,6 @@
dotDir = "${config.home.homeDirectory}/.local/src/config/"; dotDir = "${config.home.homeDirectory}/.local/src/config/";
mkSl = path: config.lib.file.mkOutOfStoreSymlink path; mkSl = path: config.lib.file.mkOutOfStoreSymlink path;
configs = { configs = {
sway = "sway";
kitty = "kitty"; kitty = "kitty";
foot = "foot"; foot = "foot";
qtile = "qtile"; qtile = "qtile";
@ -10,6 +9,9 @@
nvim = "nvim"; nvim = "nvim";
eww = "eww"; eww = "eww";
}; };
modifier = "Mod4";
terminal = "footclient";
menu = "${pkgs.wmenu}/bin/wmenu-run";
in { in {
home.username = "coast"; home.username = "coast";
home.homeDirectory = "/home/coast"; home.homeDirectory = "/home/coast";
@ -20,11 +22,61 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
alsa-utils nix-search-cli neofetch dysk nsxiv tree wl-clipboard appimage-run libnotify grim slurp yazi mate.caja htop nixpkgs-fmt alsa-utils nix-search-cli neofetch dysk nsxiv tree wl-clipboard appimage-run libnotify grim slurp yazi mate.caja htop nixpkgs-fmt
swaybg wmenu mako nwg-look xorg.xkill swaybg wmenu mako nwg-look xorg.xkill
mpv vesktop wlr-randr rtorrent tor-browser mpv vesktop wlr-randr autotiling
nodejs gcc gnumake clang-tools ruby_3_4 pkg-config nodejs gcc gnumake clang-tools ruby_3_4 pkg-config dmd dtools rustup
eww
]; ];
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
config = {
modifier = "Mod4";
gaps = {
inner = 5;
outer = 10;
};
output.eDP-1.disable = "";
keybindings = {
"${modifier}+Return" = "exec ${terminal}";
"${modifier}+r" = "exec ${menu} -l 10";
"${modifier}+s" = "kill";
"${modifier}+Print" = "exec /home/coast/.local/src/local/bin/screenie-wlr";
"${modifier}+1" = "workspace 1";
"${modifier}+2" = "workspace 2";
"${modifier}+3" = "workspace 3";
"${modifier}+4" = "workspace 4";
"${modifier}+5" = "workspace 5";
"${modifier}+6" = "workspace 6";
"${modifier}+7" = "workspace 7";
"${modifier}+8" = "workspace 8";
"${modifier}+9" = "workspace 9";
"${modifier}+0" = "workspace 10";
"${modifier}+Shift+1" = "move container to workspace 1";
"${modifier}+Shift+2" = "move container to workspace 2";
"${modifier}+Shift+3" = "move container to workspace 3";
"${modifier}+Shift+4" = "move container to workspace 4";
"${modifier}+Shift+5" = "move container to workspace 5";
"${modifier}+Shift+6" = "move container to workspace 6";
"${modifier}+Shift+7" = "move container to workspace 7";
"${modifier}+Shift+8" = "move container to workspace 8";
"${modifier}+Shift+9" = "move container to workspace 9";
"${modifier}+h" = "focus left";
"${modifier}+j" = "focus down";
"${modifier}+k" = "focus up";
"${modifier}+l" = "focus right";
"${modifier}+Shift+i" = "exec caja";
"${modifier}+Shift+r" = "reload";
};
startup = [
{ command = "autotiling"; }
{ command = "foot -s"; }
];
};
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
history = { history = {

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
TEMP_FULLSCREEN=$(mktemp /tmp/fullscreen_XXXXXX.png) TEMP_FULLSCREEN=$(mktemp /tmp/fullscreen_XXXXXX.png)
grim "$TEMP_FULLSCREEN" grim "$TEMP_FULLSCREEN"
TEMP_FILE=$(mktemp /tmp/screenshot_XXXXXX.png) TEMP_FILE=$(mktemp /tmp/screenshot_XXXXXX.png)