mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
116 lines
2.5 KiB
Nix
116 lines
2.5 KiB
Nix
{ config, pkgs, lib, flakes, ...}:
|
|
let
|
|
withAliases = hostname: aliases: cfg:
|
|
lib.recursiveUpdate
|
|
{
|
|
host = "${hostname} ${aliases}";
|
|
hostname = "${hostname}";
|
|
extraOptions.hostKeyAlias = "${hostname}";
|
|
}
|
|
cfg;
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
./alacritty.nix
|
|
./autorandr.nix
|
|
./dunst.nix
|
|
./git.nix
|
|
./gpg.nix
|
|
./i3.nix
|
|
./nextcloud.nix
|
|
./polybar.nix
|
|
./zsh.nix
|
|
];
|
|
|
|
home-manager.users.ellmau = {
|
|
home.packages = [
|
|
pkgs.htop
|
|
pkgs.pavucontrol
|
|
|
|
pkgs.ripgrep
|
|
|
|
pkgs.jabref
|
|
pkgs.libreoffice-fresh
|
|
|
|
pkgs.nixfmt
|
|
pkgs.nixpkgs-fmt
|
|
pkgs.nix-prefetch-github
|
|
|
|
pkgs.neofetch
|
|
|
|
pkgs.jitsi-meet-electron
|
|
pkgs.skypeforlinux
|
|
pkgs.teams
|
|
pkgs.unstable.zoom-us
|
|
pkgs.element-desktop
|
|
pkgs.signal-desktop
|
|
];
|
|
|
|
services = {
|
|
udiskie = {
|
|
enable = true;
|
|
automount = true;
|
|
notify = true;
|
|
tray = "auto";
|
|
};
|
|
blueman-applet.enable = config.variables.graphical;
|
|
network-manager-applet.enable = config.variables.graphical ;
|
|
gnome-keyring = {
|
|
enable = true;
|
|
components = [ "pkcs11" "secrets" "ssh" ];
|
|
};
|
|
};
|
|
|
|
xdg = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
xsession = {
|
|
numlock.enable = true;
|
|
profileExtra = ''
|
|
if [ $(hostname) = 'stel-xps' ]; then
|
|
brightnessctl s 50%
|
|
fi
|
|
'';
|
|
};
|
|
|
|
home.file.".background-image".source = ../common/wallpaper/nix-wallpaper-nineish-dark-gray.png;
|
|
|
|
programs.home-manager = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.ssh = {
|
|
enable = true;
|
|
|
|
forwardAgent = true;
|
|
serverAliveInterval = 5;
|
|
hashKnownHosts = true;
|
|
controlMaster = "auto";
|
|
controlPersist = "60s";
|
|
|
|
# matchBlocks = {
|
|
# "iccl-share.inf.tu-dresden.de" =
|
|
# withAliases "iccl-share.inf.tu-dresden.de" "iccl-share" {
|
|
# proxyJump = "tcs.inf.tu-dresden.de";
|
|
# };
|
|
# "iccl.inf.tu-dresden.de" = withAliases "iccl.inf.tu-dresden.de" "" {
|
|
# proxyJump = "tcs.inf.tu-dresden.de";
|
|
# };
|
|
# "wille.inf.tu-dresden.de" =
|
|
# withAliases "wille.inf.tu-dresden.de" "wille wi" {
|
|
# proxyJump = "tcs.inf.tu-dresden.de";
|
|
# };
|
|
# "tcs.inf.tu-dresden.de" =
|
|
# withAliases "tcs.inf.tu-dresden.de" "tcs" { };
|
|
# };
|
|
};
|
|
};
|
|
}
|