This commit is contained in:
Bryan Ramos 2024-05-12 13:15:20 -04:00
parent 911133f0ce
commit 6ec444c691
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 13 additions and 6 deletions

View file

@ -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 = [

View file

@ -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";