118 lines
3.3 KiB
Nix
118 lines
3.3 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
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{
|
||
config,
|
||
pkgs,
|
||
lib,
|
||
...
|
||
}:
|
||
{
|
||
imports = [
|
||
# Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
|
||
# Core system modules
|
||
../../modules/boot.nix
|
||
../../modules/nix.nix
|
||
../../modules/pam.nix
|
||
../../modules/polkit.nix
|
||
../../modules/zram.nix
|
||
../../modules/thermal.nix
|
||
|
||
# Networking and remote access
|
||
../../modules/openssh.nix
|
||
../../modules/tailscale.nix
|
||
|
||
# User interface and desktop
|
||
../../modules/displaymanager.nix
|
||
../../modules/xdg.nix
|
||
../../modules/sound.nix
|
||
../../modules/bluetooth.nix
|
||
../../modules/desktopApplications.nix
|
||
|
||
# Development tools and user configuration
|
||
../../modules/basePackages.nix
|
||
../../modules/develPackages.nix
|
||
../../modules/gunalx.nix
|
||
|
||
# Containerization and cloud
|
||
../../modules/podman.nix
|
||
|
||
# Scientific and data tools
|
||
../../modules/jupyterhub.nix
|
||
|
||
# Software and gaming
|
||
../../modules/steam.nix
|
||
|
||
# SDR (Software Defined Radio)
|
||
../../modules/rtlsdr.nix
|
||
../../modules/websdr.nix
|
||
|
||
# Secrets management
|
||
../../secrets/sops.nix
|
||
../../secrets/sopsconf.nix
|
||
|
||
];
|
||
|
||
services.desktopManager.gnome.enable = true;
|
||
|
||
environment.systemPackages = [
|
||
pkgs.custom.qwen-asr
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||
|
||
# Setup keyfile
|
||
boot.initrd.secrets = {
|
||
"/crypto_keyfile.bin" = null;
|
||
};
|
||
|
||
# Enable swap on luks
|
||
boot.initrd.luks.devices."luks-08650b6b-6143-4503-8bf5-a3d32ef62d73".device =
|
||
"/dev/disk/by-uuid/08650b6b-6143-4503-8bf5-a3d32ef62d73";
|
||
boot.initrd.luks.devices."luks-08650b6b-6143-4503-8bf5-a3d32ef62d73".keyFile =
|
||
"/crypto_keyfile.bin";
|
||
|
||
networking.hostName = "aragon"; # Define your hostname.
|
||
time.timeZone = "Europe/Amsterdam";
|
||
#time.hardwareClockInLocalTime = true;
|
||
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Enable the X11 windowing system.
|
||
services.xserver.enable = true;
|
||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||
|
||
# sleep wakeup rules
|
||
services.udev.extraRules = ''
|
||
ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled"
|
||
'';
|
||
|
||
#comment out to enable sleep. Uncommented over vacations
|
||
# systemd.targets.sleep.enable = false;
|
||
# systemd.targets.suspend.enable = false;
|
||
# systemd.targets.hibernate.enable = false;
|
||
# systemd.targets.hybrid-sleep.enable = false;
|
||
|
||
# Open ports in the firewall.
|
||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||
# Or disable the firewall altogether.
|
||
networking.firewall.enable = false;
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "23.05"; # Did you read the comment?
|
||
|
||
}
|