Further nixifying the shell
This commit is contained in:
parent
e6c2a77ad3
commit
06101a3e35
9 changed files with 86 additions and 25 deletions
12
flake.lock
generated
12
flake.lock
generated
|
|
@ -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": {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 =
|
||||||
|
|
|
||||||
8
users/lyes/home/shells/default.nix
Normal file
8
users/lyes/home/shells/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./fish.nix
|
||||||
|
./starship.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
29
users/lyes/home/shells/fish.nix
Normal file
29
users/lyes/home/shells/fish.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
9
users/lyes/home/shells/starship.nix
Normal file
9
users/lyes/home/shells/starship.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableInteractive = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue