2024-08-23 10:20:05 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
{
|
|
|
|
|
|
imports = [
|
|
|
|
|
|
./hardware-configuration-t470.nix
|
2024-08-23 14:39:38 +02:00
|
|
|
|
./common.nix
|
|
|
|
|
|
|
2024-08-23 10:20:05 +02:00
|
|
|
|
./borgbackup.nix
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
networking.hostName = "t470"; # Define your hostname.
|
|
|
|
|
|
|
|
|
|
|
|
# automount smb music share
|
|
|
|
|
|
fileSystems."/home/khais/Music" = {
|
|
|
|
|
|
device = "//void/Music";
|
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
|
options = let
|
|
|
|
|
|
# prevent hanging when network is not reachable
|
|
|
|
|
|
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
|
|
|
|
|
in [ "${automount_opts},credentials=/etc/nixos/secrets/music.smb" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/home/khais/Books" = {
|
|
|
|
|
|
device = "//void/Books";
|
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
|
options = let
|
|
|
|
|
|
# prevent hanging when network is not reachable
|
|
|
|
|
|
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
|
|
|
|
|
in [ "${automount_opts},credentials=/etc/nixos/secrets/books.smb" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# fingerprint sensor setup
|
|
|
|
|
|
services.open-fprintd.enable = true;
|
|
|
|
|
|
services.python-validity.enable = true;
|
|
|
|
|
|
}
|