homelab/hosts/sin/configuration.nix
Awen Lelu e5207d10ab
All checks were successful
/ perform flake analysis (push) Successful in 33s
/ build hive configuration (push) Successful in 11m19s
accept nvidia term of usage
2025-11-21 19:39:48 +01:00

125 lines
2.4 KiB
Nix

{
modulesPath,
lib,
pkgs,
config,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
./luks-btrfs-raid.nix
./jellyfin.nix
./transmission.nix
./homepage.nix
./glances.nix
./secrets.nix
./coredns
./copyparty.nix
];
boot.initrd.kernelModules = [ "usb_storage" ];
boot.loader.grub = {
# devices = [ ];
efiSupport = true;
efiInstallAsRemovable = true;
};
networking = {
hostName = "sin";
networkmanager.enable = true;
# nameservers = [ "10.0.0.4" ];
# dhcpcd.extraConfig = "nohook resolv.conf";
firewall = {
allowedTCPPorts = [
8000
8001
3000 # gitea
53
];
allowedUDPPorts = [ 53 ];
};
};
time.timeZone = "Europe/Paris";
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true;
users.users = {
zimablade = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
};
shobu = {
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
};
};
users.users.root.openssh.authorizedKeys.keys = [
# change this to your ssh key
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
environment.systemPackages =
map lib.lowPrio [
pkgs.curl
pkgs.gitMinimal
]
++ (with pkgs; [
helix
httpie
btop
tmux
# firefox
]);
services = {
openssh = {
enable = true;
ports = [ 22 ];
};
# xserver = {
# enable = true;
# desktopManager = {
# xterm.enable = false;
# xfce.enable = true;
# };
# };
blueman.enable = true;
};
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = false;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
nixpkgs.config.nvidia.acceptLicense = true;
system.stateVersion = "24.11";
}