nixos-virtualbox-2024-11-02-22-28-41

This commit is contained in:
Alexander Szczepanski
2024-11-02 22:28:41 +01:00
parent 35fc5c5a1e
commit 28030edba6
7 changed files with 172 additions and 92 deletions

View File

@ -0,0 +1,59 @@
{ config, pkgs, lib, outputs, ... }:
{
nixpkgs = {
config = {
allowUnfree = true;
};
};
imports = [
./hardware-configuration.nix
../../configs/common.nix
../../configs/docker.nix
# ../../configs/plasma-wayland.nix
# ../../configs/user-gui.nix
../../configs/user.nix
];
sops = {
defaultSopsFile = ../../secrets.yaml;
validateSopsFiles = true;
age = {
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
keyFile = "/var/lib/sops-nix/key.txt";
generateKey = true;
};
secrets = {
hashedPassword = {
neededForUsers = true;
};
};
};
networking.hostName = "nixos-virtualbox"; # Define your hostname.
time.timeZone = "Europe/Berlin";
boot = {
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
supportedFilesystems = [ "btrfs" ];
};
networking.networkmanager.enable = true;
programs.nix-ld.enable = true;
# services = {
# k3s = {
# enable = true;
# role = "server";
# };
# };
system.stateVersion = "24.11";
}