Skip to content

Commit

Permalink
define isKVM as specialArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mag1cByt3s committed Jan 16, 2025
1 parent 1ff2c6c commit d17d3fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
specialArgs = {
inherit inputs outputs;
user = "redflake";
isKVM = true;
};
modules = [
chaotic.nixosModules.default
Expand Down Expand Up @@ -170,6 +171,7 @@
specialArgs = {
inherit inputs outputs;
user = "redflake";
isKVM = false;
};
modules = [
chaotic.nixosModules.default
Expand Down Expand Up @@ -209,6 +211,7 @@
specialArgs = {
inherit inputs outputs;
user = "pascal";
isKVM = false;
};
modules = [
chaotic.nixosModules.default
Expand Down Expand Up @@ -248,6 +251,7 @@
specialArgs = {
inherit inputs outputs;
user = "redcloud";
isKVM = true;
};
modules = [
chaotic.nixosModules.default
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/bootloader.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
config,
isKVM,
lib,
pkgs,
modulesPath,
...
}:
let
cfg = config.custom.zfs;
isKVM = lib.elem "virtio_pci" config.boot.initrd.availableKernelModules;
redflake-plymouth-src = pkgs.fetchFromGitHub {
owner = "Red-Flake";
repo = "redflake-plymouth";
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/filesystems.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
config,
isKVM,
lib,
pkgs,
...
}:
let
cfg = config.custom.zfs;
isVm = lib.elem "virtio_pci" config.boot.initrd.availableKernelModules;
in
{

Expand Down

0 comments on commit d17d3fc

Please sign in to comment.