HASH 045fb8c96953
DATE 2025-02-11
SUBJECT console: enable bash module
FILES 2 CHANGED
HASH 045fb8c96953
DATE 2025-02-11
SUBJECT console: enable bash module
FILES 2 CHANGED
┌─ modules/home/console/shell/bash/default.nix ──────────────────────────────┐
│ diff --git a/modules/home/console/shell/bash/default.nix b/modules/home/console/sh │
│ ell/bash/default.nix │
│ index 150d48b..5ef37a5 100644 │
│ --- a/modules/home/console/shell/bash/default.nix │
│ +++ b/modules/home/console/shell/bash/default.nix │
│ @@ -1,13 +1,3 @@ │
│ { │
│ - lib, │
│ - osConfig, │
│ - ... │
│ -}: let │
│ - inherit (lib) mkIf; │
│ - inherit (osConfig.ooknet.host) admin; │
│ - cfg = osConfig.ooknet.console.shell.bash; │
│ -in { │
│ - config = mkIf (cfg.enable || admin.shell == "bash") { │
│ - programs.bash.enable = true; │
│ - }; │
│ + programs.bash.enable = true; │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...onsole/shell/bash/default.nix ───┐
│ diff --git a/modules/home/console/shell/bash │
│ /default.nix b/modules/home/console/shell/ba │
│ sh/default.nix │
│ index 150d48b..5ef37a5 100644 │
│ --- a/modules/home/console/shell/bash/defaul │
│ t.nix │
│ +++ b/modules/home/console/shell/bash/defaul │
│ t.nix │
│ @@ -1,13 +1,3 @@ │
│ { │
│ - lib, │
│ - osConfig, │
│ - ... │
│ -}: let │
│ - inherit (lib) mkIf; │
│ - inherit (osConfig.ooknet.host) admin; │
│ - cfg = osConfig.ooknet.console.shell.bash; │
│ -in { │
│ - config = mkIf (cfg.enable || admin.shell │
│ == "bash") { │
│ - programs.bash.enable = true; │
│ - }; │
│ + programs.bash.enable = true; │
│ } │
└──────────────────────────────────────────────┘
┌─ modules/home/workstation/hyprland/default.nix ────────────────────────────┐
│ diff --git a/modules/home/workstation/hyprland/default.nix b/modules/home/workstat │
│ ion/hyprland/default.nix │
│ index ae350b1..2253947 100644 │
│ --- a/modules/home/workstation/hyprland/default.nix │
│ +++ b/modules/home/workstation/hyprland/default.nix │
│ @@ -2,11 +2,12 @@ │
│ inputs', │
│ lib, │
│ osConfig, │
│ + pkgs, │
│ ... │
│ }: let │
│ inherit (osConfig.ooknet.workstation) environment; │
│ inherit (osConfig.ooknet.hardware) gpu; │
│ - inherit (lib) mkIf; │
│ + inherit (lib) optionalAttrs mkIf; │
│ in { │
│ imports = [ │
│ ./settings │
│ @@ -25,8 +26,8 @@ in { │
│ }; │
│ home.sessionVariables = │
│ { │
│ - CLUTTER_BACKEND = "wayland"; │
│ NIXOS_OZONE_WL = "1"; │
│ + CLUTTER_BACKEND = "wayland"; │
│ GDK_BACKEND = "wayland"; │
│ QT_QPA_PLATFORM = "wayland;xcb"; │
│ QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; │
│ @@ -39,7 +40,7 @@ in { │
│ XDG_SESSION_DESKTOP = "Hyprland"; │
│ XDG_CURRENT_DESKTOP = "Hyprland"; │
│ } │
│ - // mkIf (gpu.type == "nvidia") { │
│ + // optionalAttrs (gpu.type == "nvidia") { │
│ LIBVA_DRIVER_NAME = "nvidia"; │
│ GBM_BACKEND = "nvidia-drm"; │
│ __GLX_VENDOR_LIBRARY_NAME = "nvidia"; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...kstation/hyprland/default.nix ───┐
│ diff --git a/modules/home/workstation/hyprla │
│ nd/default.nix b/modules/home/workstation/hy │
│ prland/default.nix │
│ index ae350b1..2253947 100644 │
│ --- a/modules/home/workstation/hyprland/defa │
│ ult.nix │
│ +++ b/modules/home/workstation/hyprland/defa │
│ ult.nix │
│ @@ -2,11 +2,12 @@ │
│ inputs', │
│ lib, │
│ osConfig, │
│ + pkgs, │
│ ... │
│ }: let │
│ inherit (osConfig.ooknet.workstation) env │
│ ironment; │
│ inherit (osConfig.ooknet.hardware) gpu; │
│ - inherit (lib) mkIf; │
│ + inherit (lib) optionalAttrs mkIf; │
│ in { │
│ imports = [ │
│ ./settings │
│ @@ -25,8 +26,8 @@ in { │
│ }; │
│ home.sessionVariables = │
│ { │
│ - CLUTTER_BACKEND = "wayland"; │
│ NIXOS_OZONE_WL = "1"; │
│ + CLUTTER_BACKEND = "wayland"; │
│ GDK_BACKEND = "wayland"; │
│ QT_QPA_PLATFORM = "wayland;xcb"; │
│ QT_WAYLAND_DISABLE_WINDOWDECORATION │
│ = "1"; │
│ @@ -39,7 +40,7 @@ in { │
│ XDG_SESSION_DESKTOP = "Hyprland"; │
│ XDG_CURRENT_DESKTOP = "Hyprland"; │
│ } │
│ - // mkIf (gpu.type == "nvidia") { │
│ + // optionalAttrs (gpu.type == "nvidia │
│ ") { │
│ LIBVA_DRIVER_NAME = "nvidia"; │
│ GBM_BACKEND = "nvidia-drm"; │
│ __GLX_VENDOR_LIBRARY_NAME = "nvidia │
│ "; │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET