mrflos-nixos-config-fork/machines/MacBookPro12.1-configuration.nix

104 lines
3.1 KiB
Nix
Raw Normal View History

2023-04-14 20:51:52 +00: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, pkgs, ... }:
{
2023-08-13 16:18:11 +00:00
hardware.bluetooth.enable = true;
2023-06-19 12:52:25 +00:00
2023-04-14 20:51:52 +00:00
# Additional configuration from github/jeremiehuchet/nixos-macbookpro
boot.kernelParams = [
"hid_apple.fnmode=1"
"hid_apple.swap_fn_leftctrl=1"
"hid_apple.iso_layout=0"
2023-04-14 20:51:52 +00:00
];
2024-09-05 12:39:17 +00:00
boot.kernel.sysctl = {
"vm.swappiness" = 10;
};
2023-04-14 20:51:52 +00:00
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.consoleMode = "0";
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2024-01-11 18:17:29 +00:00
networking.hostName = "luffy"; # Define your hostname.
2023-04-14 20:51:52 +00:00
networking.extraHosts = ''
127.0.0.1 yeswiki.test
2024-07-03 07:46:47 +00:00
192.168.36.206 chmok.net
fd72:51a6:d583:0:984a:cc56:cf75:dc6 chmok.net
2023-04-14 20:51:52 +00:00
'';
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
networking.firewall = {
enable = true;
2024-09-05 12:39:17 +00:00
allowedTCPPorts = [
80
443
];
2023-04-14 20:51:52 +00:00
};
# Set your time zone.
time.timeZone = "Europe/Moscow";
# Select internationalisation properties.
i18n.defaultLocale = "fr_FR.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8";
LC_ALL = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_MESSAGES = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
};
2023-11-03 08:09:19 +00:00
2023-04-14 20:51:52 +00:00
# Configure keymap in X11
services.xserver = {
2024-07-03 07:46:47 +00:00
xkb.layout = "us,ru";
xkb.variant = "mac";
2023-04-14 20:51:52 +00:00
};
imports = [
../modules/console.nix
../modules/desktop.nix
../modules/fonts.nix
../modules/home-config.nix
2023-04-14 20:51:52 +00:00
../modules/laptop.nix
../modules/local-dev.nix
../modules/nixos.nix
2023-04-14 20:51:52 +00:00
];
2024-09-05 12:39:17 +00:00
services.eris-server = {
enable = true;
backends = [
2024-09-05 12:37:23 +00:00
"badger+file:///var/eris?put&get" # local one on /var/eris
# "coap+tcp://eris.example.com:5683?get" # an online one
2024-09-05 12:39:17 +00:00
];
mountpoint = "/mnt/media/eris"; # useful to mount eris-fs folders
listenHttp = ":8080"; # or "[::1]:8080"
listenCoap = ":5683"; # or "[::1]:5683"
decode = true; # for http access via https://127.0.0.1:8080/uri-res/N2R?urn:eris:...
package = pkgs.eris-go; # default package
};
2023-04-14 20:51:52 +00:00
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
2023-06-19 12:52:25 +00:00
system.stateVersion = "23.05"; # Did you read the comment?
2023-04-14 20:51:52 +00:00
}