New configs

This commit is contained in:
Pavel Kachalouski
2019-06-16 19:07:40 +02:00
parent be96153754
commit 259ef2642e
7 changed files with 161 additions and 80 deletions

View File

@@ -44,7 +44,7 @@
ranger
keepass
tdesktop
st
kitty
fish
transmission_gtk
wireshark
@@ -57,27 +57,15 @@
binutils-unwrapped
patchelf
file
w3m
xpdf
highlight
mediainfo
evince
notepadqq
breeze-icons.out
gnome3.adwaita-icon-theme
gnome3.gedit
gnome3.eog
gnome3.nautilus
gnome3.evolution
gnome3.gnome-keyring
libsecret
gnome3.file-roller
gnome3.seahorse
gnome3.gcr
gnome3.dconf
gimp
# libreoffice-fresh
hicolor_icon_theme
#libreoffice-fresh
xfontsel
xorg.xbacklight
xorg.xev
volumeicon
ntfs3g
htop
@@ -85,24 +73,26 @@
lm_sensors
pavucontrol
openjdk8
#openjdk10
openjdk11
#graalvm8
visualvm
scala
dotty
sbt
jetbrains.idea-community
docker
protobuf3_5
openssl
openssl.dev
pv
#virtualbox
baobab
graphviz
wirelesstools
mattermost-desktop
openfortivpn
simplenote
i3lock
i3blocks
scrot
imagemagick
xautolock
@@ -112,16 +102,16 @@
rpm
unzip
chromium
masterpdfeditor
#masterpdfeditor
telnet
geteltorito
gradle
#gradle
nix-index
zoom-us
krita
maven
nodejs
jmeter
#jmeter
mongodb-tools
screen
p7zip
@@ -134,7 +124,7 @@
libunwind.dev
re2
robo3t
#nextcloud-client
nextcloud-client
cmake
gnumake
gperf
@@ -143,16 +133,33 @@
smartmontools
teamviewer
unrar
tcpdump
tcpflow
docker_compose
#androidenv.androidPkgs_9_0.platform-tools
(python2.withPackages(ps: with ps; [ virtualenvwrapper jenkins-job-builder ]))
python3
sysstat
yad
xdotool
breeze-icons
okular
dolphin
kcalc
kate
okteta
spectacle
ark
filelight
thunderbird
ffmpeg
];
fonts.fonts = with pkgs; [
source-code-pro
liberation_ttf
];
fonts = {
enableFontDir = true;
fonts = with pkgs; [
source-code-pro
liberation_ttf
font-awesome-ttf
];
};
nixpkgs.config = {
allowUnfree = true;
@@ -172,23 +179,29 @@
services.teamviewer.enable = true;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 88 8443 111 1039 1047 1048 2049 ];
networking.firewall.allowedUDPPorts = [ 111 1039 1047 1048 2049 ];
networking.firewall.allowedTCPPorts = [ 88 8443 111 2049 ];
networking.firewall.allowedUDPPorts = [ 111 2049 ];
# Or disable the firewall altogether.
networking.firewall.enable = true;
#networking.firewall.enable = false;
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = [ pkgs.splix ];
services.mongodb.enable = true;
services.postgresql = {
enable = true;
ensureUsers = [
{
name = "nnm";
}
];
};
# keyring
services.gnome3.gnome-keyring.enable = true;
services.gnome3.seahorse.enable = true;
services.gnome3.at-spi2-core.enable = true;
#programs.sway.enable = true;
#services.gnome3.gnome-keyring.enable = true;
#services.gnome3.seahorse.enable = true;
#services.gnome3.at-spi2-core.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
@@ -201,34 +214,34 @@
services.xserver.displayManager.lightdm.enable = true;
services.xserver.windowManager.i3.enable = true;
virtualisation.docker.enable = true;
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "nnm" ];
sound.enable = true;
hardware.pulseaudio.enable = true;
environment.pathsToLink = [ "/share" ];
# Define a user account. Don't forget to set a password with passwd.
users.extraUsers.nnm = {
isNormalUser = true;
uid = 1000;
shell = pkgs.fish;
extraGroups = ["audio" "networkmanager" "wireshark" "vboxusers" "wheel"];
extraGroups = ["audio" "networkmanager" "wireshark" "wheel" "docker"];
};
#fileSystems."/export/development" = {
# device = "/home/nnm/development";
# options = [ "bind" ];
#};
fileSystems."/mnt/Downloads-pc" = {
device = "192.168.1.2:/Downloads";
fileSystems."/mnt/pkcloud-export" = {
device = "192.168.1.5:/";
fsType = "nfs";
options = ["x-systemd.automount,noauto"];
options = [ "x-systemd.automount" "noauto" "user" ];
};
# NFS server
#services.nfs.server.enable = true;
#services.nfs.server.exports = ''
# /export 192.168.1.2(rw,fsid=0,no_subtree_check)
# /export/development 192.168.1.2(rw,nohide,insecure,no_subtree_check)
#'';
security.wrappers = {
"mount.nfs".source = "${pkgs.nfs-utils.out}/bin/mount.nfs";
"umount.nfs".source = "${pkgs.nfs-utils.out}/bin/umount.nfs";
};
#virtualisation.virtualbox.host.enable = true;
#virtualisation.virtualbox.host.enableExtensionPack = true;
@@ -237,5 +250,5 @@
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.03"; # Did you read the comment?
system.stateVersion = "19.09"; # Did you read the comment?
}