Oliver Davies
6efc4bd51e
Add Docker which is needed by DDEV, which I need to quickly get HTTP and SSL running for a project. There is https://devenv.sh/blog/2023/03/02/devenv-06-generating-containers-and-instant-shell-activation/#hosts-and-certificates that mentions provisioning certificates for a local domain name, which is something I'll look at in the future.
84 lines
1.2 KiB
Nix
84 lines
1.2 KiB
Nix
{ inputs, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./hardware.nix
|
|
./programs.nix
|
|
./services
|
|
./users.nix
|
|
|
|
./modules/docker.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;
|
|
};
|
|
};
|
|
}
|