2025-01-29 01:15:42 +00:00
|
|
|
{ inputs, pkgs, ... }:
|
2024-09-11 12:00:00 +00:00
|
|
|
|
|
|
|
{
|
2024-09-23 12:17:10 +00:00
|
|
|
imports = [
|
2024-11-26 08:13:46 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-intel
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-hdd
|
|
|
|
inputs.nixos-hardware.nixosModules.system76
|
|
|
|
|
2024-09-23 12:17:10 +00:00
|
|
|
./hardware-configuration.nix
|
2025-01-29 01:15:42 +00:00
|
|
|
./hardware.nix
|
|
|
|
./programs.nix
|
|
|
|
./services.nix
|
2025-01-01 14:49:00 +00:00
|
|
|
|
2025-01-08 08:54:14 +00:00
|
|
|
../common
|
|
|
|
../../users/opdavies
|
2025-01-01 14:49:00 +00:00
|
|
|
../../users/eric
|
2025-01-01 17:58:56 +00:00
|
|
|
../../users/luke
|
2024-09-23 12:17:10 +00:00
|
|
|
];
|
2024-09-11 12:00:00 +00:00
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
|
|
|
2024-09-11 12:00:00 +00:00
|
|
|
# Bootloader.
|
2024-11-26 08:13:46 +00:00
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
2024-12-12 22:23:35 +00:00
|
|
|
configurationLimit = 25;
|
2024-11-26 08:13:46 +00:00
|
|
|
};
|
2024-09-11 12:00:00 +00:00
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
efiSysMountPoint = "/boot/efi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.extraConfig = ''
|
|
|
|
DefaultTimeoutStopSec=10s
|
|
|
|
'';
|
|
|
|
|
2024-09-11 12:00:00 +00:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
rtkit.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2024-09-11 12:00:00 +00:00
|
|
|
}
|