dotfiles/nix/hosts/t490/configuration.nix

82 lines
1.2 KiB
Nix

{ inputs, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./hardware.nix
./programs.nix
./services
./users.nix
../common
../../users/opdavies
];
features = {
desktop = {
autorandr.enable = true;
gaming.enable = true;
i3.enable = true;
peek.enable = true;
};
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
};
efi = {
canTouchEfiVariables = true;
};
};
};
systemd.extraConfig = ''
DefaultTimeoutStopSec=10s
'';
networking.networkmanager.enable = true;
security = {
polkit.enable = true;
rtkit.enable = true;
};
environment.systemPackages = with pkgs; [
gtypist
rclone
rclone-browser
ttyper
yt-dlp
ytfzf
];
zramSwap.enable = true;
nix = {
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
optimise.automatic = true;
settings = {
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
warn-dirty = false;
};
};
}