-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminimal.nix
53 lines (48 loc) · 1.22 KB
/
minimal.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
44
45
46
47
48
49
50
51
52
53
{ lib, pkgs, ... }:
let
ciSafe = builtins.getEnv "CI_SAFE" != "";
in
{
nix.settings.experimental-features = "nix-command flakes";
nixpkgs.config.allowUnfreePredicate =
pkg:
!ciSafe
&& builtins.elem (lib.getName pkg) [
"1password"
"steam"
"steam-unwrapped"
"vivado"
"xinstall"
];
nix.gc.automatic = true;
nix.optimise.automatic = true;
nix.settings.keep-outputs = true;
nix.settings.diff-hook = pkgs.writeShellScript "diff-hook" ''
exec >&2
echo "For derivation $3:"
/run/current-system/sw/bin/diff -r "$1" "$2"
'';
nix.settings.run-diff-hook = true;
nix.package = pkgs.lix;
nix.settings.substituters = [ "https://liamolucko.cachix.org" ];
nix.settings.trusted-public-keys = [
"liamolucko.cachix.org-1:BUnxmHPZZOBq0CokNOYCcYBOCzFXJ9EjdY9BoQkDVJY="
];
environment.systemPackages = [
pkgs.bat
pkgs.btop
pkgs.deno
pkgs.file
pkgs.gh
pkgs.httplz
pkgs.jq
pkgs.nix-output-monitor
pkgs.ripgrep
pkgs.rsync
pkgs.rustup
(if pkgs.stdenv.isDarwin then pkgs.darwin.trash else pkgs.trashy)
];
programs.fish.enable = true;
users.users.liam.shell = pkgs.fish;
home-manager.users.liam = import ./home-minimal.nix;
}