Skip to content

Commit 59ae3d5

Browse files
committed
update laptop configuration
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
1 parent 72e4be8 commit 59ae3d5

50 files changed

Lines changed: 469 additions & 999 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

flake.lock

Lines changed: 147 additions & 532 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

home/programs/anyrun/default.nix

Lines changed: 0 additions & 87 deletions
This file was deleted.

home/programs/discord/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Discord is a popular chat application.
2-
{ inputs, ... }: {
3-
imports = [ inputs.nixcord.homeModules.nixcord ];
2+
{inputs, ...}: {
3+
imports = [inputs.nixcord.homeModules.nixcord];
44

55
programs.nixcord = {
66
enable = true;
7-
config = { frameless = true; };
7+
config = {frameless = true;};
88
};
99
}

home/programs/duckduckgo-colorscheme/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# A duckduckgo colorscheme generated for the Stylix theme used.
2-
{ config, ... }:
3-
let
2+
{config, ...}: let
43
accent = config.lib.stylix.colors.base0D;
54
background = config.lib.stylix.colors.base00;
65
foreground = config.lib.stylix.colors.base05;

home/programs/fetch/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
{ imports = [ ./neofetch ./nerdfetch ]; }
1+
# Import all fetch scripts
2+
{imports = [./neofetch ./nerdfetch];}

home/programs/fetch/neofetch/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Legacy
2-
{ pkgs, ... }: {
3-
home.packages = with pkgs; [ neofetch ];
2+
{pkgs, ...}: {
3+
home.packages = with pkgs; [neofetch];
44

55
xdg.configFile."neofetch/ascii.txt".text = ''
66
''${c6}
@@ -28,7 +28,7 @@
2828

2929
xdg.configFile."neofetch/config.conf".text = ''
3030
# From: https://github.com/Chick2D/neofetch-themes/
31-
# Made by https://github.com/Dan1jel
31+
# Made by https://github.com/Dan1jel
3232
3333
print_info() {
3434
prin "\n"

home/programs/fetch/nerdfetch/default.nix

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Nerdfetch, a simple system info script written in bash
22
# Source: https://github.com/ThatOneCalculator/NerdFetch
3-
{ pkgs, ... }:
4-
let
3+
{pkgs, ...}: let
54
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
65
ostype="$(uname)"
76
@@ -197,9 +196,7 @@ let
197196
flatpak) packages="$(flatpak list --app | wc -l)" ;;
198197
brew) packages="$(printf '%s\n' "$(brew --cellar)/"* | wc -l)" ;;
199198
port) packages="$(port installed | wc -l)" ;;
200-
dpkg-query) packages="$(dpkg-query -f '${
201-
"binary:Package"
202-
}\n' -W | wc -l)" ;;
199+
dpkg-query) packages="$(dpkg-query -f '${"binary:Package"}\n' -W | wc -l)" ;;
203200
rpm) packages="$(rpm -qa --last | wc -l)" ;;
204201
yum) packages="$(yum list installed | wc -l)" ;;
205202
dnf) packages="$(dnf list installed | wc -l)" ;;
@@ -358,7 +355,7 @@ let
358355
## OUTPUT
359356
360357
echo """
361-
''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset}
358+
''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset}
362359
''${c0} (''${c1}.. ''${c0}\ ''${lc}''${osi} ''${ic}''${os}''${reset}
363360
''${c0} (''${c2}<> ''${c0}| ''${lc}''${ki} ''${ic}''${kernel}''${reset}
364361
''${c0} /''${c1}/ \\ ''${c0}\\ ''${lc}''${ri} ''${ic}''${RAM}''${memstat} ''${mempercent}
@@ -367,5 +364,4 @@ let
367364
''${c2} \/''${c0}-____''${c2}\/''${reset} ''${lc}''${ci} ''${red}███''${green}███''${yellow}███''${blue}███''${magenta}███''${cyan}███''${reset}
368365
"""
369366
'';
370-
371-
in { home.packages = [ nerdfetch ]; }
367+
in {home.packages = [nerdfetch];}

home/programs/git/default.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Git configuration
2-
{ config, ... }:
3-
let
2+
{config, ...}: let
43
username = config.var.git.username;
54
email = config.var.git.email;
65
in {
@@ -50,8 +49,7 @@ in {
5049
log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
5150
llog = ''
5251
log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
53-
edit-unmerged =
54-
"!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
52+
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
5553
};
5654
};
5755
}

home/programs/git/signing.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
_: {
2-
home.file.".ssh/allowed_signers".text =
3-
"* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
1+
# This file is used to sign git commits using an SSH key.
2+
{
3+
# Obviously, change this to your own SSH key.
4+
home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
5+
46
programs.git.extraConfig = {
57
commit.gpgsign = true;
68
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";

home/programs/lazygit/default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Lazygit is a simple terminal UI for git commands.
2-
{ config, lib, ... }:
3-
let
2+
{
3+
config,
4+
lib,
5+
...
6+
}: let
47
accent = "#${config.lib.stylix.colors.base0D}";
58
muted = "#${config.lib.stylix.colors.base03}";
69
in {
@@ -17,8 +20,8 @@ in {
1720
};
1821
gui = {
1922
theme = {
20-
activeBorderColor = [ accent "bold" ];
21-
inactiveBorderColor = [ muted ];
23+
activeBorderColor = [accent "bold"];
24+
inactiveBorderColor = [muted];
2225
};
2326
showListFooter = false;
2427
showRandomTip = false;

0 commit comments

Comments
 (0)