113 lines
2.4 KiB
Nix
113 lines
2.4 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, ... }:
|
|
|
|
{
|
|
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/hsmw.nix
|
|
|
|
];
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
# device = "/dev/nvme0n1p1";
|
|
device = "nodev";
|
|
# useOSProber = true;
|
|
efiSupport = true;
|
|
};
|
|
|
|
|
|
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";
|
|
|
|
# Enable the X11 windowing system.
|
|
services.xserver.enable = true;
|
|
|
|
# Configure keymap in X11
|
|
services.xserver.xkb.layout = "de";
|
|
services.xserver.xkb.options = "eurosign:e,caps:escape";
|
|
|
|
# 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;
|
|
|
|
|
|
# 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
|
|
];
|
|
|
|
fonts.packages = with pkgs; [
|
|
noto-fonts
|
|
noto-fonts-cjk
|
|
noto-fonts-emoji
|
|
atkinson-hyperlegible
|
|
(nerdfonts.override { fonts = [ "CascadiaCode" ]; })
|
|
|
|
];
|
|
|
|
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
|
|
'';
|
|
} |