Skip to content

Commit

Permalink
Make virtualization optional
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Mar 16, 2024
1 parent c29a71f commit 34076b9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 38 deletions.
75 changes: 39 additions & 36 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,46 @@
{ config, lib, pkgs, pkgs-stable, systemSettings, userSettings, ... }:

{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# include boot and kernel settings
./system/boot-kernel.nix
# include user account settings
./system/users.nix
# include hardware settings
./system/hardware/audio.nix
./system/hardware/bluetooth.nix
./system/hardware/disk.nix
./system/hardware/graphics.nix
# include network settings
./system/network.nix
# include locale settings
./system/locale.nix
# include fonts settings
./system/fonts.nix
# include hyprland settings
./system/hyprland.nix
# include virtualization settings
#./system/virtualization.nix
# include printing settings
./system/printing.nix
# include power plan settings
./system/power.nix

# include APPS settings
./apps/openrgb.nix
#./apps/kde-connect.nix
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
# include boot and kernel settings
./system/boot-kernel.nix
# include user account settings
./system/users.nix
# include hardware settings
./system/hardware/audio.nix
./system/hardware/bluetooth.nix
./system/hardware/disk.nix
./system/hardware/graphics.nix
# include network settings
./system/network.nix
# include locale settings
./system/locale.nix
# include fonts settings
./system/fonts.nix
# include hyprland settings
./system/hyprland.nix
# include printing settings
./system/printing.nix
# include power plan settings
./system/power.nix

# include APPS settings
./apps/openrgb.nix
#./apps/kde-connect.nix

# include adb settings
./dev-environment/adb.nix

# include custom cache server settings
./misc/custom-cache-server.nix
];
# include adb settings
./dev-environment/adb.nix

# include custom cache server settings
./misc/custom-cache-server.nix
]
++
# Import if Virtualization is enabled
lib.optionals (systemSettings.virtualisation) [
./system/virtualisation.nix
];

networking.hostName = systemSettings.hostname; # Define your hostname.

Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
localeoverride = "en_IN";
stableversion = "24.05";
secureboot = true;
virtualisation = false;
};

# ----- USER SETTINGS ----- #
Expand Down
8 changes: 6 additions & 2 deletions home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, pkgs-stable, systemSettings, userSettings, ... }:
{ config, lib, pkgs, pkgs-stable, systemSettings, userSettings, ... }:

{
# Home Manager needs a bit of information about you and the paths it should
Expand All @@ -12,9 +12,13 @@
./home-manager/alacritty/alacritty.nix
./home-manager/pyprland/pyprland.nix # pyprland config wrapper
./home-manager/neofetch/neofetch.nix
./home-manager/virt-manager/virt-manager.nix
./home-manager/vscode/vscode.nix
./home-manager/thunar/thunar.nix
]
++
# Import if Virtualization is enabled
lib.optionals (systemSettings.virtualisation) [
./home-manager/virt-manager/virt-manager.nix
];

# link the configuration file in current directory to the specified location in home directory
Expand Down
File renamed without changes.

0 comments on commit 34076b9

Please sign in to comment.