dotfiles/nix/hosts/t490/configuration.nix
Oliver Davies d1cbdf3bb4 Add bc
Needed for the `displayselect` script that I'm testing from Luke Smith's
voidrice repo.

1e750084e5/.local/bin/displayselect
2025-03-06 00:51:52 +00:00

92 lines
1.4 KiB
Nix

{ inputs, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./hardware.nix
./programs.nix
./secrets.nix
./services
./users.nix
./modules/docker.nix
../common
../../users/opdavies
];
nixosModules = {
autorandr.enable = true;
dwm.enable = true;
gaming.enable = true;
st.enable = true;
thunar.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; [
bc # Needed for ./displayselect script.
gtypist
newsboat
pam_gnupg
rclone
rclone-browser
sxiv
ttyper
yt-dlp
];
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;
};
};
networking.hosts = {
"192.168.1.116" = [ "nixedo" ];
};
}