beautification

This commit is contained in:
Giulio De Pasquale 2021-07-01 06:26:22 +02:00
parent 304dcdf1ca
commit 90d56d059f

View File

@ -1,49 +1,78 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./hardware-configuration.nix ]; imports = [ configuration.nix ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
networking.hostName = "gAluminum";
time.timeZone = "Europe/London"; time.timeZone = "Europe/Rome";
i18n.defaultLocale = "en_US.UTF-8"; fileSystems."/tmp" = {
console = { device = "tmpfs";
font = "Lat2-Terminus16"; fsType = "tmpfs";
keyMap = "us"; options = ["size=2G"];
}; };
# Xserver fileSystems."/home/giulio/Downloads" = {
services.xserver.enable = true; device = "tmpfs";
services.xserver.displayManager.gdm.enable = true; fsType = "tmpfs";
services.xserver.desktopManager.gnome.enable = true; options = ["size=3G"];
};
# Configure keymap in X11 boot = {
services.xserver.layout = "us"; loader.efi.canTouchEfiVariables = true;
services.xserver.xkbOptions = "eurosign:e"; loader.efi.efiSysMountPoint = "/boot/efi";
loader.systemd-boot.enable = true;
initrd.luks.devices = {
root = {
device = "/dev/disk/by-uuid/c2bac3a6-0999-4e1d-a676-bf4bcafee2d4";
preLVM = true;
allowDiscards = true;
};
};
};
networking = {
hostName = "gAluminum";
wg-quick.interfaces = {
giupi = {
address = ["10.3.0.2/32"];
privateKeyFile = "/etc/wireguard/giupi.key";
dns = ["10.3.0.1"];
peers = [
{
publicKey = "I4glUMvIGjjhvQMKhwGc8copPl2t9Us/YYRjT0BKuiw=";
allowedIPs = ["0.0.0.0/0"];
endpoint = "giugl.io:1194";
persistentKeepalive = 25;
}
];
};
};
};
services = {
xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
libinput.enable = true;
layout = "us";
xkbOptions = "eurosign:e";
};
printing.enable = true;
dbus.packages = with pkgs; [ gnome3.dconf ];
udev.packages = with pkgs; [ gnome3.gnome-settings-daemon ];
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.giulio = {
description = "Giulio De Pasquale";
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [ "wheel" "docker" "networkmanager" ];
};
programs.zsh.enableCompletion = true;
programs.zsh.enableBashCompletion = true;
services.dbus.packages = with pkgs; [ gnome3.dconf ];
services.udev.packages = with pkgs; [ gnome3.gnome-settings-daemon ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
git git
@ -70,44 +99,5 @@
security.pam.services.gdm.enableGnomeKeyring = true; security.pam.services.gdm.enableGnomeKeyring = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.systemd-boot.enable = true;
boot.initrd.luks.devices = {
root = {
device = "/dev/disk/by-uuid/c2bac3a6-0999-4e1d-a676-bf4bcafee2d4";
preLVM = true;
allowDiscards = true;
};
};
networking.wg-quick.interfaces = {
giupi = {
address = ["10.3.0.2/32"];
privateKeyFile = "/etc/wireguard/giupi.key";
dns = ["10.3.0.1"];
peers = [
{
publicKey = "I4glUMvIGjjhvQMKhwGc8copPl2t9Us/YYRjT0BKuiw=";
allowedIPs = ["0.0.0.0/0"];
endpoint = "giugl.io:1194";
persistentKeepalive = 25;
}
];
};
};
fileSystems."/tmp" = {
device = "tmpfs";
fsType = "tmpfs";
options = ["size=2G"];
};
fileSystems."/home/giulio/Downloads" = {
device = "tmpfs";
fsType = "tmpfs";
options = ["size=3G"];
};
} }