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

87 lines
1.7 KiB
Nix
Raw Normal View History

2023-04-11 18:01:53 +02:00
{ config, pkgs, ... }:
{
2023-10-24 21:00:53 +02:00
imports = [
./hardware-configuration.nix
];
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
sisyphus = {
hardware.nvidia = {
enable = true;
model = "RTX 2060";
};
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
programs = {
home-manager.enable = true;
sops.enable = true;
ssh.enable = true;
};
services = {
pipewire.enable = true;
printing.enable = true;
openrgb.enable = true;
};
users.tdpeuter.enable = true;
virtualisation.virtualbox.enable = true;
2023-09-11 11:06:55 +02:00
};
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
boot.loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
2023-09-11 11:06:55 +02:00
};
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
environment.systemPackages = with pkgs; [
git
vim
w3m
wget
zenith-nvidia
];
programs.zsh.enable = true;
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
hardware.bluetooth.enable = true;
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
networking = {
hostName = "Tibo-NixDesk";
networkmanager.enable = true;
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
2023-04-11 18:01:53 +02:00
};
2023-10-24 21:00:53 +02:00
system.stateVersion = "23.05";
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
time.timeZone = "Europe/Brussels";
2023-04-11 18:01:53 +02:00
2023-10-24 21:00:53 +02:00
nix = {
# Allow Nix Flakes
# Keep derivations so shells don't break (direnv)
# If the disk has less than 100MiB, free up to 2GiB by garbage-collecting.
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (2048 * 1024 * 1024)}
'';
# Scheduled garbage-collect
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
package = pkgs.nixFlakes;
};
i18n.defaultLocale = "en_GB.UTF-8";
console = {
# font = "Lat2-Terminus16";
useXkbConfig = true; # use xkbOptions in tty.
};
2023-04-11 18:01:53 +02:00
}