nix-config/hosts/t490/configuration.nix
Oliver Davies eea806e0f8 Allow for autoloading modules
Autoloads files within modules/ and makes them available by their module
type and name, e.g. `mixins-zsh`, `editor-nvim` and `users-opdavies`
when imported with `inputs.self.nixosModules`.

Based on afab322e6d/modules/default.nix.

This assumes there will be a modules/*.nix file and currently doesn't
work with modules/*/default.nix. This is something I'd like to add in
the future.

I also want find a cleaner way to pass arguments into these shortcuts as
this also doesn't work in their implementation as far as I can see.
2025-04-10 09:07:16 +01:00

54 lines
804 B
Nix

{ inputs, pkgs, ... }:
{
imports = with inputs.self.nixosModules; [
./hardware-configuration.nix
./hardware.nix
./programs.nix
./secrets.nix
./services
./users.nix
mixins-common
users-opdavies
];
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
pam_gnupg
sxiv
ttyper
yt-dlp
];
zramSwap.enable = true;
networking.hosts = {
"192.168.1.116" = [ "nixedo" ];
};
}