Compare commits
13 Commits
b1c55cd56d
...
391c32b286
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
391c32b286 | ||
|
|
7d28a5d227 | ||
|
|
46e995053c | ||
|
|
80e0caa462 | ||
|
|
8b25820447 | ||
| bc9dfc098e | |||
| fd5e8f39da | |||
| 5eba1e82d2 | |||
| 7ca09caddd | |||
| 1577f066b2 | |||
| 1a5b256f23 | |||
| 4385000181 | |||
| 2cad286227 |
@@ -19,7 +19,10 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
|
|||||||
1
home.nix
1
home.nix
@@ -15,6 +15,7 @@
|
|||||||
./programs/direnv.nix
|
./programs/direnv.nix
|
||||||
./programs/firefox.nix
|
./programs/firefox.nix
|
||||||
./programs/tmux.nix
|
./programs/tmux.nix
|
||||||
|
./programs/vscode.nix
|
||||||
./wm/rofi.nix
|
./wm/rofi.nix
|
||||||
./wm/cursor.nix
|
./wm/cursor.nix
|
||||||
./wm/dconf.nix
|
./wm/dconf.nix
|
||||||
|
|||||||
12
programs/fastfetch/config.jsonc
Normal file
12
programs/fastfetch/config.jsonc
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json",
|
||||||
|
"modules": [
|
||||||
|
"os",
|
||||||
|
"uptime",
|
||||||
|
"cpu",
|
||||||
|
"gpu",
|
||||||
|
"memory",
|
||||||
|
"swap",
|
||||||
|
"disk",
|
||||||
|
]
|
||||||
|
}
|
||||||
25
programs/vscode.nix
Normal file
25
programs/vscode.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
package = pkgs.vscode.fhs;
|
||||||
|
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||||
|
ms-dotnettools.csharp
|
||||||
|
ms-dotnettools.csdevkit
|
||||||
|
ms-dotnettools.vscode-dotnet-runtime
|
||||||
|
mkhl.direnv # Direnv integration for VSCode
|
||||||
|
];
|
||||||
|
|
||||||
|
profiles.default.userSettings = {
|
||||||
|
"direnv.restart.automatic" = true;
|
||||||
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
||||||
|
"terminal.integrated.profiles.linux" = {
|
||||||
|
zsh = {
|
||||||
|
path = pkgs.zsh;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
home.file.".zsh/fastfetch.jsonc".source =
|
||||||
|
./fastfetch/config.jsonc;
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
@@ -9,8 +12,19 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
initContent = ''
|
initContent = ''
|
||||||
|
|
||||||
|
alias git-prune="git fetch -p && git branch -vv | grep ': gone]' | grep -v '*' | awk '{print \$1}' | xargs -r git branch -D"
|
||||||
|
|
||||||
# Use kitty's ssh helper if running inside kitty
|
# Use kitty's ssh helper if running inside kitty
|
||||||
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
||||||
|
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
# Run fastfetch
|
||||||
|
if command -v fastfetch >/dev/null 2>&1; then
|
||||||
|
fastfetch --logo none --config ~/.zsh/fastfetch.jsonc
|
||||||
|
fi
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
hyprshot
|
hyprshot
|
||||||
hyprlock
|
hyprlock
|
||||||
playerctl
|
playerctl
|
||||||
|
speedcrunch
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
@@ -30,8 +31,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
decoration = {
|
decoration = {
|
||||||
inactive_opacity = 0.8;
|
inactive_opacity = 0.9;
|
||||||
active_opacity = 0.9;
|
active_opacity = 1.0;
|
||||||
rounding = 5;
|
rounding = 5;
|
||||||
rounding_power = 2.5;
|
rounding_power = 2.5;
|
||||||
blur = {
|
blur = {
|
||||||
@@ -81,6 +82,9 @@
|
|||||||
"$mod, M, exit"
|
"$mod, M, exit"
|
||||||
"$mod, L, exec, hyprlock"
|
"$mod, L, exec, hyprlock"
|
||||||
|
|
||||||
|
# show/hide waybar
|
||||||
|
"$mod, W, exec, pkill -SIGUSR1 -f '^waybar$'"
|
||||||
|
|
||||||
# Focus
|
# Focus
|
||||||
"$mod, LEFT, movefocus, l"
|
"$mod, LEFT, movefocus, l"
|
||||||
"$mod, RIGHT, movefocus, r"
|
"$mod, RIGHT, movefocus, r"
|
||||||
@@ -124,6 +128,8 @@
|
|||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
", XF86AudioNext, exec, playerctl next"
|
", XF86AudioNext, exec, playerctl next"
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
|
|
||||||
|
", XF86Calculator, exec, speedcrunch"
|
||||||
];
|
];
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ in
|
|||||||
];
|
];
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
"DP-2,${wallpaper2}"
|
"DP-2,${wallpaper2}"
|
||||||
|
"HDMI-A-1,${wallpaper2}"
|
||||||
",${wallpaper}"
|
",${wallpaper}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"cpu"
|
"cpu"
|
||||||
"tray"
|
"tray"
|
||||||
|
"battery"
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -49,6 +50,10 @@
|
|||||||
ignored-players = [ "firefox" "vlc" ];
|
ignored-players = [ "firefox" "vlc" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tray = {
|
||||||
|
spacing = 10;
|
||||||
|
};
|
||||||
|
|
||||||
cpu = {
|
cpu = {
|
||||||
format = " {usage}%";
|
format = " {usage}%";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
@@ -62,6 +67,11 @@
|
|||||||
format = "{icon} {name}";
|
format = "{icon} {name}";
|
||||||
on-click = "activate";
|
on-click = "activate";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
"format" = "{icon} {capacity}%";
|
||||||
|
"format-icons" = ["" "" "" "" ""];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user