disko doesn't support bcachefs subvolumes yet

This commit is contained in:
Tao Tien 2024-10-13 23:28:53 -07:00
parent 8d086ffcca
commit d8ce8bddef
6 changed files with 61 additions and 56 deletions

View file

@ -98,41 +98,41 @@
devices = {
# we do a lil anti-patterns https://github.com/ryantm/agenix?tab=readme-ov-file#builtinsreadfile-anti-pattern
# bootstrap by commenting out devices first and rebuild switch impurely
# "nocomputer".id = builtins.readFile config.age.secrets.syncthing-NOcomputer.path;
# "nolaptop".id = builtins.readFile config.age.secrets.syncthing-NOlaptop.path;
# "uwuraid".id = builtins.readFile config.age.secrets.syncthing-uwuraid.path;
};
folders = let
devs = [
"nocomputer"
"nolaptop"
"uwuraid"
];
in {
# "documents" = {
# path = "/home/tao/documents";
# devices = devs;
# "nocomputer".id = builtins.readFile config.age.secrets.syncthing-NOcomputer.path;
# "nolaptop".id = builtins.readFile config.age.secrets.syncthing-NOlaptop.path;
# "uwuraid".id = builtins.readFile config.age.secrets.syncthing-uwuraid.path;
# };
"pictures" = {
path = "/home/tao/pictures";
devices = devs;
};
"projects" = {
path = "/home/tao/projects";
devices = devs;
};
"school" = {
path = "/home/tao/school";
devices = devs;
};
"sync" = {
path = "/home/tao/sync";
devices = devs;
};
"work" = {
path = "/home/tao/work";
devices = devs;
};
# folders = let
# devs = [
# "nocomputer"
# "nolaptop"
# "uwuraid"
# ];
# in {
# # "documents" = {
# # path = "/home/tao/documents";
# # devices = devs;
# # };
# "pictures" = {
# path = "/home/tao/pictures";
# devices = devs;
# };
# "projects" = {
# path = "/home/tao/projects";
# devices = devs;
# };
# "school" = {
# path = "/home/tao/school";
# devices = devs;
# };
# "sync" = {
# path = "/home/tao/sync";
# devices = devs;
# };
# "work" = {
# path = "/home/tao/work";
# devices = devs;
# };
};
};
};
@ -171,6 +171,7 @@
documentation.enable = true;
age.secrets.password-tao.file = ../secrets/syncthing-uwuraid.age;
users.users.tao = {
isNormalUser = true;
passwordFile = config.age.secrets.password-tao.path;

View file

@ -38,9 +38,10 @@ in {
color = "gruvbox";
flags = {
battery =
if lib.strings.hasPrefix "NOlaptop" (builtins.readFile /etc/hostname)
then true
else false;
# if lib.strings.hasPrefix "NOlaptop" (builtins.readFile /etc/hostname)
# then true
# else false;
true;
hide_time = true;
enable_gpu = true;
};