This commit is contained in:
iofq 2024-08-10 02:17:24 -05:00
parent a897205c77
commit 0d9458d7cf
10 changed files with 112 additions and 110 deletions

View file

@ -1,5 +1,6 @@
{...}: {
imports = [
./shell
./nvim
];
}

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
neovim
nvim-pkg
];
}

View file

@ -10,6 +10,7 @@
home = {
packages = with pkgs; [
tree
eza
];
};
programs.bash = {
@ -21,11 +22,10 @@
"exit"
];
shellAliases = {
la = "ls -lahrt --color=auto";
la = "eza -lahrt";
ll = "la";
":q" = "exit";
mpv = "mpv --no-keepaspect-window";
sus = "systemctl suspend";
hms = "home-manager switch --flake $NIX_FLAKE#${host.username}";
rbs = "sudo nixos-rebuild switch --flake $NIX_FLAKE#${host.hostName}";
update = "nix flake update $NIX_FLAKE && rbs && hms";
@ -69,7 +69,7 @@
bind '"\C-k": previous-history'
bind '"\C-j": next-history'
function cd {
cmd="ls --color=auto"
cmd="eza"
builtin cd "$@" && $cmd
}
exists "kubectl" && source <(kubectl completion bash)

View file

@ -27,31 +27,46 @@ _: {
style = "Block";
unfocused_hollow = true;
};
# https://github.com/EdenEast/nightfox.nvim/blob/main/extra/terafox/alacritty.toml
colors = {
draw_bold_text_with_bright_colors = true;
primary = {
background = "#090410";
foreground = "#bababd";
background = "#152528";
foreground = "#e6eaea";
};
cursor = {
text = "#e6eaea";
cursor = "#cbd9d8";
};
normal = {
black = "#090410";
red = "#b02f30";
green = "#037538";
yellow = "#c59820";
blue = "#2e528c";
magenta = "#764783";
cyan = "#277c8a";
white = "#bababd";
black = "#2f3239";
red = "#e85c51";
green = "#7aa4a1";
yellow = "#fda47f";
blue = "#5a93aa";
magenta = "#ad5c7c";
cyan = "#a1cdd8";
white = "#ebebeb";
};
bright = {
black = "#95A5A6";
red = "#b02f30";
green = "#00853e";
yellow = "#c59820";
blue = "#2e528c";
magenta = "#764783";
cyan = "#277c8a";
white = "#ECF0F1";
black = "#4e5157";
red = "#eb746b";
green = "#8eb2af";
yellow = "#fdb292";
blue = "#73a3b7";
magenta = "#b97490";
cyan = "#afd4de";
white = "#eeeeee";
};
dim = {
black = "#282a30";
red = "#c54e45";
green = "#688b89";
yellow = "#d78b6c";
blue = "#4d7d90";
magenta = "#934e69";
cyan = "#89aeb8";
white = "#c8c8c8";
};
vi_mode_cursor = {
text = "CellBackground";

View file

@ -1,8 +1,11 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}: {
imports = [
./librewolf
./alacritty
./sway
./hyprland
./xdg
./audio
@ -14,6 +17,9 @@
gammastep
sway-contrib.grimshot
];
home.sessionVariables = {
MOZ_DBUS_REMOTE = 1;
};
programs.bemenu = {
enable = true;
settings = {
@ -22,4 +28,36 @@
prompt = "open";
};
};
services.gammastep = {
enable = true;
dawnTime = "6:00-8:00";
duskTime = "20:00-22:00";
latitude = 43.0;
longitude = -89.0;
temperature.day = 6000;
temperature.night = 3500;
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
color = "#152528";
daemonize = true;
clock = true;
ignore-empty-password = true;
};
};
services.swayidle = {
enable = true;
events = [
{
event = "before-sleep";
command = "${config.programs.swaylock.package}/bin/swaylock";
}
{
event = "lock";
command = "${config.programs.swaylock.package}/bin/swaylock";
}
];
};
}

View file

@ -33,7 +33,7 @@
];
};
master = {
new_is_master = "no";
new_status = "slave";
no_gaps_when_only = 1;
};
input = {
@ -113,7 +113,7 @@
10)
);
windowrulev2 = [
"workspace 9, class:^(WebCord|webcord|Webcord)$"
"workspace 9, class:^(Discord|discord)$"
"workspace 9, class:^(Signal|signal)$"
"tile, class:^(Minecraft|minecraft)$"
"opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$"
@ -124,6 +124,15 @@
];
};
};
services.hyprpaper = {
enable = true;
settings = {
preload = ["/home/pape"];
wallpaper = ",/home/pape";
ipc = "off";
splash = false;
};
};
programs.waybar = {
enable = true;
systemd.enable = true;
@ -200,7 +209,7 @@
}
window#waybar {
background: #090410;
background: #152528;
color: #bababd;
}
@ -215,7 +224,7 @@
margin: 2px;
padding-left: 8px;
padding-right: 8px;
background-color: #090410;
background-color: #152528;
}
button {
@ -230,12 +239,12 @@
#workspaces button {
padding: 0 4px;
background-color: #090410;
background-color: #152528;
color: #666666;
}
#workspaces button.active {
background-color: #090410;
background-color: #152528;
color:#bababd;
border-top: 2px solid #bababd;
}
@ -254,7 +263,7 @@
#tray
{
padding: 2px;
background-color: #090410;
background-color: #152528;
border-top: 2px solid #666666;
color: #bababd;
}
@ -287,7 +296,7 @@
}
label:focus {
background-color: #090410;
background-color: #152528;
}
#temperature.critical {

View file

@ -10,7 +10,6 @@
home.sessionVariables = {
# needed for Sway and Firefox to play nice
XDG_CURRENT_DESKTOP = "sway";
MOZ_DBUS_REMOTE = 1;
};
systemd.user.services.autotiling = {
Install = {
@ -23,15 +22,6 @@
RestartSec = 5;
};
};
services.gammastep = {
enable = true;
dawnTime = "6:00-8:00";
duskTime = "20:00-22:00";
latitude = 43.0;
longitude = -89.0;
temperature.day = 6000;
temperature.night = 3500;
};
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
@ -199,64 +189,4 @@
};
};
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
color = "#764783";
daemonize = true;
clock = true;
ignore-empty-password = true;
};
};
services.swayidle = {
enable = true;
events = [
{
event = "before-sleep";
command = "${config.programs.swaylock.package}/bin/swaylock";
}
{
event = "lock";
command = "${config.programs.swaylock.package}/bin/swaylock";
}
];
};
services.kanshi = {
enable = true;
profiles = {
nodock = {
outputs = [
{
criteria = "eDP-1";
}
];
};
dock = {
outputs = [
{
criteria = "HDMI-A-1";
status = "enable";
mode = "1920x1080@60Hz";
position = "0,0";
}
];
};
bothdock = {
outputs = [
{
criteria = "eDP-1";
status = "enable";
position = "0,1080";
}
{
criteria = "HDMI-A-1";
status = "enable";
mode = "1920x1080@60Hz";
position = "0,0";
}
];
};
};
};
}