Files
dotfiles/configuration.nix
2024-04-04 11:58:02 +02:00

115 lines
2.5 KiB
Nix

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, user, allowed, secrets, rice, ... }:
{
imports =
[ # Include the results of the hardware scan.
./system-modules/hardware-configuration.nix
./system-modules/users.nix
./system-modules/sound.nix
./system-modules/ollama.nix
./system-modules/grub.nix
./system-modules/dm.nix
./system-modules/hsmw.nix
./system-modules/health_reminder.nix
./system-modules/davmail.nix
./system-modules/docker.nix
];
networking.hostName = "NxXPS";
networking.networkmanager = {
enable = true;
};
# 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;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
ntfs3g
git
git-crypt
wget
curl
zip
unzip
p7zip
unar
nano
micro
htop
direnv
openssl
blueman
];
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
'';
}