Skip to content

Commit

Permalink
Merge pull request #491 from nix-community/fix-disko-compat
Browse files Browse the repository at this point in the history
{hetzner-cloud, vultr}: don't conflict with disko
  • Loading branch information
Mic92 authored Aug 25, 2024
2 parents 0af64f2 + 30eef76 commit 0c81763
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nixos/hardware/hetzner-cloud/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

config = {
boot.growPartition = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.devices = lib.mkDefault [ "/dev/sda" ];

fileSystems."/" = lib.mkDefault {
device = "/dev/sda1";
Expand Down
4 changes: 2 additions & 2 deletions nixos/hardware/vultr/vm.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ modulesPath, ... }:
{ modulesPath, lib, ... }:
{
imports = [
./.
Expand All @@ -7,5 +7,5 @@
];

boot.loader.grub.enable = true;
boot.loader.grub.devices = [ "/dev/vda" ];
boot.loader.grub.devices = lib.mkDefault [ "/dev/vda" ];
}
9 changes: 7 additions & 2 deletions nixos/server/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# A default configuration that applies to all servers.
# Common configuration across *all* the machines
{ pkgs, lib, ... }:
{
pkgs,
lib,
options,
...
}:
{

imports = [ ../common ];
Expand Down Expand Up @@ -35,7 +40,7 @@
{
defaultEditor = lib.mkDefault true;
}
// lib.optionalAttrs (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11") {
// lib.optionalAttrs (options.programs.vim ? enable) {
enable = lib.mkDefault true;
};

Expand Down

0 comments on commit 0c81763

Please sign in to comment.