Skip to content

Commit

Permalink
Fix udiskie
Browse files Browse the repository at this point in the history
  • Loading branch information
hzmmohamed committed Dec 1, 2024
1 parent 8292aca commit 27ffcea
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 29 deletions.
58 changes: 33 additions & 25 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
- [ ] Migrate VSCodium declaration from HM to https://github.com/nix-community/nix-vscode-extensions
- [ ] Add the Copy Relative Path and Line Numbers extension to VSCode
- [ ] Add samba shares using plusultra samba module
- [x] Add wofi-emoji + keybinding
- [ ] Add bitwarden wofi interace
- [ ] Test decreasing value of accelSpeed
- [x] Set up Lens
- [ ] Replace flameshot with shotman or grim+slurp commands or swappy https://discourse.nixos.org/t/screenshots-on-hyprland-on-nixos/29055/6?u=hfahmi
- [ ] Set up GPG + Git commit signing like before
- [x] Configure dGPU
- [ ] Chromium settings to set:
- Use system borders
- No bookmarks bar
- no home button
- Font settings
- Theme (I don't use a theme but I could make it use the GTK or QT theme)
- [x] Make my basic shortcuts like mod+q work even in the arabic keyboard layout
- [ ] Tweak waybar ( Add Memory module, etc.)
- [ ] Add swaysr for feedback on changing volume or brightness
- [ ] Add GillSans
Expand All @@ -29,60 +24,73 @@
- [ ] Add preview to fzf widget commands + Change completion trigger https://www.youtube.com/watch?v=MvLQor1Ck3M
- Codium extensions:
fwcd.kotlin --> Install and configure paths for JDK and stuff or disable those features altogether and use the LSP only

- Add treefmt to dev env
- Build a good workflow with Thunderbird as my flow

- programs to add or master: broot, dysk, repgrep, backdown, monocle, bandwhich
- Firefox:
- Add zotero connector add-on
- Set "Ask download location"
- Add add-on Highlighter + Notes
- Fix KDE Connect connection issue

- activity watchers to add and configure:
- aw-watcher-utilization
- aw-watcher-netstatus (This might be useful in conjunction with vnstat data to determine how much of my personal internet quota is spent on work-related things.
- Explore potential uses for wrapper-manager from viperML
## Packages to try out
- lensfun
- timelens


- Add dua to UNIX utils
- Add systemd unit cron job that permanently deletes trashed files older than 30d
- Zellij UX:
- Make the distinction between the selected terminal and the others more pronounced!
- Resolve conflict between Zellij Ctrl+S and that of nano. Until I use a different text editor.
- Add packages: gh + gh-dash
- Comma + nix-index https://github.com/nix-community/nix-index-database?tab=readme-ov-file


- Fix this issue https://discourse.nixos.org/t/applications-not-finding-org-freedesktop-secrets/17667/3 which is also making AnyType crash on startup.
- Use Lutris
- Try wayshot
- NoiseTorch
- pasytray
- unixporn saves on reddit
- Persistent (across restarts) clipboard solution ( cliphist or clipmenu) (https://wiki.archlinux.org/title/clipboard) (https://mpov.timmorgan.org/super-simple-clipboard-history-for-linux/)

- Add QGIS workspace configuration to this config

- Create user profiles for CPU frequency energy and governer. Each core can be assigned a governer separately.

- Add DNS caching to network manager or by configuring systemd-resolvd with it.


- Configure Shell prompt to show the current kubectl context



- So I just did a cleaning session for my cache and trash directories and freed up 60 GBs after many months off working on this computer. The tools I frequently use that build up files are pnpm, yarn, trashy. Let's create a small command that runs these commands from anywhere. I say anywhere because for example to get pnpm in my shell I had to cd to a node project to run the command from there. Not the best approach. Works for now.
- Set up vscode with the other method that fetches extensions from the official repository

- User Vim keybindings again
- Emoji selector with wofi


- Add `cl` as alias for clear
- Configure birdtray or look into thunderbird's system tray feature in the latest version. Probably will need to get it from nix-unstable/nix-latest.




- Create one interface for both the asusctl profile and the cpu-power profile. Probably through a wofi selector and with a system-tray indicator
- Enable automatic-timezoned or localtimed
- Make the laptop log out of my account when it goes to sleep
- Configure birdtray or look into thunderbird's system tray feature in the latest version. Probably will need to get it from nix-unstable/nix-latest.



- Firefox:
- Add zotero connector add-on to config
- [x] Set "Ask download location"
- Add add-on Highlighter + Notes

- Add wifi-qr to config
- [x] Comma + nix-index https://github.com/nix-community/nix-index-database?tab=readme-ov-file

- [x] Make my basic shortcuts like mod+q work even in the arabic keyboard layout
- [x] Add dua to UNIX utils

- [x] Emoji selector with wofi

- [x] Add `cl` as alias for clear
- [x] Enable automatic-timezoned or localtimed
- [x] Make the laptop log out of my account when it goes to sleep


- Add auto-cpu freq
- Add udiskie again
- [x] Add auto-cpu freq
- [x] Add udiskie again
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down Expand Up @@ -114,6 +117,7 @@
homes.users.hfahmi.modules = with inputs; [
nix-colors.homeManagerModules.default
catppuccin.homeManagerModules.catppuccin
nix-index-database.hmModules.nix-index
];

# deploy = lib.mkDeploy {inherit (inputs) self;};
Expand Down
2 changes: 2 additions & 0 deletions modules/nixos/cli-apps/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ in {
o = "open";
lg = "lazygit";
kc = "kubectl";
cl = "clear";
yz = "yazi";
};
plugins = with pkgs.fishPlugins; [
{
Expand Down
1 change: 1 addition & 0 deletions modules/nixos/suites/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ in {
};

config = mkIf cfg.enable {
services.automatic-timezoned = enabled;
caramelmint = {
nix = enabled;

Expand Down
16 changes: 16 additions & 0 deletions modules/nixos/suites/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,23 @@ in {
config = mkIf cfg.enable {
services.flatpak.enable = true;
environment.systemPackages = with pkgs; [ appimage-run ];
services.logind.extraConfig = ''
HandlePowerKey=suspend
IdleAction=suspend
IdleActionSec=1m
'';

# screen locker
programs.xss-lock.enable = true;

# Necessary for udiskie
services.udisks2 = enabled;

caramelmint = {

home.extraOptions = {
services.udiskie = enabled;
};
desktop = {
sway = enabled;
addons = { xdg-portal = enabled; };
Expand Down
3 changes: 1 addition & 2 deletions modules/nixos/suites/media/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in {

config = mkIf cfg.enable {
caramelmint.home.extraOptions = {
# programs.mpv.enable = true;
programs.mpv.enable = true;

services.playerctld.enable = true;
# services.mpris-proxy.enable = true;
Expand All @@ -22,7 +22,6 @@ in {
ytfzf
ffmpeg_5
handbrake
freetube
playerctl
];
};
Expand Down
9 changes: 7 additions & 2 deletions modules/nixos/suites/office/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ in {
"browser.download.panel.shown" = true;
"identity.fxaccounts.enabled" = false;
"signon.rememberSignons" = false;
# This setting disables default configuration to download silently in to Downloads dir. A dialog is shown asking for the download location.
"browser.download.useDownloadDir" = false;
};

# userChrome = ''
Expand Down Expand Up @@ -176,11 +178,14 @@ in {
onedriver
glib-networking
pcmanfm
# lf should be moved to a module with an elaborate configuration

zathura
pdfgrep

# TODO: lf should be moved to a module with an elaborate configuration
lf
ktorrent
unstable.anytype
pdfgrep
spotify

fontfor
Expand Down
1 change: 1 addition & 0 deletions modules/nixos/suites/perf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ in {
};

config = mkIf cfg.enable {
services.auto-cpufreq = enabled;
environment.systemPackages = with pkgs; [
powertop

Expand Down
12 changes: 12 additions & 0 deletions modules/nixos/system/power/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,21 @@ in {
config = mkIf cfg.enable {
services = {
logind = {

powerKey = "ignore";
suspendKey = "ignore";
rebootKey = "ignore";
hibernateKey = "ignore";

powerKeyLongPress = "ignore";
suspendKeyLongPress = "ignore";
rebootKeyLongPress = "ignore";
hibernateKeyLongPress = "ignore";

lidSwitch = "suspend-then-hibernate";
lidSwitchDocked = "ignore";
lidSwitchExternalPower = "suspend-then-hibernate";

extraConfig = ''
# don’t shutdown when power button is short-pressed
HandlePowerKey=wlogout
Expand Down
3 changes: 3 additions & 0 deletions modules/nixos/tools/misc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ in {
config = mkIf cfg.enable {
caramelmint.home.configFile."wgetrc".text = "";
caramelmint.home.extraOptions = {

programs = {
nix-index-database.comma.enable = true;
# https://github.com/eth-p/bat-extras
btop.enable = true;
# TODO: Make a module that includes all my main terminal workflows configured
Expand Down Expand Up @@ -59,6 +61,7 @@ in {
fd
pv
du-dust
dua
gawk
strace
lurk # Rust alternative to strace
Expand Down

0 comments on commit 27ffcea

Please sign in to comment.