feat (hosts/selune)!: hostname, formatting

This commit is contained in:
Henri Saudubray 2026-01-20 22:25:15 +01:00
parent 0d21ef6930
commit e105af8358

View file

@ -2,37 +2,27 @@
{ {
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
# Use flakes.
nix.settings.experimental-features = "nix-command flakes"; nix.settings.experimental-features = "nix-command flakes";
# Automatic updating.
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
system.autoUpgrade.dates = "weekly"; system.autoUpgrade.dates = "weekly";
# Automatic cleanup.
nix.gc.automatic = true; nix.gc.automatic = true;
nix.gc.dates = "daily"; nix.gc.dates = "daily";
nix.gc.options = "--delete-older-than 10d"; nix.gc.options = "--delete-older-than 10d";
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
# Bootloader. boot.loader.systemd-boot.enable = true;
boot.loader = { boot.loader.efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.luks.devices."luks-374c6259-18c4-462b-9f30-9c9648de00ae".device = boot.initrd.luks.devices."luks-374c6259-18c4-462b-9f30-9c9648de00ae".device =
"/dev/disk/by-uuid/374c6259-18c4-462b-9f30-9c9648de00ae"; "/dev/disk/by-uuid/374c6259-18c4-462b-9f30-9c9648de00ae";
networking = { networking.hostName = "selune";
hostName = "nixos"; networking.networkmanager.enable = true;
networkmanager.enable = true;
};
# Set your time zone.
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8"; i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8"; LC_ADDRESS = "fr_FR.UTF-8";
@ -46,21 +36,16 @@
LC_TIME = "fr_FR.UTF-8"; LC_TIME = "fr_FR.UTF-8";
}; };
services.xserver = { services.xserver.enable = true;
# Use X11. services.xserver.xkb.layout = "fr";
enable = true; services.xserver.xkb.variant = "ergol";
# Set keyboard layout in X11.
xkb.layout = "fr";
xkb.variant = "ergol";
};
# Use GNOME.
services.displayManager.gdm.enable = true; services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true; services.desktopManager.gnome.enable = true;
services.gnome.gnome-browser-connector.enable = true; services.gnome.gnome-browser-connector.enable = true;
# Use CUPSfor printing.
services.printing.enable = true; services.printing.enable = true;
# Use pipewire for audio.
services.pulseaudio.enable = false; services.pulseaudio.enable = false;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -68,12 +53,11 @@
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
services.openssh.enable = true; services.openssh.enable = true;
# Configure console keymap.
console.keyMap = "fr"; console.keyMap = "fr";
# Define a user account.
users.users.hms = { users.users.hms = {
isNormalUser = true; isNormalUser = true;
description = "hms"; description = "hms";
@ -84,16 +68,11 @@
packages = [ ]; packages = [ ];
}; };
nixpkgs = { nixpkgs.config.allowUnfree = true;
overlays = [ ];
config.allowUnfree = true;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
helix helix
wget wget
gnumake
clang
]; ];
programs.gnupg.agent = { programs.gnupg.agent = {