initial commit
This commit is contained in:
parent
6671b54dd2
commit
e50591b2ec
162 changed files with 922 additions and 6328 deletions
|
|
@ -1,40 +1,36 @@
|
|||
{ inputs
|
||||
, lib
|
||||
, pkgs
|
||||
{ lib
|
||||
, fetchCrate
|
||||
, rustPlatform
|
||||
, ...
|
||||
}: {
|
||||
imports = [
|
||||
./config.nix
|
||||
./anyrun.nix
|
||||
./ironbar.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
(rustPackage {
|
||||
name = "oxinoti";
|
||||
home.packages = [
|
||||
rustPlatform.buildRustPackage
|
||||
rec {
|
||||
pname = "oxinoti";
|
||||
version = "0.1.1";
|
||||
src = fetchCrate {
|
||||
inherit name version;
|
||||
sha256 = lib.fakesha256;
|
||||
inherit pname version;
|
||||
hash = lib.fakehash;
|
||||
};
|
||||
})
|
||||
(rustPackage {
|
||||
name = "oxidash";
|
||||
version = "0.1.0";
|
||||
src = fetchCrate {
|
||||
inherit name version;
|
||||
sha256 = lib.fakesha256;
|
||||
};
|
||||
})
|
||||
(rustPackage {
|
||||
name = "oxishut";
|
||||
version = "0.1.0";
|
||||
src = fetchCrate {
|
||||
inherit name version;
|
||||
sha256 = lib.fakesha256;
|
||||
};
|
||||
})
|
||||
}
|
||||
#rustPlatform.buildRustPackage
|
||||
#{
|
||||
# pname = "oxidash";
|
||||
# version = "0.1.0";
|
||||
# #src = fetchCrate {
|
||||
# # inherit name version;
|
||||
# # sha256 = lib.fakesha256;
|
||||
# #};
|
||||
#}
|
||||
#rustPlatform.buildRustPackage
|
||||
#{
|
||||
# pname = "oxishut";
|
||||
# version = "0.1.0";
|
||||
# #src = fetchCrate {
|
||||
# # inherit name version;
|
||||
# # sha256 = lib.fakesha256;
|
||||
# #};
|
||||
#}
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
|
|
@ -12,9 +11,18 @@
|
|||
go
|
||||
nodejs_20
|
||||
deno
|
||||
# rustpython
|
||||
python3
|
||||
neovim
|
||||
typst
|
||||
neovide
|
||||
tree-sitter
|
||||
dotnet-runtime_8
|
||||
unzip
|
||||
pkg-config
|
||||
lua-language-server
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
crate2nix
|
||||
sqlite
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, fonts
|
||||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
|
|
@ -12,6 +10,7 @@
|
|||
|
||||
fonts.fontconfig.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
vesktop
|
||||
kitty
|
||||
firefox
|
||||
fish
|
||||
|
|
@ -22,7 +21,40 @@
|
|||
lsd
|
||||
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
flatpak
|
||||
gnome.gnome-software
|
||||
networkmanager
|
||||
zoxide
|
||||
pkgs.greetd.greetd
|
||||
pkgs.greetd.regreet
|
||||
fastfetch
|
||||
pkgs.gnome.gnome-keyring
|
||||
dbus
|
||||
killall
|
||||
adw-gtk3
|
||||
gradience
|
||||
qt5ct
|
||||
qt6ct
|
||||
libadwaita
|
||||
yazi
|
||||
gnutar
|
||||
fishPlugins.tide
|
||||
nix-index
|
||||
libnotify
|
||||
zenith
|
||||
];
|
||||
|
||||
home.sessionPath = [
|
||||
"$HOME/.cargo/bin"
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
GOROOT = "$HOME/.go";
|
||||
};
|
||||
|
||||
home.keyboard = null;
|
||||
|
||||
programs.nix-index =
|
||||
{
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
{pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hyprland/default.nix
|
||||
./common.nix
|
||||
./kitty.nix
|
||||
./coding.nix
|
||||
./xdg.nix
|
||||
./media.nix
|
||||
./utils.nix
|
||||
#./gtk.nix
|
||||
#./cargo.nix
|
||||
];
|
||||
|
||||
home.username = "dashie";
|
||||
home.homeDirectory = "/home/dashie";
|
||||
home.stateVersion = "23.05";
|
||||
}
|
||||
home.username = "dashie";
|
||||
home.homeDirectory = "/home/dashie";
|
||||
home.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{...}: {
|
||||
services.flatpak.remotes = {
|
||||
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
};
|
||||
services.flatpak.packages = [
|
||||
"flathub:app/com.github.tchx84.Flatseal//stable"
|
||||
"flathub:app/dev.vencord.Vesktop//stable"
|
||||
"flathub:app/com.rustdesk.RustDesk//stable"
|
||||
"flathub:app/io.github.Foldex.AdwSteamGtk//stable"
|
||||
"flathub:app/io.github.Foldex.AdwSteamGtk//stable"
|
||||
"flathub:app/org.gnome.dspy//stable"
|
||||
"flathub:app/org.onlyoffice.desktopeditors//stable"
|
||||
"flathub:app/org.gtk.Gtk3theme.adw-gtk3//stable"
|
||||
"flathub:app/com.brave.Browser//stable"
|
||||
{ lib, pkgs, ... }: {
|
||||
|
||||
services.flatpak.remotes = lib.mkOptionDefault [{
|
||||
name = "flathub-stable";
|
||||
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
}];
|
||||
services.flatpak.uninstallUnmanaged = true;
|
||||
services.flatpak.packages = [
|
||||
"com.github.tchx84.Flatseal"
|
||||
"io.github.Foldex.AdwSteamGtk"
|
||||
"org.gnome.dspy"
|
||||
"org.onlyoffice.desktopeditors"
|
||||
"org.gtk.Gtk3theme.adw-gtk3"
|
||||
"com.brave.Browser"
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
36
nix/programs/gaming/default.nix
Normal file
36
nix/programs/gaming/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
imports = [
|
||||
# ./anyrun.nix
|
||||
# ./config.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gamemode
|
||||
steam
|
||||
lutris
|
||||
wine
|
||||
];
|
||||
|
||||
programs.steam.enable = true;
|
||||
programs.gamemode.enable = true;
|
||||
programs.gamemode = {
|
||||
enableRenice = true;
|
||||
settings = {
|
||||
general = {
|
||||
governor = "performance";
|
||||
};
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 0;
|
||||
amd_performance_level = "high";
|
||||
};
|
||||
custom = {
|
||||
start = "notify-send -a 'Gamemode' 'Optimizations activated'";
|
||||
end = "notify-send -a 'Gamemode' 'Optimizations deactivated'";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
nix/programs/gtk.nix
Normal file
23
nix/programs/gtk.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
iconTheme = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
};
|
||||
|
||||
theme = {
|
||||
name = "adw-gtk3";
|
||||
package = pkgs.adw-gtk3;
|
||||
};
|
||||
|
||||
cursorTheme = {
|
||||
name = "Bibata-Modern-Classic";
|
||||
package = pkgs.bibata-cursors;
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables.GTK_THEME = "adw-gtk3";
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,17 @@
|
|||
{ pkgs
|
||||
, osConfig
|
||||
, ...
|
||||
}: {
|
||||
{ inputs, pkgs, ... }: {
|
||||
programs.anyrun = {
|
||||
enable = true;
|
||||
config = {
|
||||
#plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
||||
# applications
|
||||
# rink
|
||||
# shell
|
||||
# websearch
|
||||
# inputs.anyrun-nixos-options.packages.${pkgs.system}.default
|
||||
#];
|
||||
|
||||
position = "center";
|
||||
plugins = [
|
||||
inputs.anyrun.packages.${pkgs.system}.applications
|
||||
inputs.anyrun.packages.${pkgs.system}.rink
|
||||
inputs.anyrun.packages.${pkgs.system}.translate
|
||||
inputs.anyrun.packages.${pkgs.system}.websearch
|
||||
];
|
||||
#position = "center";
|
||||
hideIcons = false;
|
||||
width = { fraction = 0.3; };
|
||||
y = { fraction = 0.5; };
|
||||
layer = "overlay";
|
||||
hidePluginInfo = true;
|
||||
closeOnClick = true;
|
||||
|
|
|
|||
|
|
@ -1,21 +1,7 @@
|
|||
{ config
|
||||
, pkgs
|
||||
{ pkgs
|
||||
, inputs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
# scripts = "${config.home.homeDirectory}/.config/scripts";
|
||||
inputs = {
|
||||
hyprland ={
|
||||
# Update for releavant commit, this is just bleeding edge as of 2024/04/11
|
||||
url = github:hyprwm/Hyprland/ac0f3411c18497a39498b756b711e092512de9e0;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
Hyprspace = {
|
||||
url = github:KZDKM/Hyprspace;
|
||||
inputs.hyprland.follows = "hyprland";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland.enable = true;
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
|
@ -24,7 +10,7 @@ in
|
|||
bindm = [
|
||||
"$mod, mouse:272, movewindow"
|
||||
"$mod, mouse:273, resizewindow"
|
||||
];
|
||||
];
|
||||
|
||||
bind = [
|
||||
# screenshots
|
||||
|
|
@ -38,11 +24,11 @@ in
|
|||
"$mod SUPER,T,exec,kitty -1"
|
||||
"$mod SUPER,E,exec,nautilus -w"
|
||||
"$mod SUPER,N,exec,neovide"
|
||||
"$mod SUPER,M,exec,oxidash"
|
||||
"$mod SUPER,M,exec,$HOME/.cargo/bin/oxidash"
|
||||
"$mod SUPER,R,exec,anyrun"
|
||||
"$mod SUPER,G,exec,oxicalc"
|
||||
"$mod SUPER,D,exec,oxishut"
|
||||
"$mod SUPER,A,exec,oxipaste"
|
||||
"$mod SUPER,G,exec,$HOME/.cargo/bin/oxicalc"
|
||||
"$mod SUPER,D,exec,$HOME/.cargo/bin/oxishut"
|
||||
"$mod SUPER,A,exec,$HOME/.cargo/bin/oxipaste"
|
||||
"$mod SUPERSHIFT,L,exec, playerctl -a pause & swaylock -c 000000 & systemctl suspend"
|
||||
|
||||
# media keys
|
||||
|
|
@ -131,31 +117,38 @@ in
|
|||
];
|
||||
|
||||
general = {
|
||||
gaps_out = "3,5,5,5";
|
||||
border_size = 3;
|
||||
col.active_border = "0xFFFF0000 0xFF00FF00 0xFF0000FF 45deg";
|
||||
col.inactive_border = "0x66333333";
|
||||
allow_tearing = true;
|
||||
gaps_out = "3,5,5,5";
|
||||
border_size = 3;
|
||||
"col.active_border" = "0xFFFF0000 0xFF00FF00 0xFF0000FF 45deg";
|
||||
"col.inactive_border" = "0x66333333";
|
||||
allow_tearing = true;
|
||||
};
|
||||
|
||||
decoration = {
|
||||
rounding = 4;
|
||||
rounding = 4;
|
||||
};
|
||||
|
||||
animations = {
|
||||
bezier = "penguin,0.05,0.9,0.1,1.0";
|
||||
animation = [
|
||||
"windowsMove,1,4,default"
|
||||
"windows,1,7,default,popin 70%"
|
||||
"windowsOut,1,7,default,popin 70%"
|
||||
"border,1,10,default"
|
||||
"fade,1,7,default"
|
||||
"workspaces,1,6,default"
|
||||
"layers,1,3,default,popin"
|
||||
];
|
||||
animations = {
|
||||
bezier = "penguin,0.05,0.9,0.1,1.0";
|
||||
animation = [
|
||||
"windowsMove,1,4,default"
|
||||
"windows,1,7,default,popin 70%"
|
||||
"windowsOut,1,7,default,popin 70%"
|
||||
"border,1,10,default"
|
||||
"fade,1,7,default"
|
||||
"workspaces,1,6,default"
|
||||
"layers,1,3,default,popin"
|
||||
];
|
||||
};
|
||||
|
||||
dwindle = {
|
||||
preserve_split = true;
|
||||
pseudotile = 0;
|
||||
permanent_direction_override = false;
|
||||
};
|
||||
|
||||
input = {
|
||||
kb_layout = "us_int";
|
||||
repeat_delay = 200;
|
||||
force_no_accel = true;
|
||||
touchpad = {
|
||||
|
|
@ -166,12 +159,14 @@ in
|
|||
};
|
||||
|
||||
misc = {
|
||||
vrr = 1;
|
||||
animate_manual_resizes = 1;
|
||||
enable_swallow = true;
|
||||
disable_splash_rendering = true;
|
||||
disable_hyprland_logo = true;
|
||||
swallow_regex = "^(.*)(kitty)(.*)$";
|
||||
vrr = 1;
|
||||
animate_manual_resizes = 1;
|
||||
enable_swallow = true;
|
||||
disable_splash_rendering = true;
|
||||
disable_hyprland_logo = true;
|
||||
swallow_regex = "^(.*)(kitty)(.*)$";
|
||||
# conversion seems to be borked right now, i want a smooth bibata :(
|
||||
enable_hyprcursor = false;
|
||||
};
|
||||
|
||||
env = [
|
||||
|
|
@ -185,16 +180,14 @@ in
|
|||
"XCURSOR_THEME,Bibata-Modern-Classic"
|
||||
"XCURSOR_SIZE,24"
|
||||
"QT_QPA_PLATFORM,wayland"
|
||||
"QT_QPA_PLATFORMTHEME = \"qt5ct\""
|
||||
"QT_WAYLAND_FORCE_DPI,96"
|
||||
"QT_AUTO_SCREEN_SCALE_FACTOR,0"
|
||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||
"QT_SCALE_FACTOR,1"
|
||||
"PKG_CONFIG_PATH,/usr/local/lib/pkgconfig"
|
||||
"LD_LIBRARY_PATH,/usr/local/lib"
|
||||
"EDITOR,\"neovide --novsync --nofork\""
|
||||
"WLR_DRM_NO_ATOMIC,1"
|
||||
"GTK_USE_PORTAL, 1"
|
||||
"PATH,/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:~/.local/bin:~/.cargo/bin:$PATH"
|
||||
];
|
||||
|
||||
monitor = [
|
||||
|
|
@ -228,7 +221,7 @@ in
|
|||
];
|
||||
|
||||
|
||||
layerrule = [
|
||||
layerrule = [
|
||||
# layer rules
|
||||
# mainly to disable animations within slurp and grim
|
||||
"noanim, selection"
|
||||
|
|
@ -261,19 +254,18 @@ in
|
|||
|
||||
exec-once = [
|
||||
# environment
|
||||
"systemctl --user import-environment"
|
||||
"systemctl --user import-environment"
|
||||
"dbus-update-activation-environment --systemd --all"
|
||||
"hyprctl setcursor Bibata-Modern-Classic 24"
|
||||
"hyprctl setcursor Bibata-Modern-Classic 24"
|
||||
|
||||
# other programs
|
||||
"hyprpaper"
|
||||
"ironbar"
|
||||
"firefox"
|
||||
"streamdeck -n"
|
||||
"oxipaste_daemon"
|
||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
"nextcloud --background"
|
||||
"oxinoti"
|
||||
"hyprpaper"
|
||||
"ironbar"
|
||||
"firefox"
|
||||
#"oxipaste_daemon"
|
||||
#"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
"nextcloud --background"
|
||||
"$HOME/.cargo/bin/oxinoti"
|
||||
];
|
||||
|
||||
plugin = {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
{
|
||||
lib
|
||||
{ lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
imports = [
|
||||
#./anyrun.nix
|
||||
imports = [
|
||||
./anyrun.nix
|
||||
./config.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
hyprland
|
||||
xorg.xprop
|
||||
grim
|
||||
slurp
|
||||
|
|
@ -20,6 +19,9 @@
|
|||
copyq
|
||||
gnome.nautilus
|
||||
gnome.sushi
|
||||
wl-clipboard
|
||||
kooha
|
||||
hyprcursor
|
||||
hyprpaper
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,5 @@
|
|||
shell = "fish";
|
||||
};
|
||||
|
||||
theme = "Catppuccin-Mocha";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@
|
|||
mpv
|
||||
# pdf
|
||||
zathura
|
||||
evince
|
||||
libreoffice-fresh
|
||||
pdftk
|
||||
# spotify
|
||||
ncspot
|
||||
# video editing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue