mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{pkgs, outputs, ...}: {
|
|
imports = [
|
|
# Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
nixpkgs = {
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
|
|
config = {
|
|
allowUnfree = true;
|
|
permittedInsecurePackages = [
|
|
];
|
|
};
|
|
};
|
|
|
|
# Use GRUB 2 boot loader
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.efiSupport = true;
|
|
boot.loader.grub.efiInstallAsRemovable = true;
|
|
boot.loader.grub.device = "nodev";
|
|
boot.loader.efi.efiSysMountPoint = "/efi";
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
networking.hostName = "saffron"; # Define your hostname.
|
|
|
|
# Caddy reverse proxy
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."rss.mayoff.ca" = {
|
|
extraConfig = ''
|
|
reverse_proxy MINIFLUX_TAILSCALE_IP:PORT
|
|
'';
|
|
};
|
|
};
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "America/Toronto";
|
|
|
|
users.users.tyler = {
|
|
isNormalUser = true;
|
|
description = "tyler";
|
|
extraGroups = ["wheel"];
|
|
shell = pkgs.fish;
|
|
};
|
|
programs.fish.enable = true;
|
|
|
|
services.openssh.enable = true;
|
|
|
|
system.stateVersion = "25.05"; # Did you read the comment?
|
|
}
|