diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-09-24 13:35:39 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-09-24 13:35:47 -0500 |
| commit | c1cef0f7eafaf85bbae9878b92971a97d7583247 (patch) | |
| tree | be4e6c6a01d584fdbfc58cc328ecca54f7be6319 /modules | |
| parent | c9ec61f01a26cff66ef779f0b94694684a16d7da (diff) | |
changes; im lazy
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/boot/nixos/default.nix | 10 | ||||
| -rw-r--r-- | modules/terminal/hjem/default.nix | 2 | ||||
| -rw-r--r-- | modules/terminal/hjem/programs/bash.nix | 27 | ||||
| -rw-r--r-- | modules/terminal/hjem/programs/fish.nix | 15 | ||||
| -rw-r--r-- | modules/terminal/hjem/programs/starship.nix | 5 | ||||
| -rw-r--r-- | modules/terminal/nixos/bash.nix | 16 | ||||
| -rw-r--r-- | modules/terminal/nixos/default.nix | 4 |
7 files changed, 59 insertions, 20 deletions
diff --git a/modules/boot/nixos/default.nix b/modules/boot/nixos/default.nix index 66f31fc..06e68c3 100644 --- a/modules/boot/nixos/default.nix +++ b/modules/boot/nixos/default.nix @@ -24,7 +24,7 @@ in { configurationLimit = 3; }; efi.canTouchEfiVariables = true; - timeout = 0; + timeout = 0; # hold space to show boot menu }; } // (lib.optionalAttrs cfg.secureBoot.enable { @@ -34,5 +34,11 @@ in { }; }); - environment.systemPackages = lib.mkIf cfg.secureBoot.enable [pkgs.sbctl]; + environment.systemPackages = + ( + if cfg.secureBoot.enable + then [pkgs.sbctl] + else [] + ) + ++ [pkgs.efibootmgr]; } diff --git a/modules/terminal/hjem/default.nix b/modules/terminal/hjem/default.nix index 7915319..681c3b3 100644 --- a/modules/terminal/hjem/default.nix +++ b/modules/terminal/hjem/default.nix @@ -10,6 +10,8 @@ ./programs/broot.nix ./programs/cmus.nix ./programs/helix.nix + ./programs/fish.nix + ./programs/bash.nix ]; } diff --git a/modules/terminal/hjem/programs/bash.nix b/modules/terminal/hjem/programs/bash.nix index 646cbf8..fe6f21d 100644 --- a/modules/terminal/hjem/programs/bash.nix +++ b/modules/terminal/hjem/programs/bash.nix @@ -8,22 +8,23 @@ in lib.mkIf cfg.enable { files = { - ".bashrc".text = '' + ".config/bash/bashrc".text = '' eval "$(direnv hook bash)" for file in ~/.config/bash/conf.d/*; do source "$file"; done ''; - - packages = with pkgs; [ - fish - ripgrep - fd - moreutils - zip - unzip - btop - jq - direnv - ]; }; + + packages = with pkgs; [ + fish + ripgrep + fd + wget + moreutils + zip + unzip + btop + jq + direnv + ]; } diff --git a/modules/terminal/hjem/programs/fish.nix b/modules/terminal/hjem/programs/fish.nix index 1aa4a40..2fdc184 100644 --- a/modules/terminal/hjem/programs/fish.nix +++ b/modules/terminal/hjem/programs/fish.nix @@ -8,6 +8,20 @@ in lib.mkIf cfg.enable { files = { + ".config/fish/conf.d/xdg.fish".text = + # fish + '' + set -gx XDG_DATA_HOME "$HOME/.local/share" + set -gx XDG_CONFIG_HOME "$HOME/.config" + set -gx XDG_STATE_HOME "$HOME/.local/state" + set -gx XDG_CACHE_HOME "$HOME/.cache" + + alias wget "wget --hsts-file=/dev/null" + set -gx GOPATH "$XDG_DATA_HOME/go" + set -gx GRADLE_USER_HOME "$XDG_DATA_HOME/gradle" + set -gx CARGO_HOME "$XDG_DATA_HOME/cargo" + ''; + ".config/fish/config.fish".text = '' set fish_greeting @@ -24,6 +38,7 @@ in fish ripgrep fd + wget moreutils zip unzip diff --git a/modules/terminal/hjem/programs/starship.nix b/modules/terminal/hjem/programs/starship.nix index e9d79b5..7f537d9 100644 --- a/modules/terminal/hjem/programs/starship.nix +++ b/modules/terminal/hjem/programs/starship.nix @@ -51,11 +51,6 @@ in starship init fish | source enable_transience ''; - }) - // (lib.optionalAttrs config.collinux.terminal.shells.bash.enable { - ".config/bash/conf.d/starship.bash".text = '' - eval "$(starship init bash)" - ''; }); packages = [pkgs.starship]; diff --git a/modules/terminal/nixos/bash.nix b/modules/terminal/nixos/bash.nix new file mode 100644 index 0000000..393ab94 --- /dev/null +++ b/modules/terminal/nixos/bash.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: let + cfg = config.collinux.terminal.shells.bash; +in + lib.mkIf cfg.enable { + environment.etc = { + "bashrc.local".text = '' + if [ -s "''${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc" ]; then + . "''${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc" + fi + ''; + }; + } diff --git a/modules/terminal/nixos/default.nix b/modules/terminal/nixos/default.nix index 8118c63..4ececfa 100644 --- a/modules/terminal/nixos/default.nix +++ b/modules/terminal/nixos/default.nix @@ -1,6 +1,10 @@ {config, ...}: let cfg = config.collinux.terminal.shells; in { + imports = [ + ./bash.nix + ]; + programs.command-not-found.enable = false; # broken without nix-channels users.users."${config.collinux.user.name}" = { |
