Restructure to use proper modules

This commit is contained in:
Tim Schubert 2020-12-25 16:50:52 +01:00
parent 385be2e0fe
commit 7b19e1b2cc
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
59 changed files with 748 additions and 599 deletions

View file

@ -1,120 +0,0 @@
{ config, pkgs, lib, ... }:
let
unstable = import <nixpkgs-unstable> {};
in {
imports = [
(import ../session.nix {
inherit config;
sessionVars = {
EDITOR = "vim";
PAGER = "less";
MAILDIR = "\$HOME/.var/mail";
MBLAZE = "\$HOME/.config/mblaze";
NOTMUCH_CONFIG = "\$HOME/.config/notmuch/config";
MOZ_ENABLE_WAYLAND= "1";
};
})
../direnv.nix
../vim
../tmux.nix
../zsh.nix
../gpg.nix
../ssh.nix
../git.nix
../gtk.nix
../xdg.nix
../keyring.nix
../kitty.nix
../syncthing.nix
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = with pkgs; [
anki
aspell
aspellDicts.de
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
bluez-tools
chromium
clang
clang-tools
direnv
evince
ffmpeg
fido2luks
file
fzf
gimp
git-lfs
gnome3.eog
gnome3.gnome-tweak-tool
gnome3.nautilus
gnumake
gnupg
graphviz
grim
imagemagick
inkscape
inotify-tools
jq
kcachegrind
kitty
ldns
libreoffice
libvirt
lsof
mblaze
mkpasswd
mpv
mumble
ncurses
nfs-utils
nmap
openssl
p7zip
pass
pavucontrol
playerctl
pwgen
python27Packages.dbus-python
python3
python38Packages.dateutil
python38Packages.solo-python
slurp
sqlite
sshfs-fuse
steam
tcpdump
tdesktop
unzip
usbutils
virtmanager
whois
xdg_utils
firefox-bin
] ++ (with unstable; [
android-studio
keepassxc
minecraft
python38Packages.managesieve
signal-desktop
thunderbird-bin
texlive-tubslatex
wireshark
youtube-dl
]);
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "19.09";
}

View file

@ -0,0 +1,54 @@
{ config, pkgs, lib, ... }:
let
sources = import ../../../nix/sources.nix;
stable = import <nixpkgs-stable> {};
in {
nixpkgs = {
overlays = [
(import ../../../overlays/texlive-tubslatex.nix)
];
};
imports = import ../../module-list.nix;
dadada = {
vim.enable = true;
direnv.enable = true;
git.enable = true;
gpg.enable = true;
gtk.enable = true;
keyring.enable = true;
kitty.enable = true;
session.enable = true;
ssh.enable = true;
syncthing.enable = true;
xdg.enable = true;
zsh.enable = true;
};
dadada.session = {
sessionVars = {
EDITOR = "vim";
PAGER = "less";
MAILDIR = "\$HOME/.var/mail";
MBLAZE = "\$HOME/.config/mblaze";
NOTMUCH_CONFIG = "\$HOME/.config/notmuch/config";
MOZ_ENABLE_WAYLAND= "1";
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = import ./pkgs.nix { pkgs = pkgs; };
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "19.09";
}

View file

@ -0,0 +1,83 @@
{ pkgs }:
with pkgs; [
android-studio
anki
aspell
aspellDicts.de
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
aqbanking
bluez-tools
chromium
clang
clang-tools
darcs
direnv
element-desktop
evince
ffmpeg
file
firefox-bin
fractal
fzf
gimp
git-lfs
gitAndTools.hub
gnome3.gnome-tweak-tool
gnome3.nautilus
gnome3.vinagre
gnucash
gnumake
gnupg
graphviz
grim
imagemagick
inkscape
inotify-tools
jameica
jq
kcachegrind
keepassxc
kitty
ldns
libreoffice
libvirt
lsof
mblaze
mkpasswd
mpv
mumble
ncurses
nfs-utils
niv
nmap
openssl
p7zip
pass
pavucontrol
pinentry-gnome
playerctl
pwgen
python27Packages.dbus-python
python3
python38Packages.dateutil
python38Packages.managesieve
python38Packages.solo-python
signal-desktop
slurp
sqlite
sshfs-fuse
steam
tcpdump
tdesktop
texlive-tubslatex
thunderbird-bin
unzip
usbutils
virtmanager
whois
wireshark
xdg_utils
youtube-dl
]