Further nixifying the shell

This commit is contained in:
Lyes Saadi 2025-08-14 18:45:01 +02:00
parent e6c2a77ad3
commit 06101a3e35
Signed by: lyes
GPG key ID: 55A1D803917CF39A
9 changed files with 86 additions and 25 deletions

12
flake.lock generated
View file

@ -93,11 +93,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1754842705, "lastModified": 1754924470,
"narHash": "sha256-2vvncPLsBWV6dRM5LfGHMGYZ+vzqRDqSPBzxPAS0R/A=", "narHash": "sha256-asI/or9AcUMydwzodCgpHGytnMSNUlciw3uaycpXm4E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "91586008a23c01cc32894ee187dca8c0a7bd20a4", "rev": "67393957c27b4e4c6c48a60108a201413ced7800",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -258,11 +258,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1754857314, "lastModified": 1754887481,
"narHash": "sha256-taPsifiPMop6kydjYJEge3JmIzf/cRHL12NRrMOJQ6E=", "narHash": "sha256-tVUL4zteseaPi1E9pymhJGYgnJZjGzHLzBUnP1CQbcU=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "31c82886eda8ba3ea7f97db91ced74f5bf741c12", "rev": "72e1881d340fec7e418207ac292118179c89eea6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -36,5 +36,5 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment? system.stateVersion = "22.11"; # Did you read the comment?
home-manager.users.lyes.home.stateVersion = config.system.stateVersion; # home-manager.users.lyes.home.stateVersion = config.system.stateVersion;
} }

View file

@ -2,8 +2,8 @@
{ {
# Time # Time
# time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
time.timeZone = "Africa/Tunis"; # time.timeZone = "Africa/Tunis";
# Locale # Locale
i18n.defaultLocale = "fr_FR.UTF-8"; i18n.defaultLocale = "fr_FR.UTF-8";

View file

@ -1,18 +1,7 @@
{ pkgs, lib, ... }: { lib, ... }:
with lib.hm.gvariant; with lib.hm.gvariant;
let
extensions = with pkgs.gnomeExtensions; [
appindicator
dash-to-panel
caffeine
blur-my-shell
vitals
gsconnect
weather-oclock
];
in
{ {
dconf.settings = { dconf.settings = {
# Gnome Settings # Gnome Settings
@ -86,8 +75,16 @@ in
## Shell & Extensions ## Shell & Extensions
"org/gnome/shell" = { "org/gnome/shell" = {
disable-user-extensions = false; disable-user-extensions = false;
enabled-extensions = map (x: x.extensionUuid) extensions; favorite-apps =
favorite-apps = [ "zen-beta.desktop" "thunderbird.desktop" "vesktop.desktop" "element-desktop.desktop" "org.signal.Signal.desktop" "com.github.xeco23.WasIstLos.desktop" "org.gnome.Nautilus.desktop" ]; [
"zen-beta.desktop"
"thunderbird.desktop"
"vesktop.desktop"
"element-desktop.desktop"
"org.signal.Signal.desktop"
"org.gnome.Nautilus.desktop"
"org.gnome.Console.desktop"
];
last-selected-power-profile = "power-saver"; last-selected-power-profile = "power-saver";
remember-mount-password = true; remember-mount-password = true;
}; };

View file

@ -1,4 +1,4 @@
{ home-manager, ... }: { home-manager, config, ... }:
{ {
imports = imports =
@ -13,12 +13,13 @@
imports = imports =
[ [
./editors ./editors
./shells
./home.nix ./home.nix
]; ];
home.username = "lyes"; home.username = "lyes";
home.homeDirectory = "/home/lyes"; home.homeDirectory = "/home/lyes";
home.stateVersion = "22.11"; home.stateVersion = config.system.stateVersion;
}; };
} }

View file

@ -22,6 +22,23 @@
}; };
}; };
# Eza config
programs.eza = {
enable = true;
git = true;
icons = "always";
colors = "always";
enableFishIntegration = true;
};
# Bat config
programs.bat = {
enable = true;
config = {
theme = "gruvbox-dark";
};
};
# Protonup config # Protonup config
home.sessionVariables = { home.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = STEAM_EXTRA_COMPAT_TOOLS_PATHS =

View file

@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./fish.nix
./starship.nix
];
}

View file

@ -0,0 +1,29 @@
{ pkgs, ... }:
{
programs.fish = {
enable = true;
generateCompletions = true;
plugins =
[
{
name = "fishbang";
src = pkgs.fetchFromGitHub {
name = "fishbang";
owner = "BrewingWeasel";
repo = "fishbang";
rev = "master";
sha256 = "sha256-VHtjt3Xobvs0DTXJ1mFU8i84EEsNQv3yqbhjs7c1mNE=";
};
}
];
shellAliases = {
ls = "eza";
cat = "bat";
grep = "rg";
};
};
}

View file

@ -0,0 +1,9 @@
{ ... }:
{
programs.starship = {
enable = true;
enableInteractive = true;
enableFishIntegration = true;
};
}