Dmitriy Pleshevskiy
dab505e62b
nix: refac overlays nix: fix path to packages nix: use mkMerge nix: rename nixpkgs-unstable input user: remove my tools user: build use unstable packages for nil cannot be built on stable because it requires rustc 1.66 or newer, while the currently active rustc version is 1.64.0 host/magenta: use unstable gitea nix: fix rollback command nix: fix overlays user: use unstable haskell packages to build xmonad user: don't build woodpecker-cli host: import nix module for canigou and magenta pkgs: fix woodpecker host/home: use unstable kernel to use rtl88x2bu driver host: use unstable ipfs move ipfs to shared config user: use unstable woodpecker-cli Reviewed-on: #13
75 lines
1.6 KiB
Nix
75 lines
1.6 KiB
Nix
{ config, pkgs, ... }:
|
||
|
||
{
|
||
imports = [
|
||
# Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
../../shared/common.nix
|
||
../../shared/sound.nix
|
||
../../shared/window-manager.nix
|
||
../../shared/fonts.nix
|
||
../../shared/gnupg.nix
|
||
../../shared/garbage-collector.nix
|
||
../../shared/networking.secret.nix
|
||
../../shared/ipfs.nix
|
||
];
|
||
|
||
# Use latest kernel
|
||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||
|
||
# Use the systemd-boot EFI boot loader.
|
||
boot.loader = {
|
||
systemd-boot = {
|
||
enable = true;
|
||
configurationLimit = 10;
|
||
};
|
||
|
||
efi.canTouchEfiVariables = true;
|
||
};
|
||
|
||
networking = {
|
||
hostName = "laptop"; # Define your hostname.
|
||
|
||
useDHCP = false;
|
||
interfaces = {
|
||
enp3s0.useDHCP = true;
|
||
wlp2s0.useDHCP = true;
|
||
};
|
||
|
||
networkmanager.enable = true;
|
||
};
|
||
|
||
# enable bluetooth
|
||
hardware.bluetooth.enable = true;
|
||
|
||
# configure mouse and touchpad
|
||
services.xserver.libinput = {
|
||
enable = true;
|
||
touchpad = {
|
||
accelSpeed = "0.5";
|
||
disableWhileTyping = true;
|
||
};
|
||
};
|
||
|
||
services.logind.extraConfig = ''
|
||
# don’t shutdown when power button is short-pressed
|
||
HandlePowerKey=ignore
|
||
'';
|
||
|
||
# Enable the Docker
|
||
virtualisation.docker.enable = true;
|
||
|
||
# Additional nix configs
|
||
local.nix.enableMyRegistry = true;
|
||
|
||
# Wireguard client
|
||
age.secrets.wireguard-asus-gl553vd-private = {
|
||
file = ../../../secrets/wireguard-asus-gl553vd-private.age;
|
||
mode = "0400";
|
||
};
|
||
local.wireguard = {
|
||
enable = false;
|
||
ip = "10.100.0.3/24";
|
||
privateKeyFile = config.age.secrets.wireguard-asus-gl553vd-private.path;
|
||
};
|
||
}
|