Add nixos config
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@@ -16,6 +16,8 @@
|
||||
# (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
pkgs.nerd-fonts.fira-code
|
||||
|
||||
pkgs.nix-ld
|
||||
|
||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||
# echo "Hello, ${config.home.username}!"
|
||||
# '')
|
||||
@@ -30,6 +32,15 @@
|
||||
# '';
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
|
||||
stdenv.cc.cc
|
||||
zlib
|
||||
# Add other common libs here (glib, libx11, etc.)
|
||||
];
|
||||
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
|
||||
};
|
||||
|
||||
# Home Manager can also manage your environment variables through
|
||||
# 'home.sessionVariables'. If you don't want to manage your shell through Home
|
||||
# Manager then you have to manually source 'hm-session-vars.sh' located at
|
||||
@@ -48,7 +59,6 @@
|
||||
#home.sessionVariables = {
|
||||
# EDITOR = "nvim";
|
||||
#};
|
||||
|
||||
#home.shellAliases = {
|
||||
# "ll" = "ls -la";
|
||||
# "t" = "tmuxp";
|
||||
|
||||
Reference in New Issue
Block a user