Skip to content

Commit

Permalink
Add comments to explain each file
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherhadi committed Oct 15, 2024
1 parent 4733414 commit 915a767
Show file tree
Hide file tree
Showing 32 changed files with 48 additions and 26 deletions.
2 changes: 0 additions & 2 deletions home/programs/lazygit/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{ config, lib, ... }:
let
transparentButtons = config.var.theme.bar.transparentButtons;

accent = "#${config.lib.stylix.colors.base0D}";
muted = "#${config.lib.stylix.colors.base03}";
in {
Expand Down
5 changes: 4 additions & 1 deletion home/programs/markdown/default.nix
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{ pkgs, ... }: { home.packages = with pkgs; [ wkhtmltopdf ]; }
# Work in progress on another repo
{ pkgs, ... }: {
home.packages = with pkgs; [ wkhtmltopdf ];
}
11 changes: 6 additions & 5 deletions home/programs/nextcloud/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Nextcloud is a suite of client-server software for creating file hosting services and using them. It is functionally similar to Dropbox, although Nextcloud is free and open-source, allowing anyone to install and operate it on a private server. In contrast to proprietary services, Nextcloud can be hosted on a private server, without additional cost.
{
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
}
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
}
1 change: 1 addition & 0 deletions home/programs/nvim/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Nixvim is a NixOS module that installs and configures Neovim
{ inputs, ... }: {
imports = [
inputs.nixvim.homeManagerModules.nixvim
Expand Down
1 change: 0 additions & 1 deletion home/programs/nvim/options.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

programs.nixvim.globals.mapleader = " ";
programs.nixvim.opts = {
updatetime = 50; # Faster completion
Expand Down
2 changes: 2 additions & 0 deletions home/programs/qutebrowser/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Qutebrowser is a keyboard-focused browser with a minimal GUI.
# My homepage is generated using https://github.com/anotherhadi/homepage
{ pkgs, config, ... }:
let

Expand Down
1 change: 1 addition & 0 deletions home/programs/qutebrowser/duckduckgo-colorscheme.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# A duckduckgo colorscheme generated for the Stylix theme used.
{ config, ... }:
let
accent = config.lib.stylix.colors.base0D;
Expand Down
1 change: 1 addition & 0 deletions home/programs/shell/eza.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Eza is a ls replacement
{
programs.eza = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/programs/shell/fzf.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Fzf is a general-purpose command-line fuzzy finder.
{ config, lib, ... }:
let
accent = "#" + config.lib.stylix.colors.base0D;
Expand Down
1 change: 1 addition & 0 deletions home/programs/shell/starship.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# starship is a minimal, fast, and extremely customizable prompt for any shell!
{ config, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
Expand Down
1 change: 1 addition & 0 deletions home/programs/shell/tmux.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Tmux is a terminal multiplexer that allows you to run multiple terminal sessions in a single window.
{ pkgs, ... }: {
programs.tmux = {
enable = true;
Expand Down
5 changes: 3 additions & 2 deletions home/programs/shell/zoxide.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Zoxide is a cd replacement
{
programs.zoxide = {
enable= true;
enableZshIntegration = true;
enable = true;
enableZshIntegration = true;
};
}
1 change: 1 addition & 0 deletions home/programs/shell/zsh.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# My shell configuration
{ pkgs, lib, config, ... }:
let fetch = config.var.theme.fetch; # neofetch, nerdfetch, pfetch
in {
Expand Down
13 changes: 9 additions & 4 deletions home/programs/spicetify/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Spicetify is a spotify client customizer
{ pkgs, config, lib, inputs, ... }:
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
accent = "#${config.lib.stylix.colors.base0D}";
accent = "${config.lib.stylix.colors.base0D}";
in {

imports = [ inputs.spicetify-nix.homeManagerModules.default ];

nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "spotify" ];

stylix.targets.spicetify.enable = false;

programs.spicetify = {
enable = true;
theme = lib.mkForce spicePkgs.themes.text;

# TODO: Colors not working
customColorScheme = lib.mkForce {
colorScheme = "custom";

customColorScheme = {
button = accent;
button-active = accent;
tab-active = accent;
Expand Down
1 change: 1 addition & 0 deletions home/programs/thunar/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Thunar is a file explorer
{ pkgs, ... }: {
# ctrl + m to toggle the menubar
home.packages = with pkgs.xfce; [
Expand Down
1 change: 1 addition & 0 deletions home/programs/yazi/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Yazi is a TUI file explorer
{
programs.yazi = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/system/batsignal/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Batsignal is a simple utility to send battery notifications.
{
services.batsignal = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/system/clipman/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Clipman allows you to save and retrieve clipboard history.
{ pkgs, ... }:
let
clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" ''
Expand Down
1 change: 1 addition & 0 deletions home/system/gtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# GTK & QT theme configuration
{ config, pkgs, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
Expand Down
1 change: 1 addition & 0 deletions home/system/hypridle/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Hypridle is a daemon that listens for user activity and runs commands when the user is idle.
{ pkgs, ... }: {
services.hypridle = {
enable = true;
Expand Down
2 changes: 1 addition & 1 deletion home/system/hyprland/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# So best window tiling manager
{ pkgs, config, inputs, ... }:

let
border-size = config.var.theme.border-size;
gaps-in = config.var.theme.gaps-in;
Expand Down
1 change: 1 addition & 0 deletions home/system/hyprlock/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Hyprlock is a lockscreen for Hyprland
{ config, ... }:
let
foreground = "rgba(216, 222, 233, 0.70)";
Expand Down
2 changes: 2 additions & 0 deletions home/system/hyprpanel/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Hyprpanel is the bar on top of the screen
# Display informations like workspaces, battery, wifi, ...
{ pkgs, config, ... }:
let
transparentButtons = config.var.theme.bar.transparentButtons;
Expand Down
1 change: 1 addition & 0 deletions home/system/hyprpaper/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Hyprpaper is used to set the wallpaper on the system
{
# The wallpaper is set by stylix
services.hyprpaper = {
Expand Down
8 changes: 0 additions & 8 deletions home/system/hyprswitch/default.nix

This file was deleted.

1 change: 1 addition & 0 deletions home/system/kdeconnect/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# KDE Connect is a project that enables all your devices to communicate with each other. (laptop/phone)
{
services.kdeconnect = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/system/mime/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Mime allows us to configure the default applications for each file type
{
xdg.mimeApps = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/system/tofi/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Tofi is a dmeny-like application launcher
# TODO: Tofi configuration
{ config, lib, ... }:
let
Expand Down
1 change: 1 addition & 0 deletions home/system/udiskie/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Udiskie is a simple daemon that uses udisks to automatically mount removable storage devices.
{
services.udiskie = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/system/wofi/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Wofi is a launcher for Wayland, inspired by rofi.
{ config, pkgs, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
Expand Down
2 changes: 1 addition & 1 deletion home/system/zathura/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PDF viewer
# Zathura is a PDF viewer
{
programs.zathura = {
enable = true;
Expand Down
1 change: 0 additions & 1 deletion hosts/laptop/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
../../home/system/hyprlock
../../home/system/hyprpanel
../../home/system/hyprpaper
# ../../home/system/hyprswitch
../../home/system/gtk
../../home/system/wofi
../../home/system/batsignal
Expand Down

0 comments on commit 915a767

Please sign in to comment.