Comments (6)
sounds good. I guess we should add a new type for swap for extra options. it should probably run mkswap in the mount script, so it can be used during installation? and in the config it should configure swapdevices = [ { device = dev; } ];
You can go for it. I would suggest waiting until #43 is merged since it changed the config a bit. Would be nice to also have a test for that!
If you don't want to implement it, I can also do it at some time
from disko.
Would it be possible to have something similar for btrfs swap subvolumes as well?
from disko.
I need help on ./types.nix
in 7ca4b8c
There's a bit too much context in that file... But I guess I can be helpful with:
- kick-starting (done in 7ca4b8c)
- finishing off
- testing (if we can get this feature in quickly)
from disko.
I guess adding an example would be nice. to see what possible options we want to support
from disko.
Turns out there might be conflicts to deal with one way or the other:
- https://github.com/NixOS/nixpkgs/blob/29fc06773600d3e4638e75ecacbe17cc0325c983/nixos/modules/config/swap.nix#L227
- https://github.com/NixOS/nixpkgs/blob/29fc06773600d3e4638e75ecacbe17cc0325c983/nixos/modules/config/swap.nix#L233
from disko.
So I guess the swap support is working, for BTRFS swap we have this issue: #262
from disko.
Related Issues (20)
- Support lvm cache types
- support typed restriction of lv creation to specific pvs
- Config works in VM using installTest but install fails on hardware HOT 6
- examples without hard-coded devices HOT 1
- The option `disko.devices.disko' does not exist error HOT 1
- Can't change default `networking.hostId` value when using`zpool` disko config HOT 5
- `randomEncryption` does not support extended configuration from NixOS module
- Incompatibility of `nixosModules.hardware-amazon` with disko configuration HOT 4
- Bug?: Example "btrfs-subvolumes" can be misleading: "/" cannot be created in the subvolumes section HOT 2
- Intermittent "target is busy" when creating btrfs subvolumes HOT 6
- Example swap.nix enables mutually exclusive options randomEncryption and resumeDevice.
- trace: warning: mdadm: Neither MAILADDR nor PROGRAM has been set. This will cause the `mdmon` service to crash. HOT 1
- postCreateHook for btrfs HOT 13
- Support for bcachefs encryption HOT 1
- `disko-create` and `disko-mount` scripts not created HOT 3
- Adding separate swap partition breaks ZFS pool HOT 9
- upgrade to 23.11 forgets "raid1" module in initrd HOT 1
- README instruction on which command to run
- Alignment HOT 3
- ZFS module not loaded in diskoLib.makeDiskImages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disko.