switch to xonsh
and add virtual machine configurations
This commit is contained in:
parent
29a30637ca
commit
3c0916835a
10 changed files with 238 additions and 44 deletions
23
hosts/virtual-machines/gnome/default.nix
Normal file
23
hosts/virtual-machines/gnome/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
gnomeExtensions = with pkgs.gnomeExtensions; [ totp ];
|
||||
packages = with pkgs; [ fastfetch ];
|
||||
in {
|
||||
imports = [
|
||||
../template.nix
|
||||
#../../../nixos/shell.nix
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
|
||||
virtualisation.vmVariant.virtualisation = {
|
||||
memorySize = 8192;
|
||||
cores = 6;
|
||||
};
|
||||
|
||||
environment.systemPackages = lib.lists.unique (packages ++ gnomeExtensions);
|
||||
}
|
7
hosts/virtual-machines/nixpkgs/default.nix
Normal file
7
hosts/virtual-machines/nixpkgs/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
../template.nix
|
||||
../../../nixos/shell.nix
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ fastfetch ];
|
||||
}
|
25
hosts/virtual-machines/template.nix
Normal file
25
hosts/virtual-machines/template.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
users.users.cswimr = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
group = "cswimr";
|
||||
initialPassword = "cswimr";
|
||||
};
|
||||
users.groups.cswimr = { };
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue