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
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
homeConfigurations = {
|
||||
|
||||
1
home.nix
1
home.nix
@@ -15,6 +15,7 @@
|
||||
./programs/direnv.nix
|
||||
./programs/firefox.nix
|
||||
./programs/tmux.nix
|
||||
./programs/vscode.nix
|
||||
./wm/rofi.nix
|
||||
./wm/cursor.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, ... }:
|
||||
|
||||
{
|
||||
home.file.".zsh/fastfetch.jsonc".source =
|
||||
./fastfetch/config.jsonc;
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
oh-my-zsh = {
|
||||
@@ -9,8 +12,19 @@
|
||||
};
|
||||
|
||||
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
|
||||
[ "$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
|
||||
hyprlock
|
||||
playerctl
|
||||
speedcrunch
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
@@ -30,8 +31,8 @@
|
||||
};
|
||||
|
||||
decoration = {
|
||||
inactive_opacity = 0.8;
|
||||
active_opacity = 0.9;
|
||||
inactive_opacity = 0.9;
|
||||
active_opacity = 1.0;
|
||||
rounding = 5;
|
||||
rounding_power = 2.5;
|
||||
blur = {
|
||||
@@ -81,6 +82,9 @@
|
||||
"$mod, M, exit"
|
||||
"$mod, L, exec, hyprlock"
|
||||
|
||||
# show/hide waybar
|
||||
"$mod, W, exec, pkill -SIGUSR1 -f '^waybar$'"
|
||||
|
||||
# Focus
|
||||
"$mod, LEFT, movefocus, l"
|
||||
"$mod, RIGHT, movefocus, r"
|
||||
@@ -124,6 +128,8 @@
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
", XF86AudioNext, exec, playerctl next"
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
|
||||
", XF86Calculator, exec, speedcrunch"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
|
||||
@@ -15,6 +15,7 @@ in
|
||||
];
|
||||
wallpaper = [
|
||||
"DP-2,${wallpaper2}"
|
||||
"HDMI-A-1,${wallpaper2}"
|
||||
",${wallpaper}"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
"pulseaudio"
|
||||
"cpu"
|
||||
"tray"
|
||||
"battery"
|
||||
"clock"
|
||||
];
|
||||
|
||||
@@ -49,6 +50,10 @@
|
||||
ignored-players = [ "firefox" "vlc" ];
|
||||
};
|
||||
|
||||
tray = {
|
||||
spacing = 10;
|
||||
};
|
||||
|
||||
cpu = {
|
||||
format = " {usage}%";
|
||||
tooltip = false;
|
||||
@@ -62,6 +67,11 @@
|
||||
format = "{icon} {name}";
|
||||
on-click = "activate";
|
||||
};
|
||||
|
||||
battery = {
|
||||
"format" = "{icon} {capacity}%";
|
||||
"format-icons" = ["" "" "" "" ""];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user