fix: dev vm setup
This commit is contained in:
parent
e73cc0c0f5
commit
b6230a1d29
10 changed files with 218 additions and 31 deletions
32
modules/nixos/hosts/dev-vm.nix
Normal file
32
modules/nixos/hosts/dev-vm.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, pkgs, ... }: {
|
||||
networking.hostName = "dev-vm";
|
||||
# Set the baseline NixOS release used for stateful data; bump on rebuilds.
|
||||
system.stateVersion = lib.mkDefault "24.05";
|
||||
|
||||
# Boot loader configuration for VM
|
||||
boot.loader.grub.enable = lib.mkDefault true;
|
||||
boot.loader.grub.device = lib.mkDefault "/dev/vda";
|
||||
|
||||
# Root filesystem configuration for VM
|
||||
fileSystems."/" = lib.mkDefault {
|
||||
device = "/dev/vda1";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
coreutils
|
||||
ast-grep
|
||||
ripgrep
|
||||
bat
|
||||
tree
|
||||
zip
|
||||
unzip
|
||||
htop
|
||||
jq
|
||||
psmisc # provides killall and friends
|
||||
gh
|
||||
tree-sitter
|
||||
];
|
||||
|
||||
imports = [ ../virtualization.nix ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue