mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
use lib.getExe where possible
This commit is contained in:
parent
20dd0ece6c
commit
1169e53c76
11 changed files with 40 additions and 43 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue