Move vim packages to pkgs

Add system config

Split up modules into home and system sets

Update

Cleanup

Move home config

Add module attrs

Fix empty LUKS device UUID

Import local secrets
This commit is contained in:
Tim Schubert 2020-12-25 17:38:07 +01:00
parent 4724f264dd
commit e1c562191b
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
67 changed files with 1055 additions and 202 deletions

View file

@ -0,0 +1,39 @@
{ config, pkgs, lib, ... }:
with lib;
{
imports = import ../../module-list.nix;
config = {
dadada = {
autoUpgrade.enable = mkDefault true;
networking = {
useLocalResolver = mkDefault true;
domain = mkDefault "dadada.li";
};
};
i18n.defaultLocale = mkDefault "en_US.UTF-8";
console = {
font = mkDefault "Lat2-Terminus16";
keyMap = mkDefault "us";
};
fonts.fonts = mkDefault (with pkgs; [
source-code-pro
]);
time.timeZone = mkDefault "Europe/Berlin";
programs.zsh = mkDefault {
enable = true;
autosuggestions.enable = true;
enableCompletion = true;
histSize = 100000;
vteIntegration = true;
syntaxHighlighting = {
enable = true;
highlighters = [ "main" "brackets" "pattern" "cursor" "root" "line" ];
};
};
};
}

View file

@ -1,54 +0,0 @@
{ 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

@ -1,83 +0,0 @@
{ 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
]

View file

@ -1,45 +0,0 @@
{ config, pkgs, lib, ... }:
{
imports = [
(import ../session.nix {
inherit config;
sessionVars = {
EDITOR = "vim";
PAGER = "less";
MOZ_ENABLE_WAYLAND= "1";
};
})
../vim
../direnv.nix
../git.nix
../gpg.nix
../gtk.nix
../keyring.nix
../kitty.nix
../ssh.nix
../tmux.nix
../zsh.nix
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = with pkgs; [
file
gnupg
libreoffice
python3
sshfs-fuse
unzip
];
# 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";
}