2023-03-15 19:47:58 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-04-04 12:08:13 +02:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2023-05-02 21:09:43 +02:00
|
|
|
../../modules/hardware/nvidia.nix
|
2023-03-15 19:47:58 +01:00
|
|
|
|
2023-04-04 12:08:13 +02:00
|
|
|
../../modules/apps/virtualbox
|
|
|
|
../../modules/des/gnome
|
|
|
|
];
|
|
|
|
|
2023-10-01 16:56:12 +02:00
|
|
|
boot = {
|
|
|
|
# Use the systemd-boot EFI boot loader.]
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
efiSysMountPoint = "/boot/efi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
initrd = {
|
|
|
|
# Setup keyfile
|
|
|
|
secrets."/crypto_keyfile.bin" = null;
|
|
|
|
|
|
|
|
# Enable swap on luks
|
|
|
|
luks.devices."luks-3825c43c-6cc4-4846-b1cc-02b5938640c9" = {
|
|
|
|
device = "/dev/disk/by-uuid/3825c43c-6cc4-4846-b1cc-02b5938640c9";
|
|
|
|
keyFile = "/crypto_keyfile.bin";
|
|
|
|
};
|
2023-03-15 19:47:58 +01:00
|
|
|
};
|
2023-03-22 22:12:19 +01:00
|
|
|
};
|
|
|
|
|
2023-10-01 16:56:12 +02:00
|
|
|
networking = {
|
|
|
|
hostName = "Tibo-NixFat";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
};
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-03-15 19:47:58 +01:00
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Brussels";
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-03-15 19:47:58 +01:00
|
|
|
# Configure network proxy if necessary
|
|
|
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
|
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-03-22 22:12:19 +01:00
|
|
|
# Enable sound with pipewire.
|
2023-03-15 19:47:58 +01:00
|
|
|
sound.enable = true;
|
2023-03-22 22:12:19 +01:00
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
# If you want to use JACK applications, uncomment this
|
|
|
|
#jack.enable = true;
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-03-22 22:12:19 +01:00
|
|
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
|
|
# no need to redefine it in your config for now)
|
|
|
|
#media-session.enable = true;
|
|
|
|
};
|
2023-06-14 17:17:06 +02:00
|
|
|
|
2023-03-15 19:47:58 +01:00
|
|
|
# Enable Bluetooth.
|
|
|
|
hardware.bluetooth.enable = true;
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-10-01 16:56:12 +02:00
|
|
|
services = {
|
|
|
|
logind = {
|
|
|
|
lidSwitch = "hybrid-sleep";
|
|
|
|
lidSwitchExternalPower = "lock";
|
|
|
|
lidSwitchDocked = "ignore";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
|
|
|
xserver = {
|
|
|
|
libinput.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-22 22:12:19 +01:00
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2023-03-15 19:47:58 +01:00
|
|
|
# Copy the NixOS configuration file and link it from the resulting system
|
|
|
|
# (/run/current-system/configuration.nix). This is useful in case you
|
|
|
|
# accidentally delete configuration.nix.
|
|
|
|
# system.copySystemConfiguration = true;
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-06-23 21:50:31 +02:00
|
|
|
system.stateVersion = "23.05";
|
2023-03-15 19:47:58 +01:00
|
|
|
}
|
|
|
|
|