use lib.getExe where possible

This commit is contained in:
Rouven Seifert 2023-06-19 13:22:15 +02:00
parent 20dd0ece6c
commit 1169e53c76
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
11 changed files with 40 additions and 43 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
programs.tmux = {
enable = true;
@ -7,7 +7,7 @@
clock24 = true;
extraConfig =
''
set -g default-shell ${pkgs.zsh}/bin/zsh
set -g default-shell ${lib.getExe pkgs.zsh}
bind P display-popup
set -sg escape-time 10
set -g @dracula-plugins "git time"

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
{
programs.command-not-found.enable = false;
environment.systemPackages = with pkgs; [
@ -60,7 +60,7 @@
switch() {
sudo true # ask the password so we can leave during the (sometimes quite long) build process
OUT_PATH=/tmp/nixos-rebuild-nom-$(date +%s)
${pkgs.nix-output-monitor}/bin/nom build /etc/nixos#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel -o $OUT_PATH
${lib.getExe pkgs.nix-output-monitor} build /etc/nixos#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel -o $OUT_PATH
sudo ${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $OUT_PATH
sudo $OUT_PATH/bin/switch-to-configuration switch
unlink $OUT_PATH