2021-07-23 18:47:53 +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’).
|
|
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
let
|
|
|
|
|
secrets = config.my.secrets;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./home.nix
|
|
|
|
|
];
|
|
|
|
|
|
2021-12-04 22:20:23 +01:00
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages;
|
2021-07-23 18:47:53 +02:00
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
services.btrfs = {
|
|
|
|
|
autoScrub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
fileSystems = [ "/" ];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.hostName = "zephyrus"; # Define your hostname.
|
|
|
|
|
networking.domain = "alarsyo.net";
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
|
|
|
|
|
|
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
|
|
|
|
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
|
|
|
|
# replicates the default behaviour.
|
|
|
|
|
networking.interfaces.enp0s31f6.useDHCP = true;
|
|
|
|
|
networking.interfaces.wlp0s20f3.useDHCP = true;
|
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
my.services = {
|
|
|
|
|
tailscale.enable = true;
|
|
|
|
|
|
|
|
|
|
pipewire.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services = {
|
|
|
|
|
xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
windowManager.i3.enable = true;
|
|
|
|
|
layout = "fr";
|
|
|
|
|
xkbVariant = "us";
|
|
|
|
|
libinput.enable = true;
|
|
|
|
|
};
|
2021-07-27 00:33:10 +02:00
|
|
|
|
tlp = {
|
|
|
|
|
settings = {
|
|
|
|
|
START_CHARGE_THRESH_BAT0 = 70;
|
|
|
|
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
|
|
|
};
|
|
|
|
|
};
|
2021-07-27 22:52:07 +02:00
|
|
|
|
fwupd.enable = true;
|
2021-07-23 18:47:53 +02:00
|
|
|
|
};
|
|
|
|
|
my.displayManager.sddm.enable = true;
|
|
|
|
|
|
2021-09-30 15:43:25 +02:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
arandr
|
|
|
|
|
];
|
|
|
|
|
|
2021-07-23 18:47:53 +02:00
|
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
powerOnBoot = false;
|
|
|
|
|
};
|
2021-07-24 01:29:53 +02:00
|
|
|
|
|
|
|
|
|
programs.light.enable = true;
|
2021-07-23 18:47:53 +02:00
|
|
|
|
}
|