Revamp
This commit is contained in:
parent
e06b409221
commit
2c37447ec3
26 changed files with 861 additions and 494 deletions
49
modules/common/environment.nix
Normal file
49
modules/common/environment.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
getName
|
||||
mkIf
|
||||
mkMerge
|
||||
optionalAttrs
|
||||
;
|
||||
|
||||
cfg = config;
|
||||
in
|
||||
{
|
||||
config = mkMerge [
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
chezmoi
|
||||
direnv
|
||||
git
|
||||
curl
|
||||
vim
|
||||
wget
|
||||
];
|
||||
|
||||
users.users."${config.machine.mainUser}".packages = with pkgs; [
|
||||
(vscode-with-extensions.override {
|
||||
vscode = vscodium;
|
||||
vscodeExtensions = with vscode-extensions; [
|
||||
bbenoist.nix
|
||||
jnoortheen.nix-ide
|
||||
mkhl.direnv
|
||||
ms-azuretools.vscode-docker
|
||||
ms-python.python
|
||||
ms-vscode-remote.remote-ssh
|
||||
yzhang.markdown-all-in-one
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
(mkIf cfg.programs.zsh.enable {
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue