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:
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:
$ 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 = {
@ -311,6 +311,7 @@
my_nixos_vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit rom-properties; };
modules = [
./system/my_nixos_vm/configuration.nix
# ./system/dotnet_os_codename-workaround.nix

View file

@ -10,6 +10,8 @@
imports = [
./packages.nix
./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";

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 = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"openssl-1.1.1w"
];
};
};
programs = {
zsh = {
enable = true;
};
nano = {
enable = true;
};
screen = {
enable = true;
};
firefox.enable = true;
nano.enable = true;
screen.enable = true;
zsh.enable = true;
};
}

View file

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