nix-config/hosts/nixedo/configuration.nix

54 lines
1,006 B
Nix
Raw Normal View History

2024-12-28 09:26:54 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
2025-04-29 14:55:08 +01:00
{ pkgs, ... }:
2024-12-28 09:26:54 +00:00
{
imports = [
../common
2024-12-28 09:26:54 +00:00
./hardware-configuration.nix
./homelab.nix
./modules
./secrets.nix
2025-04-26 00:26:43 +01:00
./services
2025-04-05 09:00:00 +01:00
../../users/opdavies.nix
2024-12-28 09:26:54 +00:00
];
features = {
core.openssh.enable = true;
cli.podman.enable = true;
desktop.dconf.enable = true;
};
services.logind.lidSwitchExternalPower = "ignore";
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
2024-12-28 09:26:54 +00:00
};
systemd-boot.enable = true;
2024-12-28 09:26:54 +00:00
};
networking.networkmanager.enable = true;
2025-04-26 00:26:54 +01:00
users.users.opdavies.extraGroups = [ "media" ];
2025-04-28 12:58:12 +01:00
powerManagement.powertop.enable = true;
2024-12-28 09:26:54 +00:00
users.groups.media = { };
2025-04-29 02:24:03 +01:00
networking.firewall.allowedTCPPorts = [
80
443
];
2025-04-29 14:55:08 +01:00
environment.systemPackages = with pkgs; [
tree
vim
];
2024-12-28 09:26:54 +00:00
}