feat: add nvf config

This commit is contained in:
DACHXY 2025-01-10 14:22:56 +08:00
parent 9e46058abb
commit 898d56ebd6
24 changed files with 3367 additions and 95 deletions

View file

@ -1,8 +1,6 @@
{ ... }:
let
configDir = ../config;
in
{
in {
home.file = {
".config/wallpapers".source = "${configDir}/wallpapers";
".config/kitty".source = "${configDir}/kitty";

View file

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
imports = [
./git.nix
./gtk.nix
@ -11,15 +10,15 @@
./virtualization.nix
./hyprland.nix
./swaync.nix
./neovim.nix
./desktop.nix
./neovim.nix
inputs.hyprland.homeManagerModules.default
];
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
allowUnfreePredicate = _: true;
permittedInsecurePackages = [
"electron-25.9.0" # Obsidian

View file

@ -1,10 +1,12 @@
{ pkgs, xcursor-size, ... }:
let
{
pkgs,
xcursor-size,
...
}: let
cursorName = "catppuccin-macchiato-lavender-cursors";
themeName = "catppuccin-macchiato-lavender-compact";
cursorSize = pkgs.lib.strings.toInt xcursor-size;
in
{
in {
gtk = {
enable = true;
@ -17,7 +19,7 @@ in
theme = {
name = themeName;
package = pkgs.catppuccin-gtk.override {
accents = [ "lavender" ];
accents = ["lavender"];
size = "compact";
variant = "macchiato";
};
@ -59,9 +61,7 @@ in
};
xdg.configFile = {
"Kvantum/Catppuccin-Macchiato-Lavender/Catppuccin-Macchiato-Blue/Catppuccin-Macchiato-Blue.kvconfig".source =
"${pkgs.catppuccin-kvantum}/share/Kvantum/Catppuccin-Macchiato-Lavender/Cattpuccin-Macchiato-Blue.kvconfig";
"Kvantum/Catppuccin-Macchiato-Lavender/Catppuccin-Macchiato-Blue/Catppuccin-Macchiato-Blue.svg".source =
"${pkgs.catppuccin-kvantum}/share/Kvantum/Catppuccin-Macchiato-Lavender/Cattpuccin-Macchiato-Blue.svg";
"Kvantum/Catppuccin-Macchiato-Lavender/Catppuccin-Macchiato-Blue/Catppuccin-Macchiato-Blue.kvconfig".source = "${pkgs.catppuccin-kvantum}/share/Kvantum/Catppuccin-Macchiato-Lavender/Cattpuccin-Macchiato-Blue.kvconfig";
"Kvantum/Catppuccin-Macchiato-Lavender/Catppuccin-Macchiato-Blue/Catppuccin-Macchiato-Blue.svg".source = "${pkgs.catppuccin-kvantum}/share/Kvantum/Catppuccin-Macchiato-Lavender/Cattpuccin-Macchiato-Blue.svg";
};
}

View file

@ -37,6 +37,7 @@
# Steam
"workspace: 5 silent, class: ^(steam)$"
"workspace: unset, class: ^(steam)$, floating: 1"
# Line
"workspace: 2, initialTitle: ^(LINE)$"

View file

@ -7,9 +7,7 @@
xcursor-size,
nvidia-offload-enabled,
...
}:
let
}: let
terminal = "ghostty";
startScript = import ./hypr/exec.nix {
inherit
@ -32,8 +30,7 @@ let
song_info=$(playerctl metadata --format '{{title}} 󰎆 {{artist}}')
echo "$song_info"
'';
in
{
in {
home.packages = with pkgs; [
hyprpaper
hyprcursor
@ -55,14 +52,14 @@ in
hyprexpo
hyprwinwrap
])
++ ([
++ [
inputs.hyprgrass.packages.${system}.default
]);
];
settings =
{
bind = import ./hypr/bind.nix { inherit mainMod nvidia-offload-enabled; };
bindm = import ./hypr/bindm.nix { inherit mainMod; };
bind = import ./hypr/bind.nix {inherit mainMod nvidia-offload-enabled;};
bindm = import ./hypr/bindm.nix {inherit mainMod;};
monitor = import ./hypr/monitor.nix;
plugin = plugins;
exec-once = ''${startScript}'';
@ -83,8 +80,8 @@ in
services.hyprpaper = {
enable = true;
settings = {
preload = [ "~/.config/wallpapers/wall.png" ];
wallpaper = [ ", ~/.config/wallpapers/wall.png" ];
preload = ["~/.config/wallpapers/wall.png"];
wallpaper = [", ~/.config/wallpapers/wall.png"];
splash = false;
ipc = "on";
};
@ -105,7 +102,7 @@ in
# CURRENT SONG
label {
monitor =
text = cmd[update:1000] echo "$(${getCurrentSong}/bin/getSong)"
text = cmd[update:1000] echo "$(${getCurrentSong}/bin/getSong)"
color = rgba(235, 219, 178, .75)
font_size = 16
font_family = $font, $font2

View file

@ -1,5 +1,8 @@
{ pkgs, lib, ... }:
let
{
pkgs,
lib,
...
}: let
vesktop = pkgs.vesktop.overrideAttrs (oldAttrs: {
desktopItems = lib.optional pkgs.stdenv.hostPlatform.isLinux (
(lib.head oldAttrs.desktopItems).override {
@ -8,40 +11,41 @@ let
}
);
});
in
{
home.packages = (with pkgs; [
# Dev stuff
gcc
go
nodePackages.pnpm
(python3.withPackages
(python-pkgs: [ python-pkgs.pip python-pkgs.requests ]))
rustup
pkgsCross.mingwW64.stdenv.cc
pkgsCross.mingwW64.windows.pthreads
postman
cz-cli
in {
home.packages =
(with pkgs; [
# Dev stuff
gcc
go
nodePackages.pnpm
(python3.withPackages
(python-pkgs: [python-pkgs.pip python-pkgs.requests]))
rustup
pkgsCross.mingwW64.stdenv.cc
pkgsCross.mingwW64.windows.pthreads
postman
cz-cli
# Work stuff
libreoffice-qt
# Work stuff
libreoffice-qt
# Bluetooth
blueberry
# Bluetooth
blueberry
# Gaming
steam-run
# Gaming
steam-run
# Downloads
qbittorrent
# Downloads
qbittorrent
# Utils
viewnior
catppuccin-cursors.macchiatoLavender
catppuccin-gtk
cava
papirus-folders
]) ++ ([
vesktop # discord
]);
# Utils
viewnior
catppuccin-cursors.macchiatoLavender
catppuccin-gtk
cava
papirus-folders
])
++ [
vesktop # discord
];
}

View file

@ -5,9 +5,6 @@
y = "yazi";
g = "git";
t = "tmux";
vim = "nvim";
vi = "nvim";
v = "nvim";
# Nixos
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos";

View file

@ -1,7 +1,5 @@
# config from https://github.com/shub39/dotfiles
{ ... }:
{
{...}: {
services.swaync = {
enable = true;
@ -181,7 +179,7 @@
.widget-mpris-player {
padding: 5px 5px;
margin: 10px;
}
}
'';
};
}