install nix
This commit is contained in:
5
home.nix
5
home.nix
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
# Configure PATH for all shells, including non-interactive ones
|
# Configure PATH for all shells, including non-interactive ones
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
"${config.home.homeDirectory}/.nix-profile/bin"
|
"${config.home.homeDirectory}/.nix-profile/bin"
|
||||||
"/nix/var/nix/profiles/default/bin"
|
"/nix/var/nix/profiles/default/bin"
|
||||||
];
|
];
|
||||||
@@ -30,6 +31,9 @@
|
|||||||
# Set environment variables for all shells
|
# Set environment variables for all shells
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.home.homeDirectory}/.nix-defexpr/channels:nixpkgs=${config.home.homeDirectory}/.nix-defexpr/channels/nixpkgs";
|
NIX_PATH = "${config.home.homeDirectory}/.nix-defexpr/channels:nixpkgs=${config.home.homeDirectory}/.nix-defexpr/channels/nixpkgs";
|
||||||
|
|
||||||
|
# Use bwrap for nix-portable
|
||||||
|
NP_RUNTIME = "bwrap";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create SSH environment file for non-interactive sessions
|
# Create SSH environment file for non-interactive sessions
|
||||||
@@ -41,6 +45,7 @@
|
|||||||
|
|
||||||
# Packages to install
|
# Packages to install
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
nix
|
||||||
eza
|
eza
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user