unfunctional ldap config

This commit is contained in:
2025-12-15 22:32:45 +01:00
parent 6ea2ee4c38
commit 5c7504c78f

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ lib, config, pkgs, ... }:
{
imports =
@@ -14,7 +14,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.hostName = "potemkin"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
@@ -83,12 +83,26 @@
isNormalUser = true;
description = "Petra Besser";
extraGroups = [ "networkmanager" "wheel" ];
home = "/home-local/petra";
createHome = true;
packages = with pkgs; [
kdePackages.kate
# thunderbird
];
};
users.ldap = {
enable = true;
base = "dc=fet,dc=htu,dc=tuwien,dc=ac,dc=at";
server = "ldap://juri.fet.htu.tuwien.ac.at/";
useTLS = false;
extraConfig = ''
ldap_version 3
pam_password md5
nss_override_attribute_value loginShell /run/current-system/sw/bin/bash
'';
};
# Install firefox.
programs.firefox.enable = true;
@@ -100,6 +114,7 @@
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget
git
];
# Some programs need SUID wrappers, can be configured further or are