2024-04-21 10:59:29 +02:00
|
|
|
{ system, config, pkgs, ... }:
|
2023-11-28 23:24:43 +01:00
|
|
|
{
|
|
|
|
imports =
|
2024-04-10 16:51:28 +02:00
|
|
|
[
|
|
|
|
# Include the results of the hardware scan.
|
2024-03-24 16:59:47 +01:00
|
|
|
./modules/fonts.nix
|
|
|
|
./modules/tabletdriver.nix
|
2024-04-21 11:25:35 +02:00
|
|
|
./sway
|
2023-11-28 23:24:43 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Bootloader.
|
2023-12-28 12:39:55 +01:00
|
|
|
boot = {
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
2024-03-24 10:16:04 +01:00
|
|
|
kernelPackages = pkgs.linuxPackages_zen;
|
2023-12-28 12:39:55 +01:00
|
|
|
};
|
2023-11-28 23:24:43 +01:00
|
|
|
|
|
|
|
# Enable flatpaks
|
|
|
|
services.flatpak.enable = true;
|
2024-04-16 12:25:00 +02:00
|
|
|
|
2024-03-16 18:28:01 +01:00
|
|
|
grimmShared = {
|
|
|
|
enable = true;
|
|
|
|
locale = true;
|
|
|
|
printing = true;
|
|
|
|
portals = true;
|
|
|
|
network = true;
|
|
|
|
tooling = {
|
|
|
|
enable = true;
|
2024-04-26 21:36:24 +02:00
|
|
|
lilypond = true;
|
|
|
|
};
|
|
|
|
sound = {
|
|
|
|
enable = true;
|
|
|
|
midi = true;
|
2024-03-16 18:28:01 +01:00
|
|
|
};
|
|
|
|
graphical = true;
|
2024-03-17 11:28:47 +01:00
|
|
|
firefox = {
|
|
|
|
enable = true;
|
|
|
|
plugins = {
|
|
|
|
"uBlock0@raymondhill.net" = "ublock-origin";
|
|
|
|
"gdpr@cavi.au.dk" = "consent-o-matic";
|
|
|
|
"{41f9e51d-35e4-4b29-af66-422ff81c8b41}" = "disable-javascript";
|
|
|
|
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = "styl-us";
|
|
|
|
"wappalyzer@crunchlabz.com" = "wappalyzer";
|
|
|
|
"{b9db16a4-6edc-47ec-a1f4-b86292ed211d}" = "video-downloadhelper";
|
|
|
|
"{1526fba1-ac33-4dfc-99d8-163e6129f7b9}" = "reveye-ris";
|
|
|
|
};
|
|
|
|
};
|
2024-03-26 10:36:33 +01:00
|
|
|
cloudSync = {
|
2024-04-22 11:04:46 +02:00
|
|
|
# enable = true;
|
2024-03-26 10:36:33 +01:00
|
|
|
username = "Grimmauld";
|
|
|
|
server = "cloud.grimmauld.de";
|
|
|
|
passwordFile = config.age.secrets.nextcloud_pass.path;
|
|
|
|
};
|
2024-04-16 13:38:31 +02:00
|
|
|
|
2024-04-16 13:42:06 +02:00
|
|
|
spotify.enable = true;
|
2024-03-26 10:36:33 +01:00
|
|
|
};
|
|
|
|
|
2024-04-16 13:38:31 +02:00
|
|
|
age.identityPaths = [ "/home/grimmauld/.ssh/id_rsa" ];
|
2024-03-26 10:36:33 +01:00
|
|
|
age.secrets.nextcloud_pass = {
|
|
|
|
file = ./secrets/nextcloud_pass.age;
|
|
|
|
mode = "777";
|
2024-03-18 00:40:44 +01:00
|
|
|
};
|
|
|
|
|
2023-11-28 23:24:43 +01:00
|
|
|
environment.sessionVariables = {
|
2024-04-10 16:51:28 +02:00
|
|
|
NIXPKGS_ALLOW_UNFREE = "1";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
# QT_QPA_PLATFORM="wayland-egl";
|
|
|
|
OCI_CLI_RC_FILE = "/home/grimmauld/.oci/config";
|
2023-11-28 23:24:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-04-18 21:16:40 +02:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2023-11-28 23:24:43 +01:00
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2024-04-18 21:16:40 +02:00
|
|
|
nix.package = pkgs.nixVersions.unstable;
|
2024-04-21 10:59:29 +02:00
|
|
|
nixpkgs.hostPlatform = system;
|
2024-04-10 16:51:28 +02:00
|
|
|
|
2023-11-28 23:24:43 +01:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
}
|