Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
suderman committed Mar 4, 2025
1 parent a02d22b commit 0187ea0
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions hosts/sim/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,58 @@
{ flake, inputs, perSystem, pkgs, ... }: {
{ flake, inputs, perSystem, pkgs, modulesPath, ... }: {

imports = [
# flake.modules.nixos.server
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/virtualisation/qemu-vm.nix")
];

boot.kernelParams = [ "console=ttyS0" "console=tty1" "boot.shell_on_fail" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.checkJournalingFS = false;

nixpkgs.hostPlatform = "x86_64-linux";
nixpkgs.config.system-features = [ "kvm" ];

environment.systemPackages = [
# perSystem.nixos-anywhere.default
pkgs.vim
];

nixpkgs.hostPlatform = "x86_64-linux";
# users.users.root = {
# initialPassword = "root";
# };

# Disallow modifying users outside of this config
users.mutableUsers = false;

users.users.jon = {
createHome = true;
isNormalUser = true;
shell = pkgs.bash;
uid = 1000;
initialPassword = "ginger";
group = "users";
extraGroups = [ "wheel" "input" ];
linger = true;
};

users.groups.users = {};

fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};

virtualisation = {
diskSize = 4096; # Disk size in MB
memorySize = 2048; # RAM in MB
qemu.networkingOptions = [ "-nic bridge,br=bridge0,model=virtio-net-pci,mac=52:54:00:12:34:56" ];
};

networking.interfaces.enp0s1.macAddress = "52:54:00:12:34:56";

networking.firewall.allowPing = true;

services.openssh.enable = true;

system.stateVersion = "24.11";

}

0 comments on commit 0187ea0

Please sign in to comment.