-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages_common.nix
60 lines (53 loc) · 951 Bytes
/
packages_common.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
54
55
56
57
58
59
60
{ config, pkgs, ... }:
let
cfg = config.nielx;
in
{
environment.systemPackages = with pkgs; [
inetutils
mtr
sysstat
rsync
htop
btop
iotop
pciutils
nload
emacs29
ack
man-pages
stdmanpages
file
tmux
screen
whois
wget
git
gcc
clang
binutils
gnumake
cmake
bash-completion
autojump
sshfs
zip
unzip
tree
bat
pngcrush
python3
jq
bind
lm_sensors
sloc
(pkgs.writeScriptBin "upgrade-nixos" ''#!/bin/sh
set -e # Exit on first error.
sudo true # Ask for eventual sudo password up front and hope it lasts.
cd ${cfg.root}/${cfg.nixos_config_directory}
${pkgs.niv}/bin/niv update
nixpkgs=$(echo '"${"$" + "{(import ./nix/sources.nix).nixpkgs}"}"' | nix repl 2>/dev/null | tr -d '"')
sudo nixos-rebuild switch -I nixpkgs=$nixpkgs -I nixos=$nixpkgs -I nixos-config=/etc/nixos/configuration.nix
'')
];
}