mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
disko
This commit is contained in:
parent
911133f0ce
commit
6ec444c691
2 changed files with 13 additions and 6 deletions
|
|
@ -11,9 +11,13 @@
|
|||
url = "github:nix-community/NixOS-WSL/2311.5.3";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, nixos-wsl }:
|
||||
outputs = { self, nixpkgs, home-manager, nixos-wsl, disko }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
|
|
@ -32,6 +36,8 @@
|
|||
./src/system/machines/desktop
|
||||
home-manager.nixosModules.home-manager
|
||||
(import ./src/system/machines/desktop/modules/home-manager)
|
||||
disko.nixosModules.disko
|
||||
(import ./src/system/machines/desktop/modules/disko)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -55,6 +61,7 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations."work" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ disks ? [ "/dev/nvme0n1" "/dev/sda" ], ... }:
|
||||
{ disks ? [ "/dev/nvme0n1" "/dev/sdb" ], ... }:
|
||||
|
||||
{
|
||||
disko.devices = {
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
};
|
||||
}
|
||||
{
|
||||
start = "100M";
|
||||
end = "150G";
|
||||
start = "200M";
|
||||
end = "100%FREE";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "stick";
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
partitions = [
|
||||
{
|
||||
start = "0";
|
||||
end = "200G";
|
||||
end = "100%FREE";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "ssd";
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
size = "1M";
|
||||
};
|
||||
home = {
|
||||
size = "100%";
|
||||
size = "200G";
|
||||
content = {
|
||||
name = "home";
|
||||
type = "filesystem";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue