99 lines
1.9 KiB
Nix
99 lines
1.9 KiB
Nix
# 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, inputs, outputs, ... }:
|
|
|
|
{
|
|
imports =
|
|
[ # Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
../common
|
|
./home.nix
|
|
# Services
|
|
./btrbk.nix
|
|
./syncthing.nix
|
|
];
|
|
|
|
# Boot configuration
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.systemd-boot.configurationLimit = 10;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Networking
|
|
networking.hostName = "gwiad";
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
# Console
|
|
console = {
|
|
keyMap = "fr";
|
|
};
|
|
|
|
# Enable CUPS to print documents.
|
|
# services.printing.enable = true;
|
|
|
|
# For VSCode
|
|
nixpkgs = {
|
|
config.allowUnfree = true;
|
|
overlays = [
|
|
inputs.nix-vscode-extensions.overlays.default
|
|
];
|
|
};
|
|
|
|
# System packages
|
|
environment.systemPackages = with pkgs; [
|
|
android-tools
|
|
bc
|
|
git
|
|
htop
|
|
jq
|
|
ncdu
|
|
rclone
|
|
tmux
|
|
tree
|
|
unzip
|
|
vim
|
|
zip
|
|
];
|
|
|
|
virtualisation.docker.rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
|
|
# Fonts
|
|
fonts.packages = with pkgs; [
|
|
monocraft
|
|
];
|
|
|
|
# GNOME
|
|
services.xserver = {
|
|
enable = true;
|
|
xkb.layout = "fr";
|
|
excludePackages = with pkgs; [
|
|
xterm
|
|
];
|
|
};
|
|
services.displayManager.gdm.enable = true;
|
|
services.desktopManager.gnome.enable = true;
|
|
environment.gnome.excludePackages = with pkgs; [
|
|
epiphany
|
|
geary
|
|
gnome-tour
|
|
orca
|
|
];
|
|
|
|
environment.variables.EDITOR = "vim";
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
# started in user sessions.
|
|
# programs.mtr.enable = true;
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|