Add env variable for EDITOR and LESS
This commit is contained in:
parent
aca581facc
commit
7ff397a7c0
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
bootUUID = config.machines.fs.bootUUID;
|
||||
efiUUID = config.machines.fs.efiUUID;
|
||||
|
|
@ -45,6 +45,11 @@ in
|
|||
|
||||
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/${luuksUUID}";
|
||||
|
||||
environment.sessionVariables = {
|
||||
EDITOR = "${pkgs.vim}/bin/vim";
|
||||
PAGER = "${pkgs.less}/bin/less";
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/${cryptrootUUID}";
|
||||
fsType = "btrfs";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue