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