2021-12-16 00:40:44 +01:00
|
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
# TODO(wpcarro): Drop dependency on the briefcase concept.
|
|
|
|
wpcarros-emacs = depot.users.wpcarro.emacs.nixos {
|
|
|
|
briefcasePath = "$HOME/depot/users/wpcarro";
|
|
|
|
};
|
|
|
|
in {
|
2021-12-16 06:59:14 +01:00
|
|
|
imports = [
|
|
|
|
(depot.path + "/users/wpcarro/nixos/marcus/hardware.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
# Use the TVL binary cache
|
|
|
|
tvl.cache.enable = true;
|
2021-12-16 00:40:44 +01:00
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
# The global useDHCP flag is deprecated, therefore explicitly set to false
|
|
|
|
# here. Per-interface useDHCP will be mandatory in the future, so this
|
|
|
|
# generated config replicates the default behaviour.
|
|
|
|
useDHCP = false;
|
|
|
|
hostName = "marcus";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
interfaces.enp0s31f6.useDHCP = true;
|
|
|
|
interfaces.wlp0s20f3.useDHCP = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
2021-12-16 06:59:14 +01:00
|
|
|
services = {
|
|
|
|
xserver = {
|
2021-12-16 00:40:44 +01:00
|
|
|
enable = true;
|
2021-12-16 06:59:14 +01:00
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
touchpad.naturalScrolling = false;
|
|
|
|
touchpad.tapping = false;
|
|
|
|
};
|
|
|
|
layout = "us";
|
|
|
|
xkbOptions = "caps:escape";
|
|
|
|
displayManager = {
|
|
|
|
# Give EXWM permission to control the session (from tazjin's setup).
|
|
|
|
sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +SI:localhost:$USER";
|
|
|
|
lightdm.enable = true;
|
|
|
|
};
|
|
|
|
windowManager.session = lib.singleton {
|
|
|
|
name = "exwm";
|
|
|
|
start = "${wpcarros-emacs}/bin/wpcarros-emacs";
|
|
|
|
};
|
2021-12-16 00:40:44 +01:00
|
|
|
};
|
2021-12-16 06:59:14 +01:00
|
|
|
|
|
|
|
depot.automatic-gc = {
|
|
|
|
enable = true;
|
|
|
|
interval = "1 hour";
|
|
|
|
diskThreshold = 16; # GiB
|
|
|
|
maxFreed = 10; # GiB
|
|
|
|
preserveGenerations = "14d";
|
2021-12-16 00:40:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
|
|
|
users.mutableUsers = true;
|
|
|
|
users.users.wpcarro = {
|
|
|
|
isNormalUser = true;
|
2021-12-16 16:27:00 +01:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"video" # needed to control the screen brightness
|
|
|
|
];
|
2021-12-16 00:40:44 +01:00
|
|
|
shell = pkgs.fish;
|
|
|
|
};
|
|
|
|
|
2021-12-19 14:09:52 +01:00
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
2021-12-16 00:40:44 +01:00
|
|
|
fonts = {
|
|
|
|
fonts = with pkgs; [
|
|
|
|
jetbrains-mono
|
|
|
|
];
|
|
|
|
|
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
|
|
|
monospace = [ "JetBrains Mono" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-16 16:27:00 +01:00
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
light.enable = true;
|
|
|
|
};
|
2021-12-16 00:40:44 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
alacritty
|
|
|
|
dig
|
|
|
|
direnv
|
|
|
|
fd
|
|
|
|
firefox
|
|
|
|
fzf
|
|
|
|
git
|
2021-12-19 14:11:11 +01:00
|
|
|
pavucontrol
|
2021-12-16 00:40:44 +01:00
|
|
|
ripgrep
|
2021-12-17 20:41:47 +01:00
|
|
|
tdesktop
|
2021-12-16 00:40:44 +01:00
|
|
|
vim
|
|
|
|
weechat
|
|
|
|
wpcarros-emacs
|
|
|
|
xclip
|
2021-12-16 06:11:06 +01:00
|
|
|
xsecurelock
|
2021-12-16 00:40:44 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|