From 6fe0cbebe27ad8c83cb7fcc4e6e0425a6677b3de Mon Sep 17 00:00:00 2001 From: derped Date: Tue, 26 Mar 2019 22:45:54 +0100 Subject: [PATCH] Added zsh modules. Changed color of Ophanim's shell prompt. Added aditional driver package to Lilim. --- config/zsh.nix | 2 +- machines/Lilim/hardware-configuration.nix | 5 +++-- machines/Ophanim/configuration.nix | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/zsh.nix b/config/zsh.nix index cc1b1d6..24fb37d 100644 --- a/config/zsh.nix +++ b/config/zsh.nix @@ -9,7 +9,7 @@ mkIf (elem "zsh" config.machine.conffiles) { syntaxHighlighting.enable = true; ohMyZsh = { enable = true; - plugins = [ "git" "python" "man" ]; + plugins = [ "cabal" "docker" "gitfast" "python" "pip" "sudo" "systemd" "man" ]; theme = "gentoo"; }; }; diff --git a/machines/Lilim/hardware-configuration.nix b/machines/Lilim/hardware-configuration.nix index 7854aa9..f1fef71 100644 --- a/machines/Lilim/hardware-configuration.nix +++ b/machines/Lilim/hardware-configuration.nix @@ -35,9 +35,9 @@ in { enableKSM = true; opengl = { driSupport = true; - extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]; + extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl vaapiIntel vaapiVdpau ]; driSupport32Bit = true; - extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]; + extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiIntel vaapiVdpau ]; }; pulseaudio = { @@ -60,6 +60,7 @@ in { enable = true; cpuFreqGovernor = "powersave"; }; + services.upower.enable = true; time.timeZone = "Europe/Berlin"; } diff --git a/machines/Ophanim/configuration.nix b/machines/Ophanim/configuration.nix index bc38374..8e0d6d8 100644 --- a/machines/Ophanim/configuration.nix +++ b/machines/Ophanim/configuration.nix @@ -19,7 +19,7 @@ # userlist = []; # }; services.haveged.enable = true; - + programs.zsh.interactiveShellInit = "PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[cyan]%}%n@)%m %{$fg_bold[magenta]%}%(!.%1~.%~) $(git_prompt_info)%_$(prompt_char)%{$reset_color%} '" # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you