2023-09-09 01:10:22 +02:00
|
|
|
|
# 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’).
|
2023-11-26 21:26:49 +01:00
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
2023-12-10 23:21:45 +01:00
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
|
"electron-25.9.0"
|
2024-07-30 22:06:36 +02:00
|
|
|
|
"electron-27.3.11"
|
2023-12-10 23:21:45 +01:00
|
|
|
|
];
|
2023-11-26 21:26:49 +01:00
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
../../common.nix
|
|
|
|
|
../../modules
|
2024-03-06 11:31:47 +01:00
|
|
|
|
./modules
|
2023-11-26 21:26:49 +01:00
|
|
|
|
];
|
2023-09-09 01:10:22 +02:00
|
|
|
|
jade = {
|
2024-08-01 08:17:09 +02:00
|
|
|
|
hwKey.pamAuth.enable = true;
|
2023-09-09 01:10:22 +02:00
|
|
|
|
desktop = {
|
2024-08-01 08:07:17 +02:00
|
|
|
|
dm.autoLogin = {
|
|
|
|
|
enable = true;
|
|
|
|
|
delay = 5;
|
|
|
|
|
};
|
2023-09-09 01:10:22 +02:00
|
|
|
|
syncthing.enable = true;
|
|
|
|
|
kdeconnect.enable = true;
|
|
|
|
|
cloud.enable = true;
|
|
|
|
|
social.enable = true;
|
|
|
|
|
mail.enable = true;
|
|
|
|
|
gaming.enable = true;
|
2024-03-05 13:10:08 +01:00
|
|
|
|
};
|
2023-09-09 01:10:22 +02:00
|
|
|
|
};
|
2023-11-07 08:05:47 +01:00
|
|
|
|
|
2024-06-17 17:22:03 +02:00
|
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
|
|
2023-11-07 08:05:47 +01:00
|
|
|
|
hardware.usb-modeswitch.enable = true;
|
2023-10-28 22:25:06 +02:00
|
|
|
|
systemd.services."ModemManager".enable = true;
|
2023-11-26 21:26:49 +01:00
|
|
|
|
systemd.services."ModemManager".wants = ["NetworkManager.service"];
|
|
|
|
|
systemd.services."ModemManager".wantedBy = ["multi-user.target"];
|
2023-11-07 08:05:47 +01:00
|
|
|
|
|
2024-02-27 18:18:08 +01:00
|
|
|
|
environment.variables = {
|
|
|
|
|
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
2024-04-16 22:06:12 +02:00
|
|
|
|
S10E_JRNL_FILE_LOC = "/home/jade/Docs/jrnl.md";
|
2024-02-27 18:18:08 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
intel-ocl
|
|
|
|
|
intel-media-driver
|
|
|
|
|
intel-vaapi-driver
|
|
|
|
|
intel-compute-runtime
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
mesa.drivers
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2023-10-28 22:25:06 +02:00
|
|
|
|
programs.wireshark.enable = true;
|
2023-09-09 01:10:22 +02:00
|
|
|
|
|
|
|
|
|
boot.resumeDevice = "/dev/disk/by-uuid/4f9e8afa-f8d7-40bf-b3ea-17e8e8fbb694";
|
2023-11-26 21:26:49 +01:00
|
|
|
|
boot.kernelParams = ["resume_offset=7380652"];
|
2023-09-09 01:10:22 +02:00
|
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
2023-09-09 01:10:22 +02:00
|
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
|
2024-02-06 19:32:18 +01:00
|
|
|
|
environment.systemPackages = [
|
|
|
|
|
pkgs.plantuml
|
|
|
|
|
pkgs.mqttui
|
|
|
|
|
pkgs.mobile-broadband-provider-info
|
|
|
|
|
pkgs.modem-manager-gui
|
|
|
|
|
pkgs.wireshark
|
|
|
|
|
];
|
2023-09-09 01:10:22 +02:00
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
# Setup keyfile
|
|
|
|
|
boot.initrd.secrets = {
|
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-25 19:24:42 +02:00
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
2023-09-09 01:10:22 +02:00
|
|
|
|
|
2024-03-05 13:49:22 +01:00
|
|
|
|
# networking
|
2023-09-09 01:10:22 +02:00
|
|
|
|
networking.networkmanager.enable = true;
|
2024-03-05 13:49:22 +01:00
|
|
|
|
networking.hostName = "catbook-j";
|
2024-02-13 21:22:25 +01:00
|
|
|
|
|
2023-09-09 01:10:22 +02:00
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
|
};
|
2023-11-14 13:43:01 +01:00
|
|
|
|
|
2023-09-09 01:10:22 +02:00
|
|
|
|
# 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?
|
|
|
|
|
}
|