Fresh repo without sensitive data.
This commit is contained in:
commit
9003080a64
44 changed files with 2039 additions and 0 deletions
15
pkgs/flat-remix/default.nix
Normal file
15
pkgs/flat-remix/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ stdenv, fetchFromGitHub, gtk-engine-murrine }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
version = "1.0";
|
||||
name = "Flat-Remix-GTK";
|
||||
src = fetchFromGitHub {
|
||||
owner = "daniruiz";
|
||||
repo = "Flat-Remix-GTK";
|
||||
rev = "39fec3cb2da83a7959e2637365c1e61643bf9ae9";
|
||||
sha256 = "0rfv75w9yr8drc3x9g4iz2cb88ixy1lqbflvmb7farw4dz74fk5f";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
||||
}
|
18
pkgs/nixpkgs.nix
Normal file
18
pkgs/nixpkgs.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
mpv.vaapiSupport = true;
|
||||
|
||||
packageOverrides = pkgs: rec {
|
||||
mu-git = pkgs.callPackage ./mu-git/default.nix {};
|
||||
theme_flat-remix = pkgs.callPackage ./flat-remix/default.nix {};
|
||||
theme_sddm_midnight = pkgs.callPackage ./sddm_midnight/default.nix {};
|
||||
firmware_surface = pkgs.callPackage ./firmware_surface/default.nix {};
|
||||
linux_surface = pkgs.callPackage ./linux_surface/default.nix {};
|
||||
linuxPackages_surface = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_surface);
|
||||
xdiskusage = pkgs.callPackage ./xdiskusage/default.nix {};
|
||||
};
|
||||
};
|
||||
}
|
262
pkgs/pkgsets.nix
Normal file
262
pkgs/pkgsets.nix
Normal file
|
@ -0,0 +1,262 @@
|
|||
{ stable ? import <nixos-stable>,
|
||||
unstable ? import <nixos-unstable>,
|
||||
gitpkgs ? import /nixpkgs/default.nix,
|
||||
config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = with lib; import ("/etc/nixos/machines/" + (replaceStrings ["\n"] [""] (readFile /etc/hostname)) + "/configuration.nix");
|
||||
optPkgs = with lib; package: pkgstring: if elem pkgstring cfg.pkgs then package else [];
|
||||
gitpkgs = import /nixpkgs/default.nix {};
|
||||
|
||||
# Programms I'm likely to want on every machine and/or may execute as root
|
||||
base = with pkgs; [
|
||||
alsaUtils
|
||||
ccze
|
||||
cksfv
|
||||
cryptsetup
|
||||
dhcpcd
|
||||
dnsutils
|
||||
git
|
||||
gnupg
|
||||
gptfdisk
|
||||
home-manager
|
||||
htop
|
||||
hwinfo
|
||||
indent
|
||||
iptables
|
||||
lrzip
|
||||
lshw
|
||||
macchanger
|
||||
mkpasswd
|
||||
netcat
|
||||
nix-index
|
||||
nix-plugins
|
||||
nix-prefetch-git
|
||||
nix-serve
|
||||
nix-update-source
|
||||
nix-zsh-completions
|
||||
nixbang
|
||||
nixops
|
||||
nmap
|
||||
nox
|
||||
ntfs3g
|
||||
oh-my-zsh
|
||||
openssl
|
||||
p7zip
|
||||
pciutils
|
||||
psmisc
|
||||
rfkill
|
||||
rsync
|
||||
sl
|
||||
sysvtools
|
||||
telnet
|
||||
traceroute
|
||||
tree
|
||||
unrar
|
||||
unzipNLS
|
||||
usbutils
|
||||
vim
|
||||
vulnix
|
||||
wget
|
||||
whois
|
||||
wirelesstools
|
||||
wpa_supplicant
|
||||
zip
|
||||
zlib
|
||||
zsh
|
||||
];
|
||||
|
||||
emacs = gitpkgs.emacsWithPackages (epkgs: with epkgs; [
|
||||
/* Theming */
|
||||
solarized-theme color-theme-sanityinc-tomorrow moe-theme powerline moody minions
|
||||
/*General Stuff */
|
||||
rainbow-delimiters # color parenthesis by indentation
|
||||
color-identifiers-mode
|
||||
/* Python */
|
||||
company-jedi pylint melpaStablePackages.elpy
|
||||
/* Git support */
|
||||
magit
|
||||
emms # multimedia support
|
||||
wsd-mode
|
||||
plantuml-mode
|
||||
/* Other Stuff, not yet sorted */
|
||||
transmission
|
||||
org-plus-contrib orgit ox-gfm ox-rst
|
||||
eclim
|
||||
auto-complete
|
||||
pkgs.aspell pkgs.aspellDicts.en pkgs.aspellDicts.de
|
||||
use-package diminish bind-key
|
||||
smartparens
|
||||
evil-surround evil-indent-textobject evil-cleverparens avy undo-tree
|
||||
cdlatex # for math expressions
|
||||
helm
|
||||
/* LaTeX */ auctex helm-bibtex cdlatex
|
||||
markdown-mode
|
||||
flycheck
|
||||
pkgs.ledger
|
||||
yaml-mode
|
||||
company
|
||||
/* C/C++ */ clang-format irony company-irony company-irony-c-headers flycheck-irony
|
||||
/* Haskell */ haskell-mode flycheck-haskell
|
||||
/* Org */ org org-ref pdf-tools org-bullets org-caldav
|
||||
/* Rust */ rust-mode flycheck-rust racer
|
||||
/* mail */ messages-are-flowing
|
||||
/* Nix */ nix-buffer nix-mode nixos-options company-nixos-options nix-sandbox
|
||||
paganini-theme
|
||||
spaceline # modeline beautification
|
||||
winum eyebrowse # window management
|
||||
auto-compile
|
||||
/* Maxima */ pkgs.maxima
|
||||
visual-fill-column
|
||||
web-mode
|
||||
melpaStablePackages.idris-mode helm-idris
|
||||
]);
|
||||
|
||||
extra = with pkgs; [
|
||||
transmission
|
||||
texlive.combined.scheme-full
|
||||
];
|
||||
|
||||
mailutils = with pkgs; [
|
||||
fetchmail
|
||||
imagemagick
|
||||
isync
|
||||
mu-git
|
||||
pandoc
|
||||
postfix
|
||||
];
|
||||
|
||||
cpp = with pkgs; [
|
||||
clang
|
||||
cmake
|
||||
gcc
|
||||
global
|
||||
irony-server
|
||||
];
|
||||
|
||||
haskell = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [
|
||||
mtl
|
||||
random
|
||||
]);
|
||||
|
||||
java = with pkgs; [
|
||||
openjdk11
|
||||
(with pkgs.eclipses; eclipseWithPlugins {
|
||||
eclipse = eclipse-platform;
|
||||
jvmArgs = [ "-Xmx2048m" ];
|
||||
plugins = [
|
||||
plugins.color-theme
|
||||
plugins.emacsplus
|
||||
plugins.checkstyle
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
python3 = gitpkgs.python3Full.withPackages(ps: with ps; [
|
||||
GitPython
|
||||
bpython
|
||||
configparser
|
||||
django
|
||||
elpy
|
||||
emoji
|
||||
epc
|
||||
numpy
|
||||
opencv3
|
||||
paho-mqtt
|
||||
pep8
|
||||
pillow
|
||||
pip
|
||||
plotly
|
||||
pyflakes
|
||||
pygame_sdl2
|
||||
pylama
|
||||
pylint
|
||||
pyopengl
|
||||
pyproj
|
||||
requests
|
||||
schedule
|
||||
scipy
|
||||
selenium
|
||||
telegram
|
||||
tkinter
|
||||
toolz
|
||||
virtualenv
|
||||
# flask
|
||||
# flask-common
|
||||
# flask-compress
|
||||
# flask-cors
|
||||
# flask-limiter
|
||||
# flask-pymongo
|
||||
# flask-restful
|
||||
# flask-restplus
|
||||
# flask_assets
|
||||
# flask_elastic
|
||||
# flask_login
|
||||
# flask_mail
|
||||
# flask_marshmallow
|
||||
# flask_migrate
|
||||
# flask_oauthlib
|
||||
# flask_principal
|
||||
# flask_script
|
||||
# flask_sqlalchemy
|
||||
# flask_testing
|
||||
# flask_wtf
|
||||
# flaskbabel
|
||||
/* temporarily fix python stuff */
|
||||
py3status pytz tzlocal
|
||||
|
||||
]);
|
||||
|
||||
rustpkgs = with pkgs; [
|
||||
rustup
|
||||
carnix
|
||||
rustracer
|
||||
];
|
||||
|
||||
server = with pkgs; [
|
||||
audit
|
||||
letsencrypt
|
||||
php
|
||||
simp_le
|
||||
];
|
||||
|
||||
uniProgs = with pkgs; [
|
||||
qucs
|
||||
];
|
||||
|
||||
xpkgs = with pkgs; [
|
||||
feh
|
||||
scrot
|
||||
theme_flat-remix
|
||||
theme_sddm_midnight
|
||||
gnome3.dconf
|
||||
gnome3.gnome-terminal
|
||||
gnome3.gvfs
|
||||
pcmanfm
|
||||
pavucontrol
|
||||
xclip
|
||||
xlibs.xkill
|
||||
xorg.xbacklight
|
||||
xdiskusage
|
||||
];
|
||||
|
||||
in {
|
||||
environment.systemPackages = base
|
||||
++ (optPkgs [emacs] "emacs")
|
||||
++ (optPkgs extra "extra")
|
||||
++ (optPkgs mailutils "mailutils")
|
||||
++ (optPkgs cpp "cpp")
|
||||
++ (optPkgs [haskell] "haskell")
|
||||
++ (optPkgs java "java")
|
||||
++ (optPkgs [python3] "python3")
|
||||
++ (optPkgs rustpkgs "rustpkgs")
|
||||
++ (optPkgs server "server")
|
||||
++ (optPkgs uniProgs "uniProgs")
|
||||
++ (optPkgs xpkgs "xpkgs");
|
||||
|
||||
services.emacs = {
|
||||
enable = (lib.elem "emacs" cfg.pkgs);
|
||||
install = (lib.elem "emacs" cfg.pkgs);
|
||||
package = emacs;
|
||||
};
|
||||
}
|
30
pkgs/sddm_midnight/default.nix
Normal file
30
pkgs/sddm_midnight/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchFromGitHub, qtstyleplugin-kvantum-qt4 }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "sddm_midnight";
|
||||
version = 1.0;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Rokin05";
|
||||
repo = "midnight-kde";
|
||||
rev = "1a4771146a8d6f3b45b1da32877495c9e562d193";
|
||||
sha256 = "10br96pf4dppk9nk7yvf7h9zja40k4c6rhwmqcaxxcjlhpvjmhkj";
|
||||
};
|
||||
|
||||
buildInputs = [ qtstyleplugin-kvantum-qt4 ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace sddm/themes/Midnight/Main.qml --replace /usr $out
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share
|
||||
cp -R \
|
||||
"aurorae" \
|
||||
"color-schemes" \
|
||||
"Kvantum" \
|
||||
"plasma" \
|
||||
"sddm" \
|
||||
"$out/share"
|
||||
'';
|
||||
}
|
13
pkgs/xdiskusage/default.nix
Normal file
13
pkgs/xdiskusage/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ stdenv, fetchurl, fltk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xdiskusage";
|
||||
version = "1.51";
|
||||
|
||||
buildInputs = [ fltk ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://xdiskusage.sourceforge.net/${name}-${version}.tgz";
|
||||
sha256 = "1il9200a2yd6023sbmixspvhj4ip6frm8sczjk5zk68j65zl9ckg";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue