disko doesn't support bcachefs subvolumes yet
This commit is contained in:
parent
8d086ffcca
commit
d8ce8bddef
6 changed files with 61 additions and 56 deletions
|
|
@ -90,12 +90,12 @@
|
|||
SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg"
|
||||
'';
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
virtualisation.docker.rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
# virtualisation.docker = {
|
||||
# enable = true;
|
||||
# storageDriver = "btrfs";
|
||||
# };
|
||||
# virtualisation.docker.rootless = {
|
||||
# enable = true;
|
||||
# setSocketVariable = true;
|
||||
# };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,14 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
if_desktop =
|
||||
if lib.strings.hasPrefix "NOcomputer" (builtins.readFile /etc/hostname)
|
||||
then true
|
||||
else false;
|
||||
in {
|
||||
}:
|
||||
# let
|
||||
# if_desktop =
|
||||
# if lib.strings.hasPrefix "NOcomputer" (builtins.readFile /etc/hostname)
|
||||
# then true
|
||||
# else false;
|
||||
# in
|
||||
{
|
||||
# aagl.url = "github:ezKEa/aagl-gtk-on-nix";
|
||||
# aagl.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@
|
|||
};
|
||||
|
||||
services.smartd.enable = true;
|
||||
services.btrfs.autoScrub.enable = lib.mkDefault true;
|
||||
# services.btrfs.autoScrub.enable = lib.mkDefault true;
|
||||
|
||||
hardware.pulseaudio.enable = lib.mkDefault false;
|
||||
security.rtkit.enable = true;
|
||||
|
|
|
|||
|
|
@ -31,15 +31,16 @@
|
|||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
mountOptions = ["noatime"];
|
||||
mountpoint = "/";
|
||||
extraArgs = [
|
||||
"--compression zstd"
|
||||
"--background_compression zstd"
|
||||
"--discard"
|
||||
];
|
||||
subvolumes = {
|
||||
"/home" = {};
|
||||
"/nix" = {};
|
||||
};
|
||||
# subvolumes = {
|
||||
# "/home" = {};
|
||||
# "/nix" = {};
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -101,38 +101,38 @@
|
|||
# "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";
|
||||
# };
|
||||
# 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;
|
||||
# };
|
||||
"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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue