sisyphus/nixos/hosts/Tibo-NixFat/default.nix

121 lines
2.1 KiB
Nix
Raw Permalink Normal View History

2023-03-15 19:47:58 +01:00
{ config, pkgs, ... }:
{
2023-04-04 12:08:13 +02:00
imports = [
./hardware-configuration.nix
];
2023-10-17 23:14:25 +02:00
sisyphus = {
desktop.sway.enable = true;
2024-03-23 22:41:16 +01:00
hardware = {
2024-04-29 15:05:07 +02:00
eid.enable = true;
2024-03-23 22:41:16 +01:00
nvidia = {
enable = true;
model = "Quadro T2000";
};
yubikey.enable = true;
2023-10-24 21:00:53 +02:00
};
2023-10-20 22:28:37 +02:00
2023-11-24 19:15:25 +01:00
networking = {
networkmanager.enable = true;
2024-06-02 20:49:04 +02:00
# openconnect-sso.enable = true;
2023-11-24 19:15:25 +01:00
};
2023-11-10 13:07:42 +01:00
nix = {
flakes.enable = true;
gc.onFull.enable = true;
};
2023-10-17 23:14:25 +02:00
programs = {
2023-11-14 22:32:04 +01:00
direnv.enable = true;
2023-10-17 23:14:25 +02:00
home-manager.enable = true;
2023-10-18 20:58:49 +02:00
sops.enable = true;
2023-10-18 18:54:27 +02:00
ssh.enable = true;
2023-10-01 16:56:12 +02:00
};
2023-10-24 21:00:53 +02:00
2023-10-19 20:58:15 +02:00
services = {
2023-10-24 21:00:53 +02:00
pipewire.enable = true;
2023-10-28 11:14:50 +02:00
tailscale.enable = true;
2023-10-19 20:58:15 +02:00
};
2023-10-24 21:00:53 +02:00
users.tdpeuter.enable = true;
2023-10-30 10:32:23 +01:00
virtualisation = {
2024-03-23 22:45:11 +01:00
docker.enable = true;
virtualbox.enable = true;
};
2023-10-17 23:14:25 +02:00
};
2023-10-01 16:56:12 +02:00
2023-10-17 23:14:25 +02:00
boot = {
# Encryption
2023-10-01 16:56:12 +02:00
initrd = {
# Setup keyfile
secrets."/crypto_keyfile.bin" = null;
# Enable swap on luks
luks.devices."luks-3825c43c-6cc4-4846-b1cc-02b5938640c9" = {
device = "/dev/disk/by-uuid/3825c43c-6cc4-4846-b1cc-02b5938640c9";
keyFile = "/crypto_keyfile.bin";
};
2023-03-15 19:47:58 +01:00
};
2023-10-17 23:14:25 +02:00
# Use the systemd-boot EFI boot loader.]
loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
2023-03-22 22:12:19 +01:00
};
2023-10-17 23:14:25 +02:00
environment.systemPackages = with pkgs; [
2023-10-18 17:57:00 +02:00
git
2023-11-14 22:19:05 +01:00
vim-full
2023-10-20 20:10:35 +02:00
w3m
2023-10-17 23:14:25 +02:00
wget
2023-10-18 17:57:00 +02:00
zenith-nvidia
2023-10-17 23:14:25 +02:00
];
2023-10-19 22:24:04 +02:00
programs = {
zsh.enable = true;
};
2023-11-10 11:04:15 +01:00
hardware.bluetooth = {
enable = true;
powerOnBoot = false;
};
2023-10-18 18:54:27 +02:00
networking.hostName = "Tibo-NixFat";
services = {
# Handle the laptop lid switch as follows:
logind = {
lidSwitch = "hybrid-sleep";
lidSwitchExternalPower = "lock";
lidSwitchDocked = "ignore";
};
2023-10-19 22:24:33 +02:00
2024-06-02 20:49:04 +02:00
xserver.xkb = {
2024-02-18 16:35:03 +01:00
# Keyboard layout
layout = "us";
2024-06-02 20:49:04 +02:00
variant = "altgr-intl";
2024-02-19 10:14:33 +01:00
};
2024-06-02 20:49:04 +02:00
# Touchpad
libinput.enable = true;
2023-10-18 18:54:27 +02:00
};
2024-06-02 20:49:04 +02:00
system.stateVersion = "24.05";
2023-10-17 23:14:25 +02:00
2023-10-18 18:54:27 +02:00
time.timeZone = "Europe/Brussels";
2023-10-17 23:14:25 +02:00
# --- Barrier ---
2023-10-24 21:00:53 +02:00
i18n.defaultLocale = "en_GB.UTF-8";
console = {
useXkbConfig = true; # use xkbOptions in tty.
2023-03-22 22:12:19 +01:00
};
2023-03-15 19:47:58 +01:00
}