feat: various updates including nixspect removal, new aliases, and browser config

This commit is contained in:
Mohammad Rafiq 2025-06-30 05:54:14 +08:00
parent af6a3b6f2c
commit d0738a9c1e
No known key found for this signature in database
11 changed files with 8 additions and 50 deletions

21
flake.lock generated
View file

@ -770,26 +770,6 @@
"type": "github" "type": "github"
} }
}, },
"nixspect": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1747725629,
"narHash": "sha256-jEdIW5+SMfX6jVvx/MkMbpXLX9S2b+zsayIC1YJNAaY=",
"owner": "rrvsh",
"repo": "nixspect",
"rev": "28deacc6adeaef69f45af5c8139961a774e1600b",
"type": "github"
},
"original": {
"owner": "rrvsh",
"repo": "nixspect",
"type": "github"
}
},
"nur": { "nur": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": [
@ -912,7 +892,6 @@
"nil": "nil", "nil": "nil",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixspect": "nixspect",
"nur": "nur", "nur": "nur",
"nvf": "nvf", "nvf": "nvf",
"python-flexseal": "python-flexseal", "python-flexseal": "python-flexseal",

View file

@ -22,8 +22,6 @@
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database.url = "github:nix-community/nix-index-database"; nix-index-database.url = "github:nix-community/nix-index-database";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixspect.inputs.nixpkgs.follows = "nixpkgs";
nixspect.url = "github:rrvsh/nixspect";
nur.inputs.flake-parts.follows = "flake-parts"; nur.inputs.flake-parts.follows = "flake-parts";
nur.inputs.nixpkgs.follows = "nixpkgs"; nur.inputs.nixpkgs.follows = "nixpkgs";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";

View file

@ -42,6 +42,7 @@
tab_truncate_start_format "..." tab_truncate_start_format "..."
tab_truncate_end_format "..." tab_truncate_end_format "..."
//TODO: disable if we are not on ssh
datetime "#[fg=#6C7086,bold] {format}" datetime "#[fg=#6C7086,bold] {format}"
datetime_format "%H:%M:%S" datetime_format "%H:%M:%S"
datetime_timezone "Asia/Singapore" datetime_timezone "Asia/Singapore"

View file

@ -6,6 +6,7 @@
gcam = "git commit -am"; gcam = "git commit -am";
gu = "git push"; gu = "git push";
gy = "git pull"; gy = "git pull";
gdh = "git diff HEAD";
}; };
programs.git = { programs.git = {
enable = true; enable = true;

View file

@ -2,7 +2,6 @@
{ {
programs = { programs = {
nh.enable = true; nh.enable = true;
pay-respects.enable = true;
tealdeer = { tealdeer = {
enable = true; enable = true;
enableAutoUpdates = true; enableAutoUpdates = true;
@ -16,12 +15,10 @@
nix-index.enable = true; nix-index.enable = true;
nix-index-database.comma.enable = true; nix-index-database.comma.enable = true;
}; };
persistDirs = [ persistDirs = [ ".local/share/zoxide" ];
".local/share/zoxide"
];
home = { home = {
shellAliases = { shellAliases = {
windows = "systemctl reboot --boot-loader-entry=auto-windows"; windows = "sudo systemctl reboot --boot-loader-entry=auto-windows";
v = "nvim"; v = "nvim";
e = "edit"; e = "edit";
cd = "z"; cd = "z";
@ -35,8 +32,6 @@
pantheon.deploy pantheon.deploy
pantheon.edit pantheon.edit
pantheon.commit pantheon.commit
pantheon.check
inputs.nixspect.packages."x86_64-linux".nixspect
]; ];
}; };

View file

@ -22,6 +22,7 @@ let
profileCfg = id: { profileCfg = id: {
inherit id; inherit id;
settings."extensions.autoDisableScopes" = 0; # Auto enable extensions settings."extensions.autoDisableScopes" = 0; # Auto enable extensions
#TODO: add default seach unduck and add rest of extensions
extensions = { extensions = {
force = true; force = true;
packages = with firefox-addons; [ packages = with firefox-addons; [

View file

@ -5,6 +5,7 @@
programs.waybar = { programs.waybar = {
settings = [ settings = [
{ {
#TODO: review the rest of the modules to see what else can be added
layer = "top"; layer = "top";
modules-left = [ modules-left = [
"pulseaudio" "pulseaudio"

View file

@ -1,4 +1,5 @@
{ {
home.sessionVariables.TERMINAL = "ghostty -e"; home.sessionVariables.TERMINAL = "ghostty -e";
#TODO: fix image preview
programs.ghostty.settings.confirm-close-surface = false; programs.ghostty.settings.confirm-close-surface = false;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before After
Before After

View file

@ -8,4 +8,5 @@
wayland.windowManager.hyprland.settings = import ./_hyprland/settings.nix { wayland.windowManager.hyprland.settings = import ./_hyprland/settings.nix {
inherit pkgs osConfig lib; inherit pkgs osConfig lib;
}; };
# TODO: add gamescope here or in nixos desktop module
} }

View file

@ -1,20 +0,0 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "check" # bash
''
check_nginx() {
ssh apollo systemctl show nginx | grep '^ExecStart=' | grep -oP ' -c \K[^ ]+' | xargs cat
}
while [[ $# -gt 0 ]]; do
case "$1" in
nginx)
check_nginx
exit 0
;;
*)
echo "Unrecognised parameter."
exit 1
;;
esac
done
''