Add files

This commit is contained in:
lightly-toasted 2025-08-02 22:51:40 +09:00
parent 23878851bd
commit 74000547ea
19 changed files with 764 additions and 0 deletions

28
home/toast/home.nix Normal file
View file

@ -0,0 +1,28 @@
{ config, pkgs, inputs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
inputs.nixcord.homeModules.nixcord
./programs/kitty.nix
./programs/git.nix
./programs/nixvim.nix
./programs/fonts.nix
./programs/hyprland.nix
./programs/tofi.nix
./programs/wlogout.nix
./programs/zsh.nix
./programs/firefox.nix
./programs/yazi.nix
./programs/nixcord.nix
];
home = {
username = "toast";
homeDirectory = "/home/toast";
stateVersion = "24.11";
};
nixpkgs.config.allowUnfree = true;
systemd.user.startServices = "sd-switch";
}

View file

@ -0,0 +1,3 @@
{
programs.firefox.enable = true;
}

View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
dejavu_fonts
fira-code
font-awesome
liberation_ttf
xorg.fontutil
xorg.fontbh100dpi
xorg.fontbh75dpi
xorg.mkfontscale
nerd-fonts.jetbrains-mono
];
}

View file

@ -0,0 +1,10 @@
{
programs.git = {
enable = true;
userName = "lightly-toasted";
userEmail = "tooast@duck.com";
extraConfig = {
init.defaultBranch = "main";
};
};
}

View file

@ -0,0 +1,172 @@
{ pkgs, ... }: {
home.packages = [
pkgs.playerctl
pkgs.hyprshot
pkgs.tofi
];
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
systemd.enable = false;
settings = {
exec-once = [ "uwsm app -- firefox" ];
"$terminal" = "uwsm app -- kitty";
"$fileManager" = "uwsm app -- kitty yazi";
"$menu" = "uwsm app -- $(tofi-drun)";
"$mod" = "SUPER";
env = [
"XCURSOR_SIZE,24"
"HYPRCURSOR_SIZE,24"
"LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
"INPUT_METHOD,fcitx"
"QT_QPA_PLATFORM,wayland"
];
bind = [
"$mod, Q, exec, $terminal"
"$mod, C, killactive"
"$mod, M, exit"
"$mod, E, exec, $fileManager"
"$mod, R, exec, $menu"
"$mod, Y, togglesplit"
"$mod, F, fullscreen"
"$mod, left, movefocus, l"
"$mod, right, movefocus, r"
"$mod, up, movefocus, u"
"$mod, down, movefocus, d"
"$mod, H, movefocus, l"
"$mod, J, movefocus, d"
"$mod, K, movefocus, u"
"$mod, L, movefocus, r"
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
"$mod, 4, workspace, 4"
"$mod, 5, workspace, 5"
"$mod, 6, workspace, 6"
"$mod, 7, workspace, 7"
"$mod, 8, workspace, 8"
"$mod, 9, workspace, 9"
"$mod, 0, workspace, 10"
"$mod SHIFT, 1, movetoworkspace, 1"
"$mod SHIFT, 2, movetoworkspace, 2"
"$mod SHIFT, 3, movetoworkspace, 3"
"$mod SHIFT, 4, movetoworkspace, 4"
"$mod SHIFT, 5, movetoworkspace, 5"
"$mod SHIFT, 6, movetoworkspace, 6"
"$mod SHIFT, 7, movetoworkspace, 7"
"$mod SHIFT, 8, movetoworkspace, 8"
"$mod SHIFT, 9, movetoworkspace, 9"
"$mod SHIFT, 0, movetoworkspace, 10"
"$mod, mouse_down, workspace, e+1"
"$mod, mouse_up, workspace, e-1"
"$mod SHIFT, S, exec, env HYPRSHOT_DIR=/data/Backup/Screenshots hyprshot -m region"
"$mod SHIFT, E, exec, wlogout"
];
bindel = [
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
];
bindl = [
", XF86AudioNext, exec, playerctl next"
", XF86AudioPause, exec, playerctl play-pause"
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioPrev, exec, playerctl previous"
", XF86Tools, exec, playerctl play-pause"
];
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
general = {
gaps_in = 5;
gaps_out = 20;
border_size = 2;
"col.active_border" = "rgba(ffffffaa)";
"col.inactive_border" = "rgba(595959aa)";
resize_on_border = false;
allow_tearing = false;
layout = "dwindle";
};
decoration = {
rounding = 10;
rounding_power = 2;
active_opacity = 1.0;
inactive_opacity = 1.0;
shadow = {
enabled = true;
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
};
};
animations = {
enabled = true;
first_launch_animation = false;
bezier = [
"easeOutQuint,0.23,1,0.32,1"
"easeInOutCubic,0.65,0.05,0.36,1"
"linear,0,0,1,1"
"almostLinear,0.5,0.5,0.75,1.0"
"quick,0.15,0,0.1,1"
];
animation = [
"global,1,10,default"
"border,1,5.39,easeOutQuint"
"windows,1,4.79,easeOutQuint"
"windowsIn,1,4.1,easeOutQuint,popin 87%"
"windowsOut,1,1.49,linear,popin 87%"
"fadeIn,1,1.73,almostLinear"
"fadeOut,1,1.46,almostLinear"
"fade,1,3.03,quick"
"layers,1,3.81,easeOutQuint"
"layersIn,1,4,easeOutQuint,fade"
"layersOut,1,1.5,linear,fade"
"fadeLayersIn,1,1.79,almostLinear"
"fadeLayersOut,1,1.39,almostLinear"
"workspaces,1,1.94,almostLinear,fade"
"workspacesIn,1,1.21,almostLinear,fade"
"workspacesOut,1,1.94,almostLinear,fade"
];
};
dwindle = {
pseudotile = true;
preserve_split = true;
};
misc = {
force_default_wallpaper = 0;
disable_hyprland_logo = true;
};
input = {
sensitivity = -0.6;
};
windowrule = [
"suppressevent maximize, class:.*"
"nofocus,class:^%,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
];
};
};
}

View file

@ -0,0 +1,3 @@
{
programs.kitty.enable = true;
}

View file

@ -0,0 +1,34 @@
{
programs.nixcord = {
enable = true;
discord.enable = false;
vesktop.enable = true;
config = {
plugins = {
biggerStreamPreview.enable = true;
callTimer.enable = true;
experiments.enable = true;
fixSpotifyEmbeds.enable = true;
fixYoutubeEmbeds.enable = true;
forceOwnerCrown.enable = true;
friendsSince.enable = true;
gameActivityToggle.enable = true;
permissionsViewer.enable = true;
serverInfo.enable = true;
silentTyping.enable = true;
spotifyControls.enable = true;
spotifyCrack.enable = true;
summaries.enable = true;
typingIndicator.enable = true;
validReply.enable = true;
validUser.enable = true;
voiceChatDoubleClick.enable = true;
voiceMessages.enable = true;
volumeBooster.enable = true;
webKeybinds.enable = true;
webScreenShareFixes.enable = true;
youtubeAdblock.enable = true;
};
};
};
}

View file

@ -0,0 +1,11 @@
{
programs.nixvim = {
enable = true;
defaultEditor = true;
colorschemes.ayu.enable = true;
plugins = {
lualine.enable = true;
bufferline.enable = true;
};
};
}

View file

@ -0,0 +1,25 @@
{
programs.tofi = {
enable = true;
settings = {
font = "monospace";
font-size = 24;
background-color="000000D0";
text-color = "FFFFFF";
prompt-text = "run: ";
num-results = 7;
selection-color = "FF005F";
border-width = 0;
outline-width = 0;
result-spacing = 8;
anchor = "center";
width = "50%";
height = "50%";
padding-top = 32;
padding-bottom = 32;
padding-left = 32;
padding-right = 32;
terminal = "kitty";
};
};
}

View file

@ -0,0 +1,5 @@
{
programs.wlogout = {
enable = true;
};
}

View file

@ -0,0 +1,3 @@
{
programs.yazi.enable = true;
}

View file

@ -0,0 +1,13 @@
{ pkgs, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
update = "sudo nixos-rebuild switch --flake /home/toast/nix-config";
};
};
}