mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 19:53:55 -05:00
reuse disko configs where possible
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
06793563a6
commit
75f53fafee
|
@ -1,9 +1,9 @@
|
||||||
{
|
{disks ? ["/dev/nvme0n1"], ...}: {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
main = {
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/sda";
|
device = builtins.elemAt disks 0;
|
||||||
|
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{disks ? ["/dev/nvme0n1"], ...}: {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vdb = {
|
vdb = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/nvme0n1";
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
|
@ -6,10 +6,10 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./disko.nix
|
|
||||||
./home.nix
|
./home.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
(import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];})
|
||||||
self.inputs.nixhw.nixosModules.framework-13-amd-7000
|
self.inputs.nixhw.nixosModules.framework-13-amd-7000
|
||||||
self.nixosModules.common-auto-upgrade
|
self.nixosModules.common-auto-upgrade
|
||||||
self.nixosModules.common-base
|
self.nixosModules.common-base
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./disko.nix
|
|
||||||
./home.nix
|
./home.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
(import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];})
|
||||||
self.inputs.nixhw.nixosModules.lenovo-yoga-9i-intel-13th
|
self.inputs.nixhw.nixosModules.lenovo-yoga-9i-intel-13th
|
||||||
self.nixosModules.common-auto-upgrade
|
self.nixosModules.common-auto-upgrade
|
||||||
self.nixosModules.common-base
|
self.nixosModules.common-base
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
{
|
|
||||||
disko.devices = {
|
|
||||||
disk = {
|
|
||||||
vdb = {
|
|
||||||
type = "disk";
|
|
||||||
device = "/dev/nvme0n1";
|
|
||||||
content = {
|
|
||||||
type = "gpt";
|
|
||||||
partitions = {
|
|
||||||
ESP = {
|
|
||||||
size = "1024M";
|
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
mountOptions = [
|
|
||||||
"defaults"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
luks = {
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
|
||||||
type = "luks";
|
|
||||||
name = "crypted";
|
|
||||||
content = {
|
|
||||||
type = "btrfs";
|
|
||||||
extraArgs = ["-f"];
|
|
||||||
subvolumes = {
|
|
||||||
"/root" = {
|
|
||||||
mountpoint = "/";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
"persist" = {
|
|
||||||
mountpoint = "/persist";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
"/home" = {
|
|
||||||
mountpoint = "/home";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
"/nix" = {
|
|
||||||
mountpoint = "/nix";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -6,10 +6,10 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./disko.nix
|
|
||||||
./home.nix
|
./home.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
(import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/sda"];})
|
||||||
self.inputs.nixhw.nixosModules.thinkpad-t440p
|
self.inputs.nixhw.nixosModules.thinkpad-t440p
|
||||||
self.nixosModules.common-auto-upgrade
|
self.nixosModules.common-auto-upgrade
|
||||||
self.nixosModules.common-base
|
self.nixosModules.common-base
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
{
|
|
||||||
disko.devices = {
|
|
||||||
disk = {
|
|
||||||
vdb = {
|
|
||||||
type = "disk";
|
|
||||||
device = "/dev/sda";
|
|
||||||
content = {
|
|
||||||
type = "gpt";
|
|
||||||
partitions = {
|
|
||||||
ESP = {
|
|
||||||
size = "1024M";
|
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
mountOptions = [
|
|
||||||
"defaults"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
luks = {
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
|
||||||
type = "luks";
|
|
||||||
name = "crypted";
|
|
||||||
content = {
|
|
||||||
type = "btrfs";
|
|
||||||
extraArgs = ["-f"];
|
|
||||||
subvolumes = {
|
|
||||||
"/root" = {
|
|
||||||
mountpoint = "/";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
"persist" = {
|
|
||||||
mountpoint = "/persist";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
"/home" = {
|
|
||||||
mountpoint = "/home";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
"/nix" = {
|
|
||||||
mountpoint = "/nix";
|
|
||||||
mountOptions = ["compress=zstd" "noatime"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -4,13 +4,13 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./disko.nix
|
|
||||||
./home.nix
|
./home.nix
|
||||||
./raffauflabs.nix
|
./raffauflabs.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
|
(import ./../../disko/btrfs-subvolumes.nix {disks = ["/dev/sda"];})
|
||||||
|
self.inputs.nixhw.nixosModules.common-bluetooth
|
||||||
self.inputs.nixhw.nixosModules.common-intel-cpu
|
self.inputs.nixhw.nixosModules.common-intel-cpu
|
||||||
self.inputs.nixhw.nixosModules.common-intel-gpu
|
self.inputs.nixhw.nixosModules.common-intel-gpu
|
||||||
self.inputs.nixhw.nixosModules.common-bluetooth
|
|
||||||
self.inputs.nixhw.nixosModules.common-ssd
|
self.inputs.nixhw.nixosModules.common-ssd
|
||||||
self.nixosModules.common-auto-upgrade
|
self.nixosModules.common-auto-upgrade
|
||||||
self.nixosModules.common-base
|
self.nixosModules.common-base
|
||||||
|
|
Loading…
Reference in a new issue