-
Notifications
You must be signed in to change notification settings - Fork 3
/
devenv.nix
43 lines (35 loc) · 821 Bytes
/
devenv.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ config, pkgs, inputs, ... }:
{
env = {
PROJECTNAME = "nixos-config";
GREEN = "\\033[0;32m";
NC = "\\033[0m"; # No Color
};
scripts.hello.exec = ''echo -e "''${GREEN}welcome to $PROJECTNAME''${NC}"'';
imports = [ inputs.nur.nixosModules.nur ];
packages = with pkgs; with config.nur.repos; with inputs.nixpkgs-future.legacyPackages."x86_64-linux"; [
cloc
gitFull
gitAndTools.git-crypt
just
tagref
vim
wiedzmin.pystdlib
];
enterShell = ''
hello
'';
difftastic.enable = true;
languages.lua.enable = true;
languages.nix.enable = true;
languages.python = {
enable = true;
package = pkgs.python311;
};
pre-commit.hooks = {
deadnix.enable = true;
nixpkgs-fmt.enable = true;
shfmt.enable = true;
typos.enable = true;
};
}