split out pkg installs to respective files

This commit is contained in:
Noa Aarts 2024-03-01 13:46:10 +01:00
parent 10dfbc3234
commit 89dc32e96a
8 changed files with 155 additions and 202 deletions

View file

@ -1,7 +1,9 @@
{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
git
];
programs.git = {
enable = true;
userName = "Noa Aarts";

View file

@ -1,6 +1,19 @@
{ config, pkgs, inputs, ... }:
{
# these are necessary for the config to function correctly
imports = [
./kitty.nix
./waybar.nix
./wofi.nix
];
home.packages = with pkgs; [
hyprland
# I always want these with hyprland anyways
dunst
wl-clipboard
];
wayland.windowManager.hyprland = {
enable = true;
settings = {

14
common/kitty.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
kitty
];
programs.kitty = {
enable = true;
settings = {
confirm_os_window_close = 0;
};
shellIntegration.enableZshIntegration = true;
};
}

View file

@ -1,6 +1,9 @@
{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
waybar
];
programs.waybar = {
enable = true;
settings = {

View file

@ -1,6 +1,44 @@
{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
(writeShellScriptBin "wofi-launch" ''
${wofi}/bin/wofi --show drun
'')
(writeShellScriptBin "wofi-power" ''
lock="Lock"
logout="Logout"
poweroff="Poweroff"
reboot="Reboot"
sleep="Suspend"
selected_option=$(echo -e "$lock\n$logout\n$sleep\n$reboot\n$poweroff" | wofi --dmenu -i -p "Powermenu")
if [ "$selected_option" == "$lock" ]
then
echo "lock"
swaylock
elif [ "$selected_option" == "$logout" ]
then
echo "logout"
loginctl terminate-user `whoami`
elif [ "$selected_option" == "$poweroff" ]
then
echo "poweroff"
poweroff
elif [ "$selected_option" == "$reboot" ]
then
echo "reboot"
reboot
elif [ "$selected_option" == "$sleep" ]
then
echo "sleep"
suspend
else
echo "No match"
fi
'')
];
programs.wofi = {
enable = true;
settings = {

View file

@ -1,6 +1,9 @@
{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
zsh
];
programs.zsh = {
enable=true;
shellAliases = {
@ -21,12 +24,4 @@
};
};
programs.kitty = {
enable = true;
settings = {
confirm_os_window_close = 0;
};
shellIntegration.enableZshIntegration = true;
};
}