nixos-config/systems/ASUS-G46VW/configuration.nix

76 lines
1.9 KiB
Nix
Raw Normal View History

2018-06-09 13:23:26 +02: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, ... }:
{
imports =
2018-09-20 12:22:05 +02:00
[
2019-10-04 22:01:49 +02:00
../common-cli.nix
../common-gui.nix
2018-06-09 13:23:26 +02:00
./hardware-configuration.nix
];
2018-06-09 13:29:41 +02:00
2018-06-09 13:23:26 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2018-09-16 16:59:48 +02:00
boot.tmpOnTmpfs = true;
2018-08-31 22:59:05 +02:00
boot.plymouth.enable = true;
2018-06-09 13:23:26 +02:00
2018-11-11 11:13:25 +01:00
services.tlp.enable = true;
services.tlp.extraConfig = ''
START_CHARGE_THRESH_BAT0=85
STOP_CHARGE_THRESH_BAT0=90
CPU_SCALING_GOVERNOR_ON_BAT=powersave
ENERGY_PERF_POLICY_ON_BAT=powersave
'';
2019-10-04 22:01:49 +02:00
networking.hostName = "rog-paul";
2018-06-09 13:23:26 +02:00
programs.wireshark.enable = true;
programs.wireshark.package = pkgs.wireshark;
2018-06-09 13:29:41 +02:00
networking.firewall.enable = false;
2018-06-09 13:23:26 +02:00
2018-09-16 17:00:34 +02:00
networking.wireguard.interfaces = {
wg0 = {
ips = [ "192.168.20.2/24" ];
allowedIPsAsRoutes = false;
peers = [
{
allowedIPs = [ "0.0.0.0/0" ];
endpoint = "nyanlout.re:51820";
publicKey = "NVLJ30kNP+fK+K3oM1LAcQpvZvz1dvBD8mWNjDf5Z2k=";
}
];
privateKeyFile = "/var/lib/wireguard/wg0.privatekey";
};
};
2018-06-09 13:23:26 +02:00
services.printing.enable = true;
2018-09-16 17:00:49 +02:00
services.printing.drivers = [ pkgs.hplip ];
2018-06-09 13:23:26 +02:00
services.xserver.libinput.enable = true;
services.xserver.libinput.naturalScrolling = true;
users.extraUsers.paul = {
isNormalUser = true;
uid = 1000;
2019-06-30 11:34:09 +02:00
extraGroups = [ "wheel" "networkmanager" "wireshark" "dialout" ];
2018-06-09 13:23:26 +02:00
};
2018-06-09 13:29:41 +02:00
services.syncthing.enable = true;
services.syncthing.user = "paul";
services.syncthing.group = "users";
2019-06-30 11:04:44 +02:00
services.redshift = {
enable = true;
temperature.night = 2700;
};
2019-10-04 21:18:43 +02:00
location.latitude = 48.573406;
location.longitude = 7.752111;
2018-06-09 13:23:26 +02:00
system.stateVersion = "18.03"; # Did you read the comment?
}