117 lines
2.5 KiB
Nix
117 lines
2.5 KiB
Nix
{ config, lib, pkgs, user, host, allowed, secrets, rice, nvidia, ... }:
|
|
let
|
|
in
|
|
{
|
|
imports = [
|
|
./system-modules/hardware-configuration.nix
|
|
./system-modules/fuse.nix
|
|
./system-modules/nvidia.nix # only does stuff if nvidia.enabled
|
|
./system-modules/users.nix
|
|
./system-modules/sound.nix
|
|
./system-modules/boot.nix
|
|
./system-modules/dm.nix
|
|
./system-modules/networking.nix
|
|
./system-modules/virtualisation.nix
|
|
|
|
./system-modules/hsmw.nix
|
|
./system-modules/docker.nix
|
|
./system-modules/health_reminder.nix
|
|
# ./system-modules/davmail.nix
|
|
./system-modules/ollama.nix
|
|
# ./system-modules/nx2site.nix
|
|
];
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
# Select internationalisation properties.
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
console.font = "Lat2-Terminus16";
|
|
console.keyMap = "de";
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
xkb = {
|
|
layout = "de";
|
|
options = "eurosign:e,caps:escape";
|
|
};
|
|
# lightdm in lightdm.nix
|
|
};
|
|
# Enable CUPS to print documents.
|
|
services.printing.enable = true;
|
|
|
|
# rtkit is optional but recommended
|
|
security.rtkit.enable = true;
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
|
services.xserver.libinput.enable = true;
|
|
hardware.uinput.enable = true;
|
|
|
|
# log into this machine
|
|
services.openssh.enable = false;
|
|
|
|
|
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
|
hardware.bluetooth.powerOnBoot = true; #
|
|
services.blueman.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
# nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) allowed.unfree-packages;
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
# $ nix search wget
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
git-crypt
|
|
wget
|
|
curl
|
|
zip
|
|
unzip
|
|
p7zip
|
|
unar
|
|
nano
|
|
micro
|
|
htop
|
|
direnv
|
|
openssl
|
|
blueman
|
|
dmidecode
|
|
file
|
|
];
|
|
|
|
|
|
fonts.packages = with pkgs; [
|
|
noto-fonts
|
|
noto-fonts-cjk
|
|
noto-fonts-emoji
|
|
] ++ [
|
|
rice.font.base.package
|
|
rice.font.code.package
|
|
];
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
|
|
programs.hyprland = {
|
|
# config is done with home-manager
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
programs.bash.shellInit = ''
|
|
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
'';
|
|
}
|