diff --git a/hosts/karasumaru/configuration.nix b/hosts/karasumaru/configuration.nix index 71c482f..b797e50 100644 --- a/hosts/karasumaru/configuration.nix +++ b/hosts/karasumaru/configuration.nix @@ -37,6 +37,8 @@ in { }; }; + nix.settings.experimental-features = ["nix-command" "flakes"]; + virtualisation.docker.enable = true; virtualisation.oci-containers = { backend = "docker"; diff --git a/hosts/karasumaru/hardware-configuration.nix b/hosts/karasumaru/hardware-configuration.nix index d6e0a14..8ef576b 100644 --- a/hosts/karasumaru/hardware-configuration.nix +++ b/hosts/karasumaru/hardware-configuration.nix @@ -28,7 +28,12 @@ options = ["fmask=0022" "dmask=0022"]; }; - swapDevices = []; + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 2 * 1024; # swap size is in mb + } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hosts/saberofxebec/configuration.nix b/hosts/saberofxebec/configuration.nix index 394f93b..2217fcb 100644 --- a/hosts/saberofxebec/configuration.nix +++ b/hosts/saberofxebec/configuration.nix @@ -51,33 +51,7 @@ }; }; - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; + nix.settings.experimental-features = ["nix-command" "flakes"]; - # Copy the NixOS configuration file and link it from the resulting system - # (/run/current-system/configuration.nix). This is useful in case you - # accidentally delete configuration.nix. - # system.copySystemConfiguration = true; - - # This option defines the first version of NixOS you have installed on this particular machine, - # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. - # - # Most users should NEVER change this value after the initial install, for any reason, - # even if you've upgraded your system to a new NixOS release. - # - # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, - # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how - # to actually do that. - # - # This value being lower than the current NixOS release does NOT mean your system is - # out of date, out of support, or vulnerable. - # - # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, - # and migrated your data accordingly. - # - # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.11"; # Did you read the comment? }