Properly add GUI bits to `my_nixos_vm`.

This commit is contained in:
Whovian NTSN 2024-09-04 00:15:51 -04:00
parent a7fe95aaba
commit 94e0c053b6
5 changed files with 89 additions and 13 deletions

View File

@ -135,9 +135,9 @@
How to use config in an install: How to use config in an install:
Mount partitions. Mount partitions.
$ sudo nixos-install -v --root /mnt --flake "git+https://git.n2.pm/whovian/nixos_config#CONFIG_NAME" $ sudo nixos-install -v --root /mnt --flake "github:Whovian9369/whovian_nixos_config#CONFIG_NAME"
Example for nixosConfigurations.my_nixos_vm: Example for nixosConfigurations.my_nixos_vm:
$ sudo nixos-install -v --root /mnt --flake "git+https://git.n2.pm/whovian/nixos_config#my_nixos_vm" $ sudo nixos-install -v --root /mnt --flake "github:Whovian9369/whovian_nixos_config#my_nixos_vm"
*/ */
nixosConfigurations = { nixosConfigurations = {
@ -311,6 +311,7 @@
my_nixos_vm = nixpkgs.lib.nixosSystem { my_nixos_vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit rom-properties; };
modules = [ modules = [
./system/my_nixos_vm/configuration.nix ./system/my_nixos_vm/configuration.nix
# ./system/dotnet_os_codename-workaround.nix # ./system/dotnet_os_codename-workaround.nix

View File

@ -10,6 +10,8 @@
imports = [ imports = [
./packages.nix ./packages.nix
./hardware-configuration.nix # Include the results of the hardware scan. ./hardware-configuration.nix # Include the results of the hardware scan.
./gui-kde6.nix # GUI Stuff (DE + WM)
./vmware.nix # VMWAre Guest Stuff
]; ];
networking.hostName = "my_nixos_vm"; networking.hostName = "my_nixos_vm";

View File

@ -0,0 +1,67 @@
{
lib,
pkgs,
rom-properties,
...
}:
{
# Use PipeWire
security.rtkit.enable = true;
services = {
# Use PipeWire
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
# Enable the X11 windowing system.
xserver = {
enable = true;
xkb.layout = "us";
};
# Enable the KDE Desktop Environment.
displayManager.sddm.enable = true;
desktopManager.plasma6.enable = true;
};
# Fonts
fonts.enableDefaultPackages = false;
fonts.packages = [
# fonts.enableDefaultPackages
pkgs.dejavu_fonts
pkgs.freefont_ttf
pkgs.gyre-fonts # TrueType substitutes for standard PostScript fonts
pkgs.liberation_ttf
pkgs.unifont
pkgs.noto-fonts-color-emoji
# fonts.enableDefaultPackages
pkgs.unifont_upper
pkgs.noto-fonts
pkgs.noto-fonts-cjk-sans
pkgs.corefonts
];
fonts.fontconfig.cache32Bit = true;
# dconf
programs.dconf.enable = true;
# KDE6
# Enable the KDE Desktop Environment.
xdg.icons.enable = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages = [
pkgs.kdePackages.sddm-kcm
pkgs.kdePackages.audiocd-kio
pkgs.kdePackages.skanpage
pkgs.kdePackages.isoimagewriter
pkgs.kdePackages.krdc # RDP
# pkgs.kdePackages.neochat # Matrix
pkgs.kdePackages.breeze-icons
pkgs.kdePackages.discover # "KDE and Plasma resources management GUI"
pkgs.kdePackages.partitionmanager # Partition Manager
pkgs.exfatprogs
pkgs.sublime4
rom-properties.packages.x86_64-linux.rp_kde6
# (rom-properties.packages.x86_64-linux.rp_kde6.overrideAttrs (oldAttrs: { patches = oldAttrs.patches ++ [ ../files/rp_larger_icons.diff ]; }))
];
}

View File

@ -11,20 +11,16 @@
nixpkgs = { nixpkgs = {
config = { config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [
"openssl-1.1.1w"
];
}; };
}; };
programs = { programs = {
zsh = { firefox.enable = true;
enable = true; nano.enable = true;
}; screen.enable = true;
nano = { zsh.enable = true;
enable = true;
};
screen = {
enable = true;
};
}; };
} }

View File

@ -0,0 +1,10 @@
{
lib,
options,
pkgs,
...
}:
{
virtualisation.vmware.guest.enable = true;
services.xserver.videoDrivers = [ "vmware" ];
}