2023-02-11 02:27:39 +00:00
|
|
|
# Edit this configuration file to define what should be installed on
|
2024-05-06 03:17:53 +00:00
|
|
|
# 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`).
|
2023-02-11 02:27:39 +00:00
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
2024-05-06 03:17:53 +00:00
|
|
|
[ # Include the results of the hardware scan.
|
2023-03-01 05:08:07 +00:00
|
|
|
./btrbk.nix
|
2024-05-06 22:12:15 +00:00
|
|
|
./builder.nix
|
|
|
|
./dual-graphics.nix
|
2023-02-11 02:27:39 +00:00
|
|
|
./hardware-configuration.nix
|
|
|
|
./wireguard.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Nix cache
|
|
|
|
nix.extraOptions = ''
|
|
|
|
secret-key-files = /etc/nix/cache-priv-key.pem
|
|
|
|
'';
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
# Use the systemd-boot EFI boot loader.
|
2023-02-11 02:27:39 +00:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
boot.initrd.luks.devices."luks-18cf6425-3540-4121-9313-dc3307d8f42a".device = "/dev/disk/by-uuid/18cf6425-3540-4121-9313-dc3307d8f42a";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
2024-05-04 21:41:54 +00:00
|
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
|
|
|
|
2023-02-11 02:27:39 +00:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
|
|
|
fileSystems = {
|
2024-05-06 03:17:53 +00:00
|
|
|
"/".options = ["compress=zstd"];
|
|
|
|
"/home".options = ["compress=zstd"];
|
|
|
|
"/nix".options = ["compress=zstd" "noatime"];
|
|
|
|
"/root".options = ["compress=zstd"];
|
|
|
|
"/var/log".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Development".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Documents".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Downloads".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Games".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/InstantUpload".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Music".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Pictures".options = ["compress=zstd"];
|
|
|
|
"/home/asonix/Videos".options = ["compress=zstd"];
|
2023-02-11 02:27:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "firestar"; # Define your hostname.
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
services.btrfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
interval = "weekly";
|
|
|
|
fileSystems = [
|
|
|
|
"/"
|
|
|
|
"/home"
|
|
|
|
"/root"
|
|
|
|
"/var/log"
|
|
|
|
"/home/asonix/Development"
|
|
|
|
"/home/asonix/Documents"
|
|
|
|
"/home/asonix/Downloads"
|
|
|
|
"/home/asonix/Games"
|
|
|
|
"/home/asonix/InstantUpload"
|
|
|
|
"/home/asonix/Music"
|
|
|
|
"/home/asonix/Pictures"
|
|
|
|
"/home/asonix/Videos"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-02-11 02:27:39 +00:00
|
|
|
# Open ports in the firewall.
|
|
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
# networking.firewall.enable = false;
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
2024-05-06 03:17:53 +00: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;
|
|
|
|
|
|
|
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
|
|
|
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
|
|
|
#
|
|
|
|
# Most users should NEVER change this value after the initial install, for any reason,
|
|
|
|
# even if you've upgraded your system to a new NixOS release.
|
|
|
|
#
|
|
|
|
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
|
|
|
# so changing it will NOT upgrade your system.
|
|
|
|
#
|
|
|
|
# This value being lower than the current NixOS release does NOT mean your system is
|
|
|
|
# out of date, out of support, or vulnerable.
|
|
|
|
#
|
|
|
|
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
|
|
|
# and migrated your data accordingly.
|
|
|
|
#
|
|
|
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
2023-02-11 02:27:39 +00:00
|
|
|
|
|
|
|
}
|