pin nixpkgs in flake registry to system's flake.lock, minor changes

add C tooling to devtools, more history for zsh by default, pcmanfm cause some stuff requires full-blown file manager
This commit is contained in:
Grigory Shipunov 2022-10-09 13:29:30 +02:00
parent 3996f63789
commit 2ded3b2826
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
2 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { lib, config, pkgs, inputs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -25,6 +25,7 @@
man-pages man-pages
wlsunset wlsunset
screen screen
pcmanfm
]; ];
nix = { nix = {
@ -33,6 +34,13 @@
''; '';
}; };
# override default nix shell nixpkgs# behaviour to use current flake lock
nix.registry =
let flakes = lib.filterAttrs (name: value: value ? outputs) inputs.self.inputs;
in builtins.mapAttrs (name: v: { flake = v; }) flakes;
nix.nixPath = lib.mapAttrsToList (name: value: "${name}=${value.outPath}") inputs.self.inputs;
programs.tmux = { programs.tmux = {
enable = true; enable = true;
@ -69,6 +77,9 @@
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
interactiveShellInit = '' interactiveShellInit = ''
bindkey -e bindkey -e
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=10000000
export SAVEHIST=10000000
''; '';
promptInit = '' promptInit = ''
source ${pkgs.liquidprompt}/share/zsh/plugins/liquidprompt/liquidprompt source ${pkgs.liquidprompt}/share/zsh/plugins/liquidprompt/liquidprompt

View file

@ -5,6 +5,12 @@
inputs.emacs-overlay.overlay inputs.emacs-overlay.overlay
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# general
cmake
gcc
binutils
clang
clang-tools
# rust # rust
(inputs.fenix.packages."x86_64-linux".stable.withComponents [ (inputs.fenix.packages."x86_64-linux".stable.withComponents [
"cargo" "cargo"