feature(settings): add settings module
This commit is contained in:
16
modules/nixos/settings.nix
Normal file
16
modules/nixos/settings.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# use flakes and nix command
|
||||
nix.settings.experimental-feature = [ "nix-command" "flakes" ];
|
||||
|
||||
# links /libexec from derivations to /run/current-system/sw
|
||||
environment.pathsToLink = [ "/libexec" ];
|
||||
# set the default editor to vim
|
||||
environment.variables.EDITOR = "vim";
|
||||
|
||||
# enable home-manager globally
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
}
|
||||
Reference in New Issue
Block a user