nixos-virtualbox-2024-11-02-22-28-41
This commit is contained in:
59
machine/nixos-virtualbox/configuration.nix
Executable file
59
machine/nixos-virtualbox/configuration.nix
Executable 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";
|
||||
}
|
Reference in New Issue
Block a user