2024-03-03 01:56:35 +01:00
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
# 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`).
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./disko-config.nix
|
|
|
|
|
|
|
|
./home.nix
|
|
|
|
./secrets.nix
|
|
|
|
];
|
|
|
|
|
2024-06-07 16:37:32 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_9;
|
2024-03-04 16:04:50 +01:00
|
|
|
# Set Wi-Fi regulatory domain. Currently always set to '00' (world), and could
|
|
|
|
# lead to bad Wi-Fi performance
|
|
|
|
boot.kernelParams = ["cfg80211.ieee80211_regdom=FR"];
|
2024-03-03 01:56:35 +01:00
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
editor = false;
|
|
|
|
consoleMode = "auto";
|
|
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
boot.tmp.useTmpfs = true;
|
|
|
|
|
|
|
|
services.btrfs = {
|
|
|
|
autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
fileSystems = ["/"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "talos"; # Define your hostname.
|
|
|
|
networking.domain = "alarsyo.net";
|
|
|
|
# Pick only one of the below networking options.
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
2024-03-04 16:24:00 +01:00
|
|
|
networking.networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
wifi.powersave = true;
|
|
|
|
};
|
2024-03-03 01:56:35 +01:00
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
|
|
|
|
# Configure network proxy if necessary
|
|
|
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
|
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
light.enable = true;
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
fwupd.enable = true;
|
|
|
|
openssh.enable = true;
|
|
|
|
};
|
|
|
|
virtualisation = {
|
|
|
|
docker.enable = true;
|
2024-03-14 11:49:27 +01:00
|
|
|
libvirtd.enable = false;
|
2024-06-28 22:26:34 +02:00
|
|
|
virtualbox.host = {
|
|
|
|
enable = false;
|
|
|
|
};
|
2024-03-03 01:56:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
my.services = {
|
|
|
|
tailscale = {
|
|
|
|
enable = true;
|
|
|
|
useRoutingFeatures = "client";
|
|
|
|
};
|
|
|
|
|
|
|
|
pipewire.enable = true;
|
2024-03-05 05:07:46 +01:00
|
|
|
|
|
|
|
restic-backup = {
|
|
|
|
enable = true;
|
|
|
|
repo = "b2:talos-backup";
|
|
|
|
passwordFile = config.age.secrets."restic-backup/talos-password".path;
|
|
|
|
environmentFile = config.age.secrets."restic-backup/talos-credentials".path;
|
|
|
|
|
|
|
|
timerConfig = {
|
|
|
|
OnCalendar = "*-*-* 13:00:00"; # laptop only gets used during the day
|
|
|
|
};
|
|
|
|
|
|
|
|
paths = [
|
|
|
|
"/home/alarsyo"
|
|
|
|
];
|
|
|
|
exclude = [
|
|
|
|
"/home/alarsyo/Downloads"
|
|
|
|
|
|
|
|
# Rust builds using half my storage capacity
|
|
|
|
"/home/alarsyo/**/target"
|
|
|
|
"/home/alarsyo/work/rust/build"
|
|
|
|
|
|
|
|
# don't backup nixpkgs
|
|
|
|
"/home/alarsyo/work/nixpkgs"
|
|
|
|
|
|
|
|
"/home/alarsyo/go"
|
|
|
|
|
|
|
|
# C build crap
|
|
|
|
"*.a"
|
|
|
|
"*.o"
|
|
|
|
"*.so"
|
|
|
|
|
|
|
|
".direnv"
|
|
|
|
|
|
|
|
# test vms
|
|
|
|
"*.qcow2"
|
2024-06-28 22:26:34 +02:00
|
|
|
"*.vbox"
|
|
|
|
"*.vdi"
|
2024-03-05 05:07:46 +01:00
|
|
|
|
|
|
|
# secrets stay offline
|
|
|
|
"/home/alarsyo/**/secrets"
|
|
|
|
|
|
|
|
# ignore all dotfiles as .config and .cache can become quite big
|
|
|
|
"/home/alarsyo/.*"
|
|
|
|
];
|
|
|
|
};
|
2024-03-03 01:56:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
my.gui.enable = true;
|
|
|
|
my.displayManager.sddm.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
powerOnBoot = false;
|
|
|
|
settings.General.Experimental = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure console keymap
|
|
|
|
console.keyMap = "us";
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "fr_FR.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "fr_FR.UTF-8";
|
|
|
|
LC_MEASUREMENT = "fr_FR.UTF-8";
|
|
|
|
LC_MONETARY = "fr_FR.UTF-8";
|
|
|
|
LC_NAME = "fr_FR.UTF-8";
|
|
|
|
LC_PAPER = "fr_FR.UTF-8";
|
|
|
|
LC_TELEPHONE = "fr_FR.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
# Enable the KDE Plasma Desktop Environment.
|
2024-05-30 01:45:26 +02:00
|
|
|
services.displayManager.sddm = {
|
2024-03-03 01:56:35 +01:00
|
|
|
enable = true;
|
|
|
|
wayland.enable = true;
|
|
|
|
};
|
2024-06-04 16:53:37 +02:00
|
|
|
services.desktopManager.plasma6.enable = true;
|
2024-03-03 01:56:35 +01:00
|
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
|
2024-03-11 19:45:30 +01:00
|
|
|
environment.systemPackages = [
|
2024-06-07 15:34:58 +02:00
|
|
|
pkgs.unstable.zed-editor
|
2024-03-11 19:45:30 +01:00
|
|
|
];
|
|
|
|
|
2024-03-03 01:56:35 +01:00
|
|
|
#programs.hyprland.enable = true;
|
|
|
|
#programs.sway = {
|
|
|
|
# enable = true;
|
|
|
|
# wrapperFeatures.gtk = true;
|
|
|
|
#};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
}
|