Giter VIP home page Giter VIP logo

Comments (8)

Mic92 avatar Mic92 commented on May 24, 2024

I am not so sure this is possible without a complete kernel module database and all dependencies (that might change between kernel versions).
nixos-generate-config does this by looking at what drivers are used by block devices, however I don't think we can do this statically in a maintainable way.

from disko.

Mic92 avatar Mic92 commented on May 24, 2024

Our long-term plan is to have some form of nixos-generate-config that will get this information from the target machine and combine this with profiles i.e. hetzner server in nixos-remote.

from disko.

Lassulus avatar Lassulus commented on May 24, 2024

we can add nvme if those devices are used, probably the same for mmcblk. for some lvm raids we also need kernel modules. those we can set.

from disko.

Mic92 avatar Mic92 commented on May 24, 2024

I think nixos takes also care of loading raid kernel modules already when it's used.

from disko.

Mic92 avatar Mic92 commented on May 24, 2024

For generic images probably the best option is still just using: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/all-hardware.nix

from disko.

Lassulus avatar Lassulus commented on May 24, 2024

I think nixos takes also care of loading raid kernel modules already when it's used.

not all of them https://github.com/nix-community/disko/blob/master/tests/lvm-raid.nix#L10

from disko.

phaer avatar phaer commented on May 24, 2024

I think nixos takes also care of loading raid kernel modules already when it's used.

not all of them https://github.com/nix-community/disko/blob/master/tests/lvm-raid.nix#L10

Shouldn't that be somewhat redundant with

disko/types.nix

Line 926 in df3a607

boot.initrd.kernelModules = [ "dm-${config.lvm_type}" ];
or am I missing something? (types.nix only explicitly sets it for initrd though)

from disko.

Lassulus avatar Lassulus commented on May 24, 2024

yes, but afair the heuristic is incomplete and we still need to add extra modules

from disko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.