refactor: split env vars by profile, move compositor modules out of base
This commit is contained in:
@@ -1,12 +1,9 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.username = "ayman";
|
home.username = "ayman";
|
||||||
home.homeDirectory = "/home/ayman";
|
home.homeDirectory = "/home/ayman";
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/theme.nix
|
./modules/theme.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
@@ -14,7 +11,6 @@
|
|||||||
./modules/git.nix
|
./modules/git.nix
|
||||||
./modules/env.nix
|
./modules/env.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
|
|||||||
+6
-24
@@ -1,31 +1,13 @@
|
|||||||
{ ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"$HOME/.local/bin"
|
"$HOME/.local/bin"
|
||||||
"$HOME/.config/emacs/bin"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
# Terminal
|
EDITOR = lib.mkDefault "nvim";
|
||||||
TERMINAL = "kitty";
|
VISUAL = lib.mkDefault "nvim";
|
||||||
|
SUDO_EDITOR = "nvim";
|
||||||
# Wayland
|
PAGER = "bat --color auto";
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
MANPAGER = "bat -plman";
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
|
||||||
GDK_BACKEND = "wayland";
|
|
||||||
SDL_VIDEODRIVER = "wayland";
|
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
||||||
|
|
||||||
# Editor
|
|
||||||
EDITOR = "emacsclient -c -a nvim";
|
|
||||||
VISUAL = "emacsclient -c -a nvim";
|
|
||||||
SUDO_EDITOR = "nvim";
|
|
||||||
|
|
||||||
# Pager
|
|
||||||
PAGER = "bat --color auto";
|
|
||||||
MANPAGER = "bat -plman";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,22 @@
|
|||||||
../modules/niri.nix
|
../modules/niri.nix
|
||||||
../modules/dms.nix
|
../modules/dms.nix
|
||||||
];
|
];
|
||||||
|
home.sessionPath = [
|
||||||
|
"$HOME/.config/emacs/bin"
|
||||||
|
];
|
||||||
|
systemd.user.sessionVariables = {
|
||||||
|
TERMINAL = "kitty";
|
||||||
|
EDITOR = "emacsclient -c -a nvim";
|
||||||
|
VISUAL = "emacsclient -c -a nvim";
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
QT_QPA_PLATFORM = "wayland";
|
||||||
|
GDK_BACKEND = "wayland";
|
||||||
|
SDL_VIDEODRIVER = "wayland";
|
||||||
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
#desktop specific
|
# add desktop-specific packages here
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../modules/kitty.nix
|
../modules/kitty.nix
|
||||||
@@ -8,6 +7,21 @@
|
|||||||
../modules/niri.nix
|
../modules/niri.nix
|
||||||
../modules/dms.nix
|
../modules/dms.nix
|
||||||
];
|
];
|
||||||
|
home.sessionPath = [
|
||||||
|
"$HOME/.config/emacs/bin"
|
||||||
|
];
|
||||||
|
systemd.user.sessionVariables = {
|
||||||
|
TERMINAL = "kitty";
|
||||||
|
EDITOR = "emacsclient -c -a nvim";
|
||||||
|
VISUAL = "emacsclient -c -a nvim";
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
QT_QPA_PLATFORM = "wayland";
|
||||||
|
GDK_BACKEND = "wayland";
|
||||||
|
SDL_VIDEODRIVER = "wayland";
|
||||||
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
powertop
|
powertop
|
||||||
acpi
|
acpi
|
||||||
|
|||||||
Reference in New Issue
Block a user